Skip to main content

datanivra-cli

The datanivra command line (DX-01): metadata and orchestration only.

datanivra login --url https://api.example.test --device --tenant acme-qa   # identity provider (RFC 8628)
datanivra login --url https://api.example.test --id-token-stdin --tenant acme-qa < id_token.txt  # CI
datanivra login --url https://api.example.test --token-stdin < token.txt
datanivra jobs list --state FAILED -o json
datanivra datasets request create request.json --idempotency-key "$CI_PIPELINE_ID"
  • src/datanivra_cli/app.py — argparse command tree (login, org, roles, users, agents [enroll], sources, discover [review], policies [lifecycle], environments, datasets [request, provision, rollback, revoke], jobs, certify, refresh, packs, billing, audit, capacity) and exit codes. Every auth='user' operation of API_ROUTES has a command — tests/test_cli_coverage.py runs each one against a recording fake and fails for a new operation without a command.
  • config.py — profiles in profiles.json (0600, atomic writes, refuses group/world-readable files, token never printed, only sent to the URL it was issued for).
  • device.py — OAuth 2.0 device authorization grant against the identity provider the control plane advertises (GET /v1/auth/oidc/config): https-only IdP URLs (http only to loopback), issuer check, slow_down/denial/expiry handling; the ID token is exchanged at POST /v1/auth/oidc/exchange and never printed. logout revokes the session server-side (POST /v1/auth/logout) before forgetting it.
  • Transport security: the control-plane URL must be https://; plain http:// is accepted only for a loopback host (localhost, 127.0.0.0/8, [::1]), so neither a stored nor a DATANIVRA_TOKEN session token is ever sent in clear text across a network. --insecure-http is the explicit opt-in for a trusted private network.
  • output.py — egress guard (only CONTROL_METADATA / AGGREGATE_METRIC / EVIDENCE_METADATA / SECRET_REFERENCE fields are printed), stable JSON, tables.

The CLI talks only to the control plane via datanivra_sdk; it imports no connectors, engine or agent code (enforced by tests/contract/test_import_boundaries.py and tests/test_cli_unit.py). User guide: apps/docs/content/cli.md.

Tests: uv run pytest packages/cli -q (unit + end-to-end against the composed control plane on embedded PostgreSQL).

Metadata

Release files for datanivra-cli 0.3.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-cli 0.3.0
File Size Uploaded Provenance Actions
datanivra_cli-0.3.0.tar.gz 71.3 kB Without provenance Details for datanivra_cli-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for datanivra-cli 0.3.0
File Interpreter ABI Platform Actions
datanivra_cli-0.3.0-py3-none-any.whl Python 3 none any Details for datanivra_cli-0.3.0-py3-none-any.whl

Total release size: 148.2 kB

Release files / datanivra_cli-0.3.0.tar.gz

Download URL datanivra_cli-0.3.0.tar.gz
Size 71.3 kB
Tags Source
SHA-256 checksum
How to use checksums
de8c9ea7ade0f9af6f1d43851fbe9711fed8678da59658905e344a2b215d578b
BLAKE2b-256 checksum
How to use checksums
546f40102a416fd955936972f90cce9c4a26b7195f157066e6e71c115e31f823
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / datanivra_cli-0.3.0-py3-none-any.whl

Download URL datanivra_cli-0.3.0-py3-none-any.whl
Size 76.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
898bdb131086567f299a73fd4dc660f5b74b74cdf8b0eb9cc7a945893f5b733a
BLAKE2b-256 checksum
How to use checksums
d1ff83f48f4cbc7e0a2ecf457502f570c040803be44a75dba1d42ed91d064709
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Security for datanivra-cli 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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