v0.5.0 Published 🐍 PyPI

ai-lib-python

Official Python Runtime for AI-Protocol

Production-ready Python implementation with 95% feature parity. Ideal for ML/data science teams.

95%
Feature Parity
PyPI
Published
Async
Async Support
6
Routing Strategies

Key Features

Type-Safe

Pydantic v2 for runtime type checking with full type safety

Async Support

Full async/await support with httpx for non-blocking I/O

Easy Integration

Works seamlessly with FastAPI, Jupyter, and ML pipelines

Model Routing

6 built-in routing strategies: round-robin, weighted, health-based

Caching & Telemetry

OpenTelemetry ready with plugin system and caching support

Jupyter Ready

Dedicated Jupyter integration and notebook support

Quick Install

# Basic installation
pip install ai-lib-python

# With all features
pip install ai-lib-python[full]

Feature Parity

Rust SDK
100%
Python SDK
95%

Python SDK implements 95% of Rust SDK core features, covering most production use cases.

Use Cases

πŸ”¬

Data Science / ML

Jupyter notebooks, data pipelines, and experiments

πŸš€

Rapid Prototyping

Validate ideas and iterate on MVPs quickly

🏒

Enterprise Python

Seamless integration with existing Python ecosystem

Get Started with ai-lib-python

Start Now
Build: 9d1a7b2 Β· 2026-02-07T17:06:12.541Z Β· v0.21