Kybernis Python SDK
Project description
Kybernis Python SDK (beta)
This SDK lets multi-agent builders (LangGraph, CrewAI, LangChain) route tool calls through the Kybernis execution gate, emit execution spans, and report tool health/cost.
Install (local dev)
- Add sdk/python to your PYTHONPATH or vendor the package into your app.
- Or set
KYB_SDK_PATHto the absolute path of sdk/python.
Minimal usage
- Set env:
KYB_API_BASE,KYB_API_TOKEN,KYB_TENANT_ID,KYB_RUN_ID - Enable SDK:
KYB_SDK_ON=1
The SDK provides:
KybernisClientfor tool registry, health, events, cost, and gate requests.kyb_tooldecorator to gate tool calls before framework-level HITL.install()auto-patches requests/httpx to inject Kybernis headers.derive_idempotency_key()to match proxy idempotency hashing.span()helpers for non-HTTP execution spans.- Side-effect helpers:
webhook(),email(),charge().
Env flags
KYB_SDK_ON=1enable SDKKYB_API_BASEcontrol plane base URLKYB_API_TOKENauth tokenKYB_TENANT_IDtenant scopeKYB_RUN_IDrun scope (set per run)KYB_TOOL_REGISTER=1auto-register toolsKYB_GATE_AUTO_APPROVE=1auto-approve gate unless overriddenKYB_TOOL_CALL_LIMIT=0per-tool call limit (0 = unlimited)KYB_ENFORCE_EGRESS=1fail-closed if HTTP(S)_PROXY is not set
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
kybernis-0.1.0.tar.gz
(7.2 kB
view details)
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 kybernis-0.1.0.tar.gz.
File metadata
- Download URL: kybernis-0.1.0.tar.gz
- Upload date:
- Size: 7.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0b4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7dd59d47fc4a27703866d221fefdc94e20e2419302dab17a990f85891a6c14a
|
|
| MD5 |
c2e62c377556f60f8ac3903470285e65
|
|
| BLAKE2b-256 |
5770289cde93a1a990d4a5637079c36bca458a48330b0a4e04c228460b077346
|
File details
Details for the file kybernis-0.1.0-py3-none-any.whl.
File metadata
- Download URL: kybernis-0.1.0-py3-none-any.whl
- Upload date:
- Size: 7.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0b4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
351a249fd049f4238568ff3bea46b22977eac8855a20298eaedeb660d8b8ef35
|
|
| MD5 |
92b059f15a5162b9e069f603ead7a07b
|
|
| BLAKE2b-256 |
d68271169a351e6dd02ad002faa727b5a7a835ba695200b495b52ce220e9bf04
|