reinogent — Official Python SDK & CLI
Lightweight Python SDK and reino CLI for discovering, downloading, installing dependencies for, and running AI Models, MCP Servers, and Agents from ReinoGent.
Installation
# Core SDK + CLI (zero mandatory dependencies)
pip install -e ./cli
# Or install with optional runtime dependency extras:
pip install -e "./cli[transformers]" # torch, transformers, safetensors, accelerate
pip install -e "./cli[embeddings]" # sentence-transformers
pip install -e "./cli[mcp]" # mcp Python SDK
pip install -e "./cli[agent]" # fastapi, uvicorn, httpx (for building agents)
pip install -e "./cli[all]" # all runtime extras
(Once published to PyPI: pip install reinogent / pip install "reinogent[transformers]".)
CLI Quick Start
# Point at your ReinoGent backend API
reino config set-api https://your-backend.onrender.com/api
# Browse & inspect dependencies
reino list models --african --task text-generation
reino deps model bge-small-en-v1-5
reino deps mcp github-mcp-server
# Pull resources (generates `reino.json` + `reino_run.py` bundle) & install deps
reino pull model bge-small-en-v1-5 --install-deps
reino pull mcp github-mcp-server --config
reino pull mcp github-mcp-server --install-deps
reino pull agent <agent-id> --install-deps
# Run any packaged ReinoGent bundle (`model`, `mcp`, or `agent`)
reino run ./bge-small-en-v1-5 --prompt "Hello ReinoGent"
reino run ./github-mcp-server
# Scaffold a new SDK-native ReinoGent AgentApp project
reino init "Swahili Support Bot" --model bge-small-en-v1-5 --mcp github-mcp-server
Build an Agent in 10 Lines (reinogent.AgentApp)
import reinogent
app = reinogent.AgentApp(
name="Swahili Support Bot",
model="bge-small-en-v1-5",
mcp_tools=["github-mcp-server"],
)
@app.on_message
async def handle(ctx: reinogent.AgentContext):
return f"Received: {ctx.input}"
if __name__ == "__main__":
app.serve(port=8001) # Exposes POST /invoke (HMAC verified), GET /health, GET /reino-manifest
Python SDK Quick Start
import reinogent
# 1. Load a ReinoGent model directly (auto-resolves Transformers / Sentence-Transformers)
model = reinogent.load_model("bge-small-en-v1-5")
# 2. Download raw model weights/files from upstream CDN
local_dir = reinogent.download_model("bge-small-en-v1-5", dest_dir="./weights")
# 3. Fetch ready-to-use MCP client configuration
mcp_cfg = reinogent.get_mcp_config("github-mcp-server")
# 4. Run a hosted ReinoGent agent
result = reinogent.run_agent("agt_12345", "Summarize Q4 metrics", token="<your-jwt>")
# 5. Verify ReinoGent webhook HMAC-SHA256 signatures inside your FastAPI/Flask agent
is_valid = reinogent.verify_signature(body, x_reino_signature, x_reino_timestamp, SECRET_KEY)
Publishing to PyPI
pip install build twine
cd cli
python -m build
twine upload dist/*
Metadata
Release files for reinogent 0.1.0
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 |
|---|---|---|---|---|
| reinogent-0.1.0.tar.gz | 18.3 kB | Without provenance | Details for reinogent-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| reinogent-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for reinogent-0.1.0-py3-none-any.whl |
Total release size: 38.1 kB
Release files / reinogent-0.1.0.tar.gz
| Download URL | reinogent-0.1.0.tar.gz |
|---|---|
| Size | 18.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a709eff2a7b255308dec56547d2b223f29997a49194993d543d72b474f4dd9c4
|
|
BLAKE2b-256 checksum How to use checksums |
90ed4929562181e59a911241753d3bb376762facb840d2a5a9a61b224a1b965c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Release files / reinogent-0.1.0-py3-none-any.whl
| Download URL | reinogent-0.1.0-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e5646f0735a9776bacc07e346941404e8035a88cd6bae5769efe9931de4b7358
|
|
BLAKE2b-256 checksum How to use checksums |
ba74b39f189e7a20c550617eaf2f5837ff3f085fca9896f3fab4c987f3267aeb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.1
|
Security for reinogent 0.1.0
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.