Install & Compatibility
Where this runs
tested against v0.408.2 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.428s · 38.4MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 4.5s · import 0.404s · 39MB
37MB installed
● package 37MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
DXHTTPRequest
✓ import dxpy
✗ from dxpy import DXHTTPRequest
DXHTTPRequest is not in the public API; use dxpy.DXHTTPRequest() from the top-level import.
DXJob
✓ import dxpy
✗ from dxpy.exceptions import *
Many classes are re-exported from the top-level `dxpy` package. Prefer `dxpy.DXJob` over deeply nested imports.
Sets authentication and lists accessible projects.
import os
import dxpy
dxpy.set_security_context({
'auth_token': os.environ.get('DX_AUTH_TOKEN', ''),
'project_id': os.environ.get('DX_PROJECT_ID', '')
})
# List projects
for p in dxpy.find_projects():
print(p.name)
dx --version
Errors
Common errors & fixes
ImportError: No module named dxpy
dxpy not installed or not in the current Python environment.
fixRun `pip install dxpy` in the target environment.
dxpy.exceptions.DXAPIError: Authentication required
Auth token missing or expired.
fixSet `DX_AUTH_TOKEN` environment variable or use `dxpy.set_security_context({'auth_token': '...'})`. AttributeError: module 'dxpy' has no attribute 'DXJob'
Outdated dxpy version (<0.300) or incorrect import.
fixUpgrade dxpy: `pip install --upgrade dxpy` and ensure you use `import dxpy`.
Upgrade
Version history
0.408.2latest on PyPI · released Apr 13, 2026
Audit
Dependencies
No dependency data recorded yet.