AI delegation orchestration. Tasks as budgeted jobs, not conversations.
Project description
Budgeted LLM tasks that scale beyond context.
enzu is a Python-first toolkit for AI engineers and builders who need reliable, budgeted LLM runs. It enforces hard limits (tokens, time, cost), switches to RLM when context is large, and works across OpenAI-compatible providers. Use it from Python, the CLI, or the HTTP API.
Quickstart (Python)
uv add enzu
# or: pip install enzu
export OPENAI_API_KEY=sk-...
from enzu import Enzu, ask
print(ask("What is 2+2?"))
client = Enzu() # Auto-detects from env
answer = client.run(
"Summarize the key points",
data="...long document...",
tokens=400,
)
print(answer)
Tip: Set OPENAI_API_KEY, OPENROUTER_API_KEY, or another provider key. You can always pass model= and provider= explicitly.
HTTP API (server)
uv pip install "enzu[server]"
uvicorn enzu.server:app --host 0.0.0.0 --port 8000
curl http://localhost:8000/v1/run \
-H "Content-Type: application/json" \
-d '{"task":"Say hello","model":"gpt-4o","provider":"openai"}'
If you set ENZU_API_KEY, pass X-API-Key on every request.
CLI worker
cat <<'JSON' | enzu
{
"provider": "openai",
"task": {
"task_id": "hello-1",
"input_text": "Say hello in one sentence.",
"model": "gpt-4o"
}
}
JSON
Docs
docs/README.md- Start heredocs/QUICKREF.md- Providers, env vars, model formatsdocs/DEPLOYMENT_QUICKSTART.md- CLI + integration patternsdocs/SERVER.md- HTTP APIdocs/PYTHON_API_REFERENCE.md- Full Python APIdocs/COOKBOOK.md- Patterns and recipes
Contributing
See CONTRIBUTING.md.
Requirements
Python 3.9+
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
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 enzu-0.2.0.tar.gz.
File metadata
- Download URL: enzu-0.2.0.tar.gz
- Upload date:
- Size: 353.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7947c4c059d4a25ed287026c0a27ee84a23a41174f6be54497107d7f93c6f93
|
|
| MD5 |
28694c4ced0654dca5e2379e6727e3ba
|
|
| BLAKE2b-256 |
4fe43d86ef1609217536a43791af80da664e95501ded69fd07765702e891d956
|
File details
Details for the file enzu-0.2.0-py3-none-any.whl.
File metadata
- Download URL: enzu-0.2.0-py3-none-any.whl
- Upload date:
- Size: 259.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fea1a34f5255b5e0d79e13d8b23aa6ce1c2914db19501ece523277df736e181b
|
|
| MD5 |
363dd59a62ab9681687df49d9e91bba7
|
|
| BLAKE2b-256 |
82bf6657a521accca5c0b01521e2dcd555e9472082e47b0141a0a4643ea35ecc
|