Skip to main content

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.py is generated by tools/gen_python_sdk.py from datanivra_contracts.api.API_ROUTES (make sdk; make contracts-check fails when stale).
  • client.py implements 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), ApiError mapping that never echoes non-ApiError bodies, and strict response validation against the contract models. The base URL must be https://; plain http:// is refused for any non-loopback host (the token would travel unencrypted) unless allow_insecure_http=True is passed explicitly.
  • capacity.py is the pure capacity planner (PERF-02); it prices scenarios with an injected estimator (client.estimate_capacity or 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)

Source distribution for datanivra-sdk 0.1.0
File Size Uploaded
datanivra_sdk-0.1.0.tar.gz 40.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datanivra-sdk 0.1.0
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page