Skip to main content

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


Download files

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

Source Distribution

jetv_clearing_sdk-1.0.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

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

jetv_clearing_sdk-1.0.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file jetv_clearing_sdk-1.0.0.tar.gz.

File metadata

  • Download URL: jetv_clearing_sdk-1.0.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jetv_clearing_sdk-1.0.0.tar.gz
Algorithm Hash digest
SHA256 34e4acc4e627424cc2fdb140329016282b842c82428d295b7aa5687ae0743362
MD5 412402706b515314e0e78e905a480583
BLAKE2b-256 9fc0dc6680b6c13c181c3761d130ffb63c2f25066a54087eeb1448360495884e

See more details on using hashes here.

File details

Details for the file jetv_clearing_sdk-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for jetv_clearing_sdk-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 77628b4fffb290142a3f5bf8f811b3e40839362d7679ce508735a5a23a626c34
MD5 b98f327e8972d2817c4b60d8fb16fb9d
BLAKE2b-256 813e6681d96a5658bb1c62a6bf946d017964ec0f75e9a533814b2e96db07b511

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page