Dev-only observability for AI agent debugging
Project description
ephem-debugger-py
Dev-only observability middleware for Python web frameworks. Part of the debugger project.
Captures HTTP requests, console output, and browser-side data from your dev server. AI agents query this data through the dbg CLI.
Preview — under active development.
Install
pip install ephem-debugger-py
FastAPI
from fastapi import FastAPI
from ephem_debugger_py.middleware.fastapi import instrument
app = FastAPI()
instrument(app, port=8000)
Flask
from flask import Flask
from ephem_debugger_py.middleware.flask import init_debugger
app = Flask(__name__)
init_debugger(app, port=5000)
Django
Add to settings.py:
MIDDLEWARE = [
'ephem_debugger_py.middleware.django.DebuggerMiddleware',
# ... other middleware
]
DEBUGGER_PORT = 8000
Query with CLI
npx dbg status
npx dbg server console
npx dbg browser console
npx dbg browser network
How it works
- Middleware captures HTTP request/response metadata and logging output
- IPC bridge exposes data via Unix socket (or TCP on Windows)
- Browser client script is auto-injected into HTML responses
dbgCLI queries the session — works the same across all languages
Other languages
- Node.js —
@ephem-sh/debugger - Go —
ephem-debugger-go - Rust —
ephem-debugger-rs
License
MIT
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 ephem_debugger_py-0.3.2.tar.gz.
File metadata
- Download URL: ephem_debugger_py-0.3.2.tar.gz
- Upload date:
- Size: 12.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f6427499715b76c3f1537ae074cc71ddbb32c84545258a36bc3bafae3b10971
|
|
| MD5 |
4a976948c6665cd7f70cb1eb968fc76d
|
|
| BLAKE2b-256 |
2b0b3ff076c7b12f08c8d4c3c61896131f66a64e0eec9c7f89831b05e4ae07d3
|
File details
Details for the file ephem_debugger_py-0.3.2-py3-none-any.whl.
File metadata
- Download URL: ephem_debugger_py-0.3.2-py3-none-any.whl
- Upload date:
- Size: 18.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.11 {"installer":{"name":"uv","version":"0.10.11","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
76c9221ffa4388749a7b3d960f4b586389a3b4dca153eaa45edaf8abe48a43d5
|
|
| MD5 |
711b86564b51468dec6399a2263a4f52
|
|
| BLAKE2b-256 |
0fd0bf1855c7aa07283fecb426f8ac7bdbfc900de273eefdf79cd97c930b0d50
|