Official Python SDK for MESH Router (api.meshrouter.app) — one OpenAI-compatible endpoint across 45 models from 14 providers, with USDC payments and signed receipts.
Project description
meshrouter
Python SDK for the MESH Router API.
from meshrouter import MeshClient
client = MeshClient(api_key="mesh_live_...")
response = client.create_chat_completion(
model="auto",
messages=[{"role": "user", "content": "route this"}],
stream=True,
)
for event in client.iter_sse(response.data):
print(event.event, event.data)
The client defaults to https://api.meshrouter.app/v1 and sends MESH bearer API keys when
api_key is provided. Accountless x402 challenge creation can be called without a key.
Operations helpers are included for accounts, API-key limits, usage, logs, receipts, provider health/configuration, monitoring summaries, and payment intent lifecycle calls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file meshrouter-0.1.0.tar.gz.
File metadata
- Download URL: meshrouter-0.1.0.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b8ca445158301729dc12324b85f8ca44f05f6ae88dcdc84104e67e79855fdc11
|
|
| MD5 |
f1d2b7113ac6cee06e572e5823e6ccee
|
|
| BLAKE2b-256 |
8a6cb73afe18176109bf7925c0101cf57589a781fcfb6bcdaea1ed52475df414
|
File details
Details for the file meshrouter-0.1.0-py3-none-any.whl.
File metadata
- Download URL: meshrouter-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e976f8db3d77a86cc196fc311a914ec0a71620e8de72ffb2801e0664ef1f7527
|
|
| MD5 |
c0f6c9b3b26e3fc70e7d1bcc6f8cc194
|
|
| BLAKE2b-256 |
518ed0fe9cd036b075846e25b9329410a1ed592708427d5cc3e8620e5232d546
|