rsroute
What it is
rsroute is a lightweight Python client for RSRoute — a unified gateway that routes requests across 10+ LLM providers seamlessly.
Why it is
Instead of managing disparate SDKs, raw HTTP requests, query parameters, and custom endpoints manually for each provider, rsroute provides a simple, unified wrapper so you can connect to your RSRoute server with minimal code.
Code Example - ChatModel
from rsroute.chat_models import ChatGemini, ChatMistral, ChatGroq, ChatOpenRouter
# Gemini
gemini_model = ChatGemini(
model="gemini-3.5-flash-lite",
rsroute_url="http://0.0.0.0:8000", # your URL always default to this.
)
response = gemini_model.invoke(query="What is GitHub?")
print(response)
# Groq
groq_model = ChatGroq(
model="openai/gpt-oss-120b",
temperature=0.7,
)
response = groq_model.invoke(query="Hello Groq!")
print(response)
# OpenRouter
openrouter_model = ChatOpenRouter(
model="deepseek/deepseek-v4.1-flash",
temperature=0.7,
)
response = openrouter_model.invoke(query="Hello OpenRouter!")
print(response)
Code Example - Agents
from rsroute.agents import GeminiAgent, MistralAgent, GroqAgent, OpenRouterAgent
# Gemini Agent
gemini_agent = GeminiAgent(
tools=[web_search], # your tools
max_tool_calls=12 # Default to 10
)
response = gemini_agent.invoke(query="Latest News of GPT-6 Astra")
print(response)
# Mistral Agent
mistral_agent = MistralAgent(
tools=[web_search],
model="mistral-small-2603"
)
response = mistral_agent.invoke(query="What is the weather in Paris?")
print(response)
# Groq Agent
groq_agent = GroqAgent(
tools=[web_search],
model="openai/gpt-oss-120b"
)
response = groq_agent.invoke(query="Compute 42 * 42")
print(response)
# OpenRouter Agent
openrouter_agent = OpenRouterAgent(
tools=[web_search],
model="deepseek/deepseek-v4.1-flash"
)
response = openrouter_agent.invoke(query="Search latest news")
print(response)
Feature
- automatic
master_keyloading from .env - proper request handling
- Agentic power
Valid .env name
Any of the following variable names can be used in your .env file:
rsroute_token(orRSROUTE_TOKEN)master_key(orMASTER_KEY)rsroute_key(orRSROUTE_KEY)rsroute_master_key(orRSROUTE_MASTER_KEY)
Server
RSRoute Server repository: RSRoute GitHub
RSRoute website: RSRoute Web
Metadata
Release files for rsroute 0.1.1
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 |
|---|---|---|---|---|
| rsroute-0.1.1.tar.gz | 10.3 kB | Without provenance | Details for rsroute-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| rsroute-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for rsroute-0.1.1-py3-none-any.whl |
Total release size: 30.2 kB
Release files / rsroute-0.1.1.tar.gz
| Download URL | rsroute-0.1.1.tar.gz |
|---|---|
| Size | 10.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
93f686ac619e0d57eb899c19e7af6e2bfb77f0a6cc4af4c6990af687275c09d4
|
|
BLAKE2b-256 checksum How to use checksums |
d5e1c477f6a7c6e21d9ee45b494832929be4f202db5aff1c9b6171882a8e37c0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Release files / rsroute-0.1.1-py3-none-any.whl
| Download URL | rsroute-0.1.1-py3-none-any.whl |
|---|---|
| Size | 19.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0d9b75474a878d3d13492c72f0d59355abb1bb3789604a4bfb37a5cf47d113a1
|
|
BLAKE2b-256 checksum How to use checksums |
071b1ec7ef84a6ba022803172c675d616b4dd98f6018d9accc5adcebb05128ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.5
|
Security for rsroute 0.1.1
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.