Skip to main content

Caracal OAuth for Python

Python RFC 8693 token exchange client for Caracal STS.

from caracalai_oauth import ExchangeOptions, OAuthClient

client = OAuthClient("https://sts.example.com", "zone1", "app1")
token = await client.exchange(
    subject_token,
    "resource://api",
    ExchangeOptions(client_secret="client-secret", scopes=["read"]),
)

Successful responses are validated before caching. Cache keys isolate subject tokens, actor tokens, session/delegation context, scopes, TTL, and client authentication context. The default cache is in-memory and process-local.

Docs: https://caracal.run/sdks/oauth/

Metadata

Release files for caracalai-oauth 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 caracalai-oauth 1.0.0
File Size Uploaded Provenance Actions
caracalai_oauth-1.0.0.tar.gz 17.8 kB With provenance Details for caracalai_oauth-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for caracalai-oauth 1.0.0
File Interpreter ABI Platform Actions
caracalai_oauth-1.0.0-py3-none-any.whl Python 3 none any Details for caracalai_oauth-1.0.0-py3-none-any.whl

Total release size: 38.9 kB

Release files / caracalai_oauth-1.0.0.tar.gz

Download URL caracalai_oauth-1.0.0.tar.gz
Size 17.8 kB
Tags Source
SHA-256 checksum
How to use checksums
42710098d8825c0f424bec24adcf7072d39f36d4fd9eb199fc40a78edd9c428f
BLAKE2b-256 checksum
How to use checksums
1593b0205f017444ce7d6860ffc3b7a2e09ff0bbcdb0bdfa9ea797102a0b0e1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

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

Download URL caracalai_oauth-1.0.0-py3-none-any.whl
Size 21.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5b6ff69df32a4c0da635cad57a68764bcbe105827ec339fcfecb30cf7436beee
BLAKE2b-256 checksum
How to use checksums
9db601665a6a4bc3570b356614d76f89bd31378f77cbb88ad05181e92ed3480b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

Security for caracalai-oauth 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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for caracalai_oauth-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 9, 2026.

Transparency log

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.

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