Skip to main content

cisora

The flight recorder and circuit breaker for your AI agents — Python SDK.

pip install cisora
import os
from cisora import Cisora

cisora = Cisora(
    api_key=os.environ["CISORA_API_KEY"],
    agent_name="customer-support-bot",
)

# Wrap a model call
with cisora.model_call("claude-sonnet-4-5") as call:
    reply = anthropic.messages.create(...)
    call.outputs = reply

# Wrap a tool call
with cisora.tool("send_email", metadata={"recipient": email}) as call:
    result = resend.emails.send(...)
    call.outputs = result

# Synchronous policy check
decision = cisora.check(
    action_type="tool_call",
    tool_name="database_write",
    metadata={"table": "users", "field": "email"},
)
if decision["decision"] != "allow":
    raise RuntimeError(f"Blocked by Cisora: {decision}")

Async support

import asyncio
from cisora import AsyncCisora

cisora = AsyncCisora(api_key="cisora_live_...", agent_name="my-agent")

async def main():
    async with cisora.tool("send_email") as call:
        result = await send_email_async(...)
        call.outputs = result

    await cisora.flush()

License

MIT

Metadata

Release files for cisora 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 cisora 0.1.0
File Size Uploaded Provenance Actions
cisora-0.1.0.tar.gz 4.4 kB Without provenance Details for cisora-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 9.1 kB

Release files / cisora-0.1.0.tar.gz

Download URL cisora-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
73fc306a71823edeb15a49cdd7e9816ee4e4d80adc3265bd918a67215d6cae02
BLAKE2b-256 checksum
How to use checksums
79728925bd937e176f458da3dd4356571874b23ebf1055007e46f602a85d1405
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

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

Download URL cisora-0.1.0-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fa7390c23a86d23d941acd2a5d71ae0c01ce143b58f343f2a52ce80538127547
BLAKE2b-256 checksum
How to use checksums
b1943e219c831d470f8f381f2b1bd8b6f1093fbcf4a652f21c5aef53d0e3e3d5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for cisora 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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