Skip to main content

Official Python SDK for BrainRouter

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

brainrouter-1.0.2.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

brainrouter-1.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file brainrouter-1.0.2.tar.gz.

File metadata

  • Download URL: brainrouter-1.0.2.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for brainrouter-1.0.2.tar.gz
Algorithm Hash digest
SHA256 c92b8d210251ed17f15014a5de20b3e58d4ac02244f2323e01aba63357c23dfe
MD5 bbed486270492d7da2756fe043e324d0
BLAKE2b-256 0019a0f5c326f58351dc0ef5201ea3374437d14837e3bf77358847a364d2af1b

See more details on using hashes here.

File details

Details for the file brainrouter-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: brainrouter-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for brainrouter-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 381149a27ac51ab3ed0ac15292ca782a347fb99d7cdf7e4d04783ca4d20b8c94
MD5 5f8f26d6e19b51eeb2fb33e063369488
BLAKE2b-256 d4f2dbe8f4768ae791717930631b72e38a9b9e682fdf3fca46991e1f49242167

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page