Stub internal Datadog Python package (ddtrace-internal).
Actively maintained. Last release 13 days ago. A safe choice.
pip install ddtrace-internalddtrace-internal
Pure-Python code shared by multiple products in dd-trace-py, extracted from
ddtrace.internal: the module registry and codeowners so far.
Pure Python by design -- this installs and imports with nothing but an interpreter. The compiled components live in their own distribution, and the two are peers: neither imports the other, and anything needing both depends on both.
Local install (editable)
python -m pip install -e .
Running tests
scripts/run_tests.py # all supported Python versions
scripts/run_tests.py --python 3.12 # a single version
scripts/run_tests.py --list # show the matrix without running it
Each (variant, Python) pair in suitespec.yml runs as a cached uv run --no-project
environment with the package installed editable, so tests import the working tree; run it
from anywhere. In CI, --wheel-path <dir> installs the exact built wheel instead of the
working tree.
Layout
src/_ddtrace_internal/— package roottests/<module_path>/test.py— tests, mirroring the source layout (e.g.src/_ddtrace_internal/foo.py→tests/foo/test.py)suitespec.yml— test matrix definition