Kave Python SDK
Install:
uv add kave-sdk
pip install kave-sdk
Quickstart:
from kave import SyncClient
from kave.control.v1 import control_pb2
with SyncClient("localhost:19090", token="kv_...") as kave:
org = kave.ensure_organization(control_pb2.CreateOrganizationRequest(name="Acme", slug="acme"))
print(org.id)
Auth
Pass token="..." to add Authorization: Bearer ... on every RPC. Direct proto
RPCs are reachable through client.control, client.runtime, and client.audit.
TLS
Use SyncClient(addr="api.example.com:443", tls=True) for system-root TLS, or
pass custom grpc.ChannelCredentials with credentials=....
Retry
Idempotent List*, Get*, and Watch* RPCs retry 3 times by default: 200 ms
base, 2x exponential backoff, +/-20% jitter, 5 s cap. Mutating RPCs do not retry.
Use retry=NO_RETRY or pass a RetryPolicy to customize.
Async
from kave import AsyncClient
async with AsyncClient("localhost:19090") as kave:
async for agent in kave.aiter_agents(env_id):
print(agent.name)
Errors
SDK calls wrap gRPC failures in KaveError. Use predicates such as
is_not_found(err), is_permission_denied(err), and is_unavailable(err).
Django
Install kave-sdk[django], add kave.contrib.django to INSTALLED_APPS, define
KAVE = {...}, and run python manage.py kave_reconcile on deploy.
For multi-tenant Django apps, use kave.contrib.django.UserAgentManager to
map each app user to an isolated Kave agent and manage budget updates
(set_user_budget, top_up_user_budget, report_usage).
See examples/ and ../CONTRACT.md for the full parity contract.
Metadata
Release files for kave-sdk 0.2.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 |
|---|---|---|---|---|
| kave_sdk-0.2.0.tar.gz | 79.2 kB | Without provenance | Details for kave_sdk-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kave_sdk-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for kave_sdk-0.2.0-py3-none-any.whl |
Total release size: 184.8 kB
Release files / kave_sdk-0.2.0.tar.gz
| Download URL | kave_sdk-0.2.0.tar.gz |
|---|---|
| Size | 79.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fb7ce29f0dec9ac41aa9e85c00eb157008bf52cf7dd3aa382a256f6f4103a16f
|
|
BLAKE2b-256 checksum How to use checksums |
116589e6aa09ed56c92578841d95414d9fedf1ab7aa4cd81fe6cc54199679478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / kave_sdk-0.2.0-py3-none-any.whl
| Download URL | kave_sdk-0.2.0-py3-none-any.whl |
|---|---|
| Size | 105.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7793b8dc754ad89f4cac82c39c5d288672153437c89faceb4bf39dd4a5862ba2
|
|
BLAKE2b-256 checksum How to use checksums |
1c68a75eba5710096ef479cdbbcabcb9f32dc7b95fb3b66cc9f8e48e2b7bf0cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for kave-sdk 0.2.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.