A3M Router - Python Package
Intelligent LLM routing for Python applications.
Why A3M Router?
| Problem | Solution |
|---|---|
| GPT-4o is $15/1M tokens | A3M routes to $0.001 providers |
| Managing 80+ API keys | One endpoint, A3M handles the rest |
| Provider goes down | Automatic failover to next best option |
| Need best answer, cost doesn't matter | Parallel ensemble calls |
Installation
pip install a3m-router
Quick Start
from a3m.router import A3MRouter
router = A3MRouter(model="auto")
result = router.route("Explain quantum entanglement")
print(result.content)
Features
- 80+ Providers - OpenAI, Anthropic, Groq, Mistral, DeepSeek, and more
- 14% Faster - Optimized routing vs OpenRouter
- 92% Cheaper - Routes to cheapest capable provider
- OpenAI Compatible - Use existing OpenAI SDK code
- Adaptive Memory - Learns from routing patterns
Performance
| Metric | A3M Router | OpenRouter |
|---|---|---|
| Latency | 162ms | 189ms |
| Cost/1K | $0.00012 | $0.0015 |
| Quality | 94% | 92% |
Documentation
Full documentation: https://github.com/Das-rebel/a3m-router#readme
License
MIT License
Metadata
Release files for a3m-router 2.16.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| a3m_router-2.16.3.tar.gz | 12.3 kB | Without provenance | Details for a3m_router-2.16.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| a3m_router-2.16.3-py3-none-any.whl | Python 3 | none | any | Details for a3m_router-2.16.3-py3-none-any.whl |
Total release size: 27.6 kB
Release files / a3m_router-2.16.3.tar.gz
| Download URL | a3m_router-2.16.3.tar.gz |
|---|---|
| Size | 12.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2144d62b1559d2b3efd8851d461c40d7c1ac621148294ec4882671a0238edb94
|
|
BLAKE2b-256 checksum How to use checksums |
9bffc013ad1c9ac3becd2300b57354e099babd9bf806be6ab599add9d7683982
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Release files / a3m_router-2.16.3-py3-none-any.whl
| Download URL | a3m_router-2.16.3-py3-none-any.whl |
|---|---|
| Size | 15.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a23c4c6d0358e2dc1485a662061cca1f80482fad172774c3fac2ccee9bda2e1f
|
|
BLAKE2b-256 checksum How to use checksums |
c98cafdf34b56a029ddc52e401edb3ee95fd46874cd89afde26455bcc601ca34
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.11.16
|
Security for a3m-router 2.16.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.