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.
KonklavErrormeans Konklav could not be reached or answered with an error. Treat it as a deny.await_cursorwaits 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.
Links
MIT licensed.
Metadata
Release files for konklav-relying 1.4.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| konklav_relying-1.4.0.tar.gz | 84.0 kB | With provenance | Details for konklav_relying-1.4.0.tar.gz |
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_x86_64.whl | CPython 3.12 | abi3 | Linux musl 1.2+ x86-64 | Details for konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_x86_64.whl |
| konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_aarch64.whl | CPython 3.12 | abi3 | Linux musl 1.2+ ARM64 | Details for konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_aarch64.whl |
| konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_x86_64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ x86-64 | Details for konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_x86_64.whl |
| konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_aarch64.whl | CPython 3.12 | abi3 | Linux glibc 2.28+ ARM64 | Details for konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_aarch64.whl |
| konklav_relying-1.4.0-cp312-abi3-macosx_11_0_arm64.whl | CPython 3.12 | abi3 | macOS 11.0+ ARM64 | Details for konklav_relying-1.4.0-cp312-abi3-macosx_11_0_arm64.whl |
Total release size: 3.8 MB
Release files / konklav_relying-1.4.0.tar.gz
| Download URL | konklav_relying-1.4.0.tar.gz |
|---|---|
| Size | 84.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
69f539792a257890c8ad3a1c63bb4e997d1d12542ad19ec7e708befae3273700
|
|
BLAKE2b-256 checksum How to use checksums |
7d17d71d175cb16a0bb4fb1b041782ecf389fdbfdc686db1cfe898422b3d500f
|
| 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 3, 2026.
Transparency logRelease files / konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_x86_64.whl
| Download URL | konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 904.1 kB |
| Tags | CPython 3.12 Linux musl 1.2+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4675effcf8fa8cc42d431929e2aca8ed2ff81322ca33b6e98998c35bd13ea645
|
|
BLAKE2b-256 checksum How to use checksums |
89b0c9943d9163b65c2e2ee8c59eb28de61aa735816cb51ce743a4dacad84224
|
| 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 3, 2026.
Transparency logRelease files / konklav_relying-1.4.0-cp312-abi3-musllinux_1_2_aarch64.whl
| Download URL | konklav_relying-1.4.0-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 |
256950c333cc7e55420fa6079fc216d5334e7d3745153ca42181ab7badc27c25
|
|
BLAKE2b-256 checksum How to use checksums |
09dbf37163150720f260f92bda22634e848d35ceef5fe8a1e159f7e314578e6d
|
| 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 3, 2026.
Transparency logRelease files / konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_x86_64.whl
| Download URL | konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 697.5 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
74a7550a9046ade85ea854e2cdfb852dfec4ce32d99cd502e56d0f851e09efdd
|
|
BLAKE2b-256 checksum How to use checksums |
b5a2ae2f3c3244d1225e6087b1638ff24cb7c2b37819f5aa586897bca75366bd
|
| 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 3, 2026.
Transparency logRelease files / konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_aarch64.whl
| Download URL | konklav_relying-1.4.0-cp312-abi3-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 652.3 kB |
| Tags | CPython 3.12 Linux glibc 2.28+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9c47818698eb0dae298851869b1cdd495d95c396eb31c5227ca1dd69ee1189fa
|
|
BLAKE2b-256 checksum How to use checksums |
a72a3c22db0cd1e26ea860ea31659b61912aea7b107ca925649224d55c79f2f6
|
| 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 3, 2026.
Transparency logRelease files / konklav_relying-1.4.0-cp312-abi3-macosx_11_0_arm64.whl
| Download URL | konklav_relying-1.4.0-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 |
82f0897870bfda9b9d3dc215004e9d84e19145654b521309f168f7e7fe367d09
|
|
BLAKE2b-256 checksum How to use checksums |
f0527296f4e842baad1c1327653fde68a3657bfec0b1ebfada8921b48a3ba5a1
|
| 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 3, 2026.
Transparency logSecurity for konklav-relying 1.4.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
All 6 files in this release have been uploaded with provenance metadata.
Attestation for konklav_relying-1.4.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 Nov 3, 2026.
Transparency logA 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.