jetv-clearing-sdk
Official Python SDK for the Clearing economic-principal (EPID) service.
Clearing assigns every economic principal — humans, services, agents, organizations, and providers — a stable EPID and a canonical kind, and exposes signed, auditable operations for resolution, sourced writes, and identity unification.
Install
pip install jetv-clearing-sdk
Tiers
The SDK is layered so each caller only takes the capability (and trust) it needs:
| Tier | Constructor | Capability |
|---|---|---|
| L1 — read | ClearingClient.read_only(...) |
resolve EPIDs, read canonical kinds (no signing keys) |
| L2 — source | ClearingClient.source(...) |
F4-signed ensure / link / affiliate writes |
| L3 — unify | ClearingClient.unify(...) |
key-proof, verified-attribute, bind, and realm-link flows |
Quick start (L1)
import asyncio
from clearing_sdk import ClearingClient
async def main():
client = ClearingClient.read_only(base_url="https://clearing.internal")
resolved = await client.resolve("user", "alice@example.com")
print(resolved.epid, resolved.canonical_kind, resolved.status)
asyncio.run(main())
Canonical JSON & signing
For source-authenticated (F4) and unify (L2/L3) operations the SDK produces a
Go-exact canonical JSON encoding so signatures verify byte-for-byte against the
server reference implementation, including HTML escaping of <, >, & and
U+2028 / U+2029. Floating-point numbers are rejected in signed bodies to keep
canonicalization deterministic.
Resilience
The L1 read client ships an in-process TTL cache, single-flight request
deduplication, and a circuit breaker with zero required third-party runtime deps
beyond httpx and cryptography.
License
Apache-2.0
Metadata
Release files for jetv-clearing-sdk 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jetv_clearing_sdk-1.0.2.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jetv_clearing_sdk-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.7 kB
Release files / jetv_clearing_sdk-1.0.2.tar.gz
| Download URL | jetv_clearing_sdk-1.0.2.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8c655ab9fcac4a322fa86d59cd31456851ef6a80e38805fb5c701ec1490f74b8
|
|
BLAKE2b-256 checksum How to use checksums |
4a66ddde37894a66639f3463dfce2d0914e2fea76643fa4b4f73f343e51f06a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|
Release files / jetv_clearing_sdk-1.0.2-py3-none-any.whl
| Download URL | jetv_clearing_sdk-1.0.2-py3-none-any.whl |
|---|---|
| Size | 17.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7cce088c9729e81d54f9ed353e4b78e22e4225c65abdfae2b87ba21294e68f27
|
|
BLAKE2b-256 checksum How to use checksums |
a19aa7d828b9e08eeae76fecf0da3873d4d3999dad7a05d4d5b5e12c1acb42db
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.12
|