DevTrace - Distributed Developer Observability Engine (Python Wrapper)
Project description
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 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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pd241008_devtrace-0.1.3.tar.gz.
File metadata
- Download URL: pd241008_devtrace-0.1.3.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b03aee59ac50f4466425a31230438ed23d93e04d35f8027a1ee6c0a39e24f201
|
|
| MD5 |
7d05a81b9f9148aa1611dd8696a4f8cb
|
|
| BLAKE2b-256 |
2fe5425a114206c416b076b247a898b23994e42b0db22f0e2f3f5e69479cd161
|
File details
Details for the file pd241008_devtrace-0.1.3-py3-none-any.whl.
File metadata
- Download URL: pd241008_devtrace-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bd229fad49c27ff210137f0edc46791ea3f0462538268d3580e1918ff412d7c
|
|
| MD5 |
8ad321d725f8a4b1172f705c93d959ac
|
|
| BLAKE2b-256 |
fdc703ff870ca5fda28b5d86e5843af79eaab2b4ceb01d7685acc341e2ce0ef7
|