Skip to main content

authplane-sdk

PyPI Python versions License

Framework-agnostic OAuth 2.1 JWT validation and token operations for Python resource servers.

Install

pip install authplane-sdk

Quickstart

import asyncio
from authplane import ASCredentials, AuthplaneClient


async def main():
    client = await AuthplaneClient.create(
        issuer="https://auth.example.com",
        auth=ASCredentials(client_id="my-resource", client_secret="s3cret"),
    )

    res = client.resource(
        resource="https://api.example.com",
        scopes=["read", "write"],
    )

    claims = await res.verify(incoming_jwt)
    print(claims.sub, claims.scopes)

    await client.aclose()


asyncio.run(main())

Call await client.aclose() on shutdown to stop background JWKS and metadata refresh tasks.

Documentation

Full API reference, configuration options, error hierarchy, DPoP, token operations, introspection, token exchange, and advanced usage: User Guide.

Metadata

Release files for authplane-sdk 0.5.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 authplane-sdk 0.5.0
File Size Uploaded
authplane_sdk-0.5.0.tar.gz 107.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authplane-sdk 0.5.0
File Interpreter ABI Platform
authplane_sdk-0.5.0-py3-none-any.whl Python 3 none any Details

Total release size: 213.6 kB

Release files / authplane_sdk-0.5.0.tar.gz

Download URL authplane_sdk-0.5.0.tar.gz
Size 107.8 kB
Tags Source
SHA-256 checksum
How to use checksums
16c8453fe25ea279ec3c73625ee7c41601a92a293b0f820d1fe48b477aeeaec2
BLAKE2b-256 checksum
How to use checksums
01fa3c619fcd4850c603c0c6779110e8cba134e8b1110151237f9a776e57def4
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 Oct 2, 2026.

Transparency log

Release files / authplane_sdk-0.5.0-py3-none-any.whl

Download URL authplane_sdk-0.5.0-py3-none-any.whl
Size 105.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fc4e28c26c1a42043a4096398dbff55f9e4aafffb5144b9be993d45d9170eedb
BLAKE2b-256 checksum
How to use checksums
506c2cda392fd6c077dc8fa3cfae96e0fdaf3956d53361d158fdb6a7861f7fd0
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 Oct 2, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

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