DevTrace Python Wrapper
This is the Python wrapper for DevTrace — the Distributed Developer Observability Engine.
This package dynamically manages the high-performance Rust proxy engine for you. Upon first execution, it automatically downloads the correct binary tailored for your OS and architecture directly from GitHub Releases, meaning you don't need to manually compile Rust or manage paths!
Installation
pip install pd241008-devtrace
CLI Usage
You can run the proxy server easily from your terminal.
# Start the proxy server
devtrace serve
Or trigger a replay by ID:
devtrace replay 42
Programmatic Usage (Flask, FastAPI, Django)
You can embed and control the DevTrace proxy directly inside your Python backend applications.
from devtrace import DevTrace
import time
# Initialize the proxy (you can optionally pass env vars)
proxy = DevTrace(env={"RUST_LOG": "info"})
# Start the DevTrace Engine in the background.
# This will download the binary on the first run automatically!
proxy.start()
print("Proxy is running! Your Python app can now route traffic through it.")
# (Start your Flask/FastAPI server here...)
# For demonstration, we'll just sleep
try:
time.sleep(600)
except KeyboardInterrupt:
pass
finally:
# Make sure to clean up the proxy process
proxy.stop()
Replaying Requests from Python
You can trigger replays programmatically for automated testing or debugging scripts:
from devtrace import DevTrace
proxy = DevTrace()
# Replay request ID 42
proxy.replay(42)
Custom Binary Location
If you need to use a custom binary download server (e.g. for internal enterprise hosting), set the DEVTRACE_BINARY_URL environment variable before the proxy is executed for the first time.
export DEVTRACE_BINARY_URL="http://localhost:8000/my-local-builds"
devtrace serve
Metadata
Release files for pd241008-devtrace 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pd241008_devtrace-0.1.4.tar.gz | 3.7 kB | Without provenance | Details for pd241008_devtrace-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pd241008_devtrace-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for pd241008_devtrace-0.1.4-py3-none-any.whl |
Total release size: 8.5 kB
Release files / pd241008_devtrace-0.1.4.tar.gz
| Download URL | pd241008_devtrace-0.1.4.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a2002a1415dc9346dc7438f69885d94719d0521287f1981b5e56d4a259c8e614
|
|
BLAKE2b-256 checksum How to use checksums |
bca86de0082cf6e6ba7b433436949718aa50816be7b0f96ebb3a3820183b1984
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / pd241008_devtrace-0.1.4-py3-none-any.whl
| Download URL | pd241008_devtrace-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff24d5dbb7c1906cc38955db83e9bcddf1ca40b416e6cc8c0fe6c56fa24d7338
|
|
BLAKE2b-256 checksum How to use checksums |
c19d12cc56554ee3488854aec615c471fc237919866e5bbca9d545f2299d1273
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for pd241008-devtrace 0.1.4
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.