Skip to main content

chox-sdk

Python SDK for Chox — AI governance proxy.

Install

pip install chox-sdk

Quickstart

from chox import ChoxClient

chox = ChoxClient(base_url="https://chox.example.com", token="chox_token_...")

verdict = chox.evaluate(tool="stripe.create_charge", arguments={"amount": 5000})
if verdict.verdict == "allow":
    pass  # proceed

Config

Parameter Type Default Description
base_url str required Chox gateway base URL
token str required Admin key (chox_admin_...) or caller token (chox_token_...)
fail_open bool True Return allow verdict on network errors instead of raising
timeout float 5.0 Request timeout in seconds

Resources

# Evaluate a tool call
chox.evaluate(tool, arguments=None, caller_token=None, context=None)

# Projects
chox.projects.create(name=..., slug=...)
chox.projects.get()

# Callers (AI systems)
chox.callers.create(name=..., description=...)
chox.callers.list()
chox.callers.delete(id)

# Integrations
chox.integrations.create(name=..., integration_type=..., destination_url=...)
chox.integrations.list()
chox.integrations.delete(id)

# Logs
chox.logs.list(caller_id=None, integration=None, action_type=None, start=None, end=None, limit=None, offset=None)
chox.logs.get(id)

# Stats
chox.stats.actions(start=None, end=None)
chox.stats.hourly(start=None, end=None)
chox.stats.integrations(start=None, end=None)
chox.stats.total()

License

MIT

Metadata

Release files for chox-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for chox-sdk 0.1.0
File Size Uploaded
chox_sdk-0.1.0.tar.gz 6.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for chox-sdk 0.1.0
File Interpreter ABI Platform
chox_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / chox_sdk-0.1.0.tar.gz

Download URL chox_sdk-0.1.0.tar.gz
Size 6.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cf139ffb82edacac805662abed14753e2b516a875fbfc2eef632a9cb87407660
BLAKE2b-256 checksum
How to use checksums
d86b206cccca15ea569c9dedf0601d109f056c1687ae9c8f77e3958e6874dae5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release files / chox_sdk-0.1.0-py3-none-any.whl

Download URL chox_sdk-0.1.0-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
09245438aa0e67b212306702e214aa6cd3a2fbe479dd19005b95fbbc52341203
BLAKE2b-256 checksum
How to use checksums
203c1fbc091efb811c275a33bf0e7ed3d4e1b6dfa35bedaa41bf4423d185914a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page