Skip to main content

BrainRouter Python SDK

Official Python SDK for BrainRouter - The intelligent model gateway.

Installation

pip install brainrouter

Quick Start

from brainrouter import BrainRouter

client = BrainRouter(api_key="your_key")
response = client.chat.ask(prompt="Hello!", strategy="quality")
print(response.content)

Features

  • Intelligent Routing: Automatically select the best model based on quality, cost, or speed.
  • Sync & Async: Supports both synchronous and asynchronous workflows.
  • Streaming: Built-in support for SSE streaming.
  • Thread Management: Easy conversation and policy management.

License

MIT

Metadata

Release files for brainrouter 1.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brainrouter 1.0.4
File Size Uploaded Provenance Actions
brainrouter-1.0.4.tar.gz 6.8 kB Without provenance Details for brainrouter-1.0.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brainrouter 1.0.4
File Interpreter ABI Platform Actions
brainrouter-1.0.4-py3-none-any.whl Python 3 none any Details for brainrouter-1.0.4-py3-none-any.whl

Total release size: 13.7 kB

Release files / brainrouter-1.0.4.tar.gz

Download URL brainrouter-1.0.4.tar.gz
Size 6.8 kB
Tags Source
SHA-256 checksum
How to use checksums
82e1de1b3b6585cdfe82106f44cabb1b78959afc3d0288adcf2df2a564220933
BLAKE2b-256 checksum
How to use checksums
92941171d989d886a46f14867e2fb0ea53b973b3bcc000d566253e0168a91d64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Release files / brainrouter-1.0.4-py3-none-any.whl

Download URL brainrouter-1.0.4-py3-none-any.whl
Size 6.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
901ff65fc46f26ffdc97833b7eff11c98be271969fe2fb286c155bd6d0b41578
BLAKE2b-256 checksum
How to use checksums
931c124aab33049309f80b700f1590c92236a1b51e926751970452c9a854f444
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.3

Security for brainrouter 1.0.4

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.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page