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
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