Skip to main content

getdx

PyPI version Python versions CI License: MIT

Sync-first Python SDK covering both DX APIs:

  • DX Web API (https://api.getdx.com)
  • DX Data Cloud API (https://{instance}.getdx.net/api)

This SDK does not cache API responses. Each call fetches fresh data.

Install

pip install getdx

Requires Python 3.10+.

Quickstart

Web API only

from getdx import DXClient, DXWebConfig

with DXClient(web=DXWebConfig(token="<DX_WEB_API_TOKEN>")) as client:
    entities = client.web.entities.list(limit=10)
    overview = client.web.aggregates.entity_overview("my-entity-id")
    print(entities)
    print(overview.tasks)

Data Cloud API only

from getdx import DXClient, DXDataCloudConfig

with DXClient(
    data_cloud=DXDataCloudConfig(
        token="<DX_DATA_CLOUD_TOKEN>",
        instance="yourinstance",
    )
) as client:
    group = client.data_cloud.repo_groups.get(reference_id="frontend-team")
    print(group)

Both APIs in one client

from getdx import DXClient, DXDataCloudConfig, DXWebConfig

with DXClient(
    web=DXWebConfig(token="<DX_WEB_API_TOKEN>"),
    data_cloud=DXDataCloudConfig(token="<DX_DATA_CLOUD_TOKEN>", instance="yourinstance"),
) as client:
    web_entity = client.web.entities.info("entity-1")
    repo_group = client.data_cloud.repo_groups.get(reference_id="frontend-team")

Data Cloud convenience helpers

  • client.data_cloud.custom_data.delete_by_id(id)
  • client.data_cloud.custom_data.delete_by_reference_key(reference, key)
  • client.data_cloud.deployments.set_pull_services_by_github_pull_id(...)
  • client.data_cloud.deployments.set_pull_services_by_repo_and_number(...)

Optional namespace behavior

If web or data_cloud was not configured on DXClient, accessing that namespace raises DXClientNotConfiguredError.

Environment variables

  • DX_WEB_API_TOKEN for Web API token fallback
  • DX_DATA_CLOUD_TOKEN for Data Cloud token fallback
  • DX_DATA_CLOUD_INSTANCE for Data Cloud instance fallback

Development

Clone and install with uv:

git clone https://github.com/priiiiit/dx-python.git
cd dx-python
uv sync --dev

Regenerate API wrappers

Generated modules live under:

  • src/getdx/web/ (operations.py, services/)
  • src/getdx/data_cloud/ (operations.py, services/)
uv run python scripts/generate_from_openapi.py \
  --api-name web \
  --spec specs/dx_web_api_openapi.json

uv run python scripts/generate_from_openapi.py \
  --api-name data_cloud \
  --spec specs/dx_data_cloud_api_openapi.json

Testing and linting

uv run ruff format .
uv run ruff check .
uv run pytest

Optional live smoke tests:

RUN_LIVE_DX_TESTS=1 uv run pytest tests/live -q

For Data Cloud live smoke, set:

  • DX_DATA_CLOUD_TOKEN
  • DX_DATA_CLOUD_INSTANCE
  • DX_DATA_CLOUD_TEST_REFERENCE_ID

License

MIT — see LICENSE.

Metadata

Release files for getdx 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for getdx 0.1.1
File Size Uploaded Provenance Actions
getdx-0.1.1.tar.gz 81.8 kB With provenance Details for getdx-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for getdx 0.1.1
File Interpreter ABI Platform Actions
getdx-0.1.1-py3-none-any.whl Python 3 none any Details for getdx-0.1.1-py3-none-any.whl

Total release size: 115.7 kB

Release files / getdx-0.1.1.tar.gz

Download URL getdx-0.1.1.tar.gz
Size 81.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bd7f1bee3ad4c74be932cf4c730531b5cb6beb15f5c844fd847ca3712bc5f61c
BLAKE2b-256 checksum
How to use checksums
b19760ab0b7eab0ed4e2a03fa894def86867ae4ffdfc1a89eac86a86b5438c37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Release files / getdx-0.1.1-py3-none-any.whl

Download URL getdx-0.1.1-py3-none-any.whl
Size 33.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a98af85e1a905d45781718df6b456f9b3a3d98152372e814ed9e4c4e93ccdc78
BLAKE2b-256 checksum
How to use checksums
718f34c85f5a98fef157a8298c23fb78e305d579555420792b471743c95634ab
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

Security for getdx 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for getdx-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jun 16, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full provenance

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