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.2.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.2.0
File Size Uploaded
datanivra_sdk-0.2.0.tar.gz 42.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for datanivra-sdk 0.2.0
File Interpreter ABI Platform
datanivra_sdk-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 91.3 kB

Release files / datanivra_sdk-0.2.0.tar.gz

Download URL datanivra_sdk-0.2.0.tar.gz
Size 42.8 kB
Tags Source
SHA-256 checksum
How to use checksums
0fa164e66887e7150d8123e5ce1f6251a6e9f36a6a1df67411440ee1e7658079
BLAKE2b-256 checksum
How to use checksums
2a0c2cb4ccad5ea08f88e96938312ae229d525ef02cd2e8004da0f5789dcfd8d
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.2.0-py3-none-any.whl

Download URL datanivra_sdk-0.2.0-py3-none-any.whl
Size 48.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cb9561c016f3529e401f706d681bee21028951b91d07fab24b1142140126a04e
BLAKE2b-256 checksum
How to use checksums
3ac785b7e32b823b580e0ec33dd0358d74e9eac94cfa3a901dd8703c332d692b
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.2.0 This release

2 release files

0.1.0

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