Official Python SDK for the Clearing economic-principal (EPID) service
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jetv_clearing_sdk-1.0.1.tar.gz.
File metadata
- Download URL: jetv_clearing_sdk-1.0.1.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
052925fe9fc5121ccf761043850f41274aea925425fedc0471df1514ed053666
|
|
| MD5 |
8a5ccd0a3d5ea55d3990cc0c62eaacee
|
|
| BLAKE2b-256 |
fff93e34a492625a9ad7f6d70261c59fbc29adc9f39acfa577c7fc6bad4d1e0b
|
File details
Details for the file jetv_clearing_sdk-1.0.1-py3-none-any.whl.
File metadata
- Download URL: jetv_clearing_sdk-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2b212fb0c3caa5518f1ad64fd9b3f9c79681b698e25ae3fa68f07b02b3cf5285
|
|
| MD5 |
b4ff2d118f0108127b804736e82a19db
|
|
| BLAKE2b-256 |
ad4ed1eb1eb3ae4a2040c56beb31e8af8e237a2d81010d7b57669af32fe8895a
|