Skip to main content

Caura Rail for Python

Memory operations around agent turns: fetch governance rules and relevant facts from Caura before your agent runs, then extract and store facts from the completed turn. Fully typed, synchronous and asynchronous.

python -m pip install caura-rail
from caura_rail import MemoryScope, Rail, RestMemoryStore

with RestMemoryStore.from_env() as store:  # CAURA_URL, CAURA_API_KEY
    rail = Rail(store, MemoryScope(agent_id="support-1"))
    with rail.turn("Remember: We deploy in eu-west-1.") as turn:
        turn.reply = "Noted. " + turn.context.text  # pass context to your model
    print(turn.reply, [w.status for w in turn.writes])

Prefer the thin caura-client package when you only need to call the API; Rail adds the turn lifecycle, governance ordering, extraction, and replay on top.

Full documentation, including the guide, API reference, and reliability semantics, lives in the repository. A TypeScript package with the same semantics is published as @caura/rail.

Licensed under Apache-2.0.

Metadata

Release files for caura-rail 1.0.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 caura-rail 1.0.0
File Size Uploaded Provenance
caura_rail-1.0.0.tar.gz 15.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for caura-rail 1.0.0
File Interpreter ABI Platform
caura_rail-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.4 kB

Release files / caura_rail-1.0.0.tar.gz

Download URL caura_rail-1.0.0.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
1b48dffc25b3bd7b42421a71a1b95b3fd35053285085d7fe6d89000b6c122a9e
BLAKE2b-256 checksum
How to use checksums
7c5dab1ecbe122e76c9115928402b370f805292fe58032e40c83ac7da0561dee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / caura_rail-1.0.0-py3-none-any.whl

Download URL caura_rail-1.0.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e032b3b45a4bd0d23b2201a57ab86c58eb1b7b7329832de99ee7cd0dde0fe013
BLAKE2b-256 checksum
How to use checksums
107f994c1d34c04be5c649aa69b6d556b264c1235de699e7f23401629cb18a6d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Security for caura-rail 1.0.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.

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