Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

konklav-relying

Decide Konklav authorization locally from Python.

Konklav is a standalone identity and access service. This package is the Python SDK for relying systems: services that accept Konklav's tokens and need authorization decisions for them. It verifies tokens offline, caches entitlements and keeps them fresh from Konklav's change feed, so most decisions need no network round trip.

Installing

pip install konklav-relying

Wheels are published for Python 3.12 and later on:

  • Linux x86_64 and aarch64 with glibc 2.28 or later (manylinux_2_28)
  • Linux x86_64 and aarch64 with musl 1.2 or later, such as Alpine (musllinux_1_2)
  • macOS on Apple silicon

Elsewhere pip builds from the sdist, which needs a Rust toolchain.

Usage

from konklav_relying import RelyingClient

client = RelyingClient(
    relying_url="https://konklav:8081",
    subject_url="https://konklav:8080",
    key_id=key_id,
    secret=secret,
    issuer="https://auth.example",
    audience="api",
)
await client.start()

decision = await client.decide(
    token,
    {"scopes": [{"kind": "project", "id": project_id, "actions": ["document:read"]}]},
)
if decision["decision"] != "allow":
    ...

await client.stop()

RelyingClient runs on asyncio with httpx:

  • It logs in as a service principal and follows the change feed in the background, so revocations and entitlement changes take effect within about a second.
  • It decides locally, and falls back to Konklav's check API whenever its caches can't be trusted, for example while the feed is disconnected.
  • KonklavError means Konklav could not be reached or answered with an error. Treat it as a deny.
  • await_cursor waits until a change you just made through Konklav has reached the cache, for read-your-writes.

The decision logic lives in a Rust core shared with Konklav's other relying bindings, so they can't disagree. Python does only the I/O.

Versions

The package has the same version as the Konklav server it was released with. Pre-releases, such as 1.3.0rc1, are installed only with pip install --pre.

MIT licensed.

Metadata

Release files for konklav-relying 1.3.0rc1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for konklav-relying 1.3.0rc1
File Actions
konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_x86_64.whl CPython 3.12 abi3 Linux musl 1.2+ x86-64 Details for konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_x86_64.whl
konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_aarch64.whl CPython 3.12 abi3 Linux musl 1.2+ ARM64 Details for konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_aarch64.whl
konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_x86_64.whl CPython 3.12 abi3 Linux glibc 2.28+ x86-64 Details for konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_x86_64.whl
konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_aarch64.whl CPython 3.12 abi3 Linux glibc 2.28+ ARM64 Details for konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_aarch64.whl
konklav_relying-1.3.0rc1-cp312-abi3-macosx_11_0_arm64.whl CPython 3.12 abi3 macOS 11.0+ ARM64 Details for konklav_relying-1.3.0rc1-cp312-abi3-macosx_11_0_arm64.whl

Total release size: 3.7 MB

Release files / konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_x86_64.whl

Download URL konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_x86_64.whl
Size 904.0 kB
Tags CPython 3.12 Linux musl 1.2+ x86-64 abi3
SHA-256 checksum
How to use checksums
1e402ce8a70a4b1b2a7a883c0f2967b959cf63191736cda0a7be62e754696af3
BLAKE2b-256 checksum
How to use checksums
b886b28deaf48f1785964e359bc40080470b60d4e2c281dc1d792a67249d2eae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_aarch64.whl

Download URL konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_aarch64.whl
Size 829.7 kB
Tags CPython 3.12 Linux musl 1.2+ ARM64 abi3
SHA-256 checksum
How to use checksums
8bb481da66080a19a785d3fb4c31603f2c4bd1d4ae62fa1e52e95162ba9b478e
BLAKE2b-256 checksum
How to use checksums
e6c65f789897f5962a86f57d6c0c202ff3bb3472b0eda023ab131bf9584aa260
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_x86_64.whl

Download URL konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_x86_64.whl
Size 697.3 kB
Tags CPython 3.12 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
a47783287c560ad32b5b3fb051da7affd215bb68f403ea094e07bd856fe2eac1
BLAKE2b-256 checksum
How to use checksums
8b2f478aa75e66e5e21b92bb97b0325c02fd809555737d88d72100c43460dd11
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_aarch64.whl

Download URL konklav_relying-1.3.0rc1-cp312-abi3-manylinux_2_28_aarch64.whl
Size 651.9 kB
Tags CPython 3.12 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1c976eaccfe29a1621662bb637a478757cdd7477797565272e317be76499db4e
BLAKE2b-256 checksum
How to use checksums
e93f30436399a7b2315105be9bea019c74f8d2c07453e82c1803b9a5251c02f4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Release files / konklav_relying-1.3.0rc1-cp312-abi3-macosx_11_0_arm64.whl

Download URL konklav_relying-1.3.0rc1-cp312-abi3-macosx_11_0_arm64.whl
Size 585.8 kB
Tags CPython 3.12 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
65ffee529fc978c08287d035012954b6700410c6afce36c6d79ec177df7a825c
BLAKE2b-256 checksum
How to use checksums
9d94a00d875672e8af99a3fc387d652ff0d44d2014c664e2de4298764a183270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 2, 2026.

Transparency log

Security for konklav-relying 1.3.0rc1

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

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for konklav_relying-1.3.0rc1-cp312-abi3-musllinux_1_2_x86_64.whl

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 Nov 2, 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