Skip to main content

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 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pd241008_devtrace-0.1.4.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pd241008_devtrace-0.1.4-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file pd241008_devtrace-0.1.4.tar.gz.

File metadata

  • Download URL: pd241008_devtrace-0.1.4.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

Hashes for pd241008_devtrace-0.1.4.tar.gz
Algorithm Hash digest
SHA256 a2002a1415dc9346dc7438f69885d94719d0521287f1981b5e56d4a259c8e614
MD5 b44ad2bbbeb928da81651bc522f4a49c
BLAKE2b-256 bca86de0082cf6e6ba7b433436949718aa50816be7b0f96ebb3a3820183b1984

See more details on using hashes here.

File details

Details for the file pd241008_devtrace-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pd241008_devtrace-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 ff24d5dbb7c1906cc38955db83e9bcddf1ca40b416e6cc8c0fe6c56fa24d7338
MD5 3b37ba5a81d9a5f61cc7eb3c56ebcf0a
BLAKE2b-256 c19d12cc56554ee3488854aec615c471fc237919866e5bbca9d545f2299d1273

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page