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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

authplane_sdk-0.4.0.tar.gz (70.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

authplane_sdk-0.4.0-py3-none-any.whl (72.9 kB view details)

Uploaded Python 3

File details

Details for the file authplane_sdk-0.4.0.tar.gz.

File metadata

  • Download URL: authplane_sdk-0.4.0.tar.gz
  • Upload date:
  • Size: 70.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for authplane_sdk-0.4.0.tar.gz
Algorithm Hash digest
SHA256 790ba05db7ee6e79340a7eb29c908cf5edad131c6760182774c16b248518f551
MD5 edbfe67059cef298a90c6a914af428c9
BLAKE2b-256 cf2187d9a38453028601a4347f02871cde179cfb313411e17ec47d4e84957740

See more details on using hashes here.

Provenance

The following attestation bundles were made for authplane_sdk-0.4.0.tar.gz:

Publisher: publish-pypi.yml on AuthPlane/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file authplane_sdk-0.4.0-py3-none-any.whl.

File metadata

  • Download URL: authplane_sdk-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 72.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for authplane_sdk-0.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7ed30a371574fe715c867a79690563078e322cd734afcacb0374875ae4d36a4
MD5 d266eb476eda6076e51628b8099c9511
BLAKE2b-256 eeff0982ad65161afaa9b53ee652d1c750661318aaf06a69d6a9346f61a9ccac

See more details on using hashes here.

Provenance

The following attestation bundles were made for authplane_sdk-0.4.0-py3-none-any.whl:

Publisher: publish-pypi.yml on AuthPlane/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 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