datanivra-sdk
Typed Python SDK for the DataNivra control-plane API v1 (boundary owner: DX-02).
from datanivra_sdk import DataNivraClient
with DataNivraClient("https://api.example.test", token=session_token) as api:
for job in api.paginate(api.list_jobs, state="FAILED"):
print(job.id, job.state)
src/datanivra_sdk/_operations.pyis generated bytools/gen_python_sdk.pyfromdatanivra_contracts.api.API_ROUTES(make sdk;make contracts-checkfails when stale).client.pyimplements transport: bearer auth for user routes only,Idempotency-Key(re-sent unchanged on retries), retries only for retry-safe operations (GET, or POST with an idempotency key),ApiErrormapping that never echoes non-ApiErrorbodies, and strict response validation against the contract models. The base URL must behttps://; plainhttp://is refused for any non-loopback host (the token would travel unencrypted) unlessallow_insecure_http=Trueis passed explicitly.capacity.pyis the pure capacity planner (PERF-02); it prices scenarios with an injected estimator (client.estimate_capacityor the control plane's authoritative function).- Drift tests:
tests/test_sdk_contract.py(contract ⇄ OpenAPI ⇄ SDK methods ⇄ models),tests/test_sdk_client.py(transport behaviour),tests/test_sdk_integration.py(real composed control plane on embedded PostgreSQL).
The SDK only imports datanivra_contracts (ARCHITECTURE.md §3); it cannot reach connectors,
the engine or the agent protocol. See apps/docs/content/sdk.md for the user guide.
Metadata
Release files for datanivra-sdk 0.1.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 | |
|---|---|---|---|
| datanivra_sdk-0.1.0.tar.gz | 40.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| datanivra_sdk-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.3 kB
Release files / datanivra_sdk-0.1.0.tar.gz
| Download URL | datanivra_sdk-0.1.0.tar.gz |
|---|---|
| Size | 40.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
85553846d76c175c55bbc875b63d8795f82d10cf11beee1a01c5eaee12b7b000
|
|
BLAKE2b-256 checksum How to use checksums |
46f00a5c8cc6196ea579940b42192341fd18df399b763cc791aefc268d2652ee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Release files / datanivra_sdk-0.1.0-py3-none-any.whl
| Download URL | datanivra_sdk-0.1.0-py3-none-any.whl |
|---|---|
| Size | 45.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b53920679ae33b9eaf6047628f313af1d412a012ea7b400b0626300b80a2c01a
|
|
BLAKE2b-256 checksum How to use checksums |
0c263fc2aaefde1c6069b870ef15114577b47659c6bcd12f00c7bfba26d4e174
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|