AtherDLP (Python) — Stage 1 HTTP Interceptor
Stage 1 intercepts outbound HTTP requests, classifies the destination (O(1) registry lookup), attaches a trace context, and emits a structured payload to a handler.
Install (dev)
cd AtherDLP-sdk/python
python -m pip install -e ".[test]"
Usage
import httpx
import atherdlp
def handler(payload: dict) -> None:
print(payload)
atherdlp.set_handler(handler)
atherdlp.install()
httpx.get("https://api.openai.com/v1/models", headers={"authorization": "Bearer x"})
atherdlp.uninstall()
Tracing
- If the request includes a correlation header (e.g.
X-Correlation-Id), it is propagated automatically (safe values only: ASCII alphanumeric +-, 1–64 chars). - If not present or invalid, AtherDLP generates its own trace id (
trace.trace_idin the payload). - Ather-specific tracing is always added on the outbound call via
x-ather-trace-id(andx-ather-span-id).
More detail: docs/SDK.md → Trace And Recursion Guards.
httpx.post(url, headers={"X-Correlation-Id": "my-route-8842"})
Output payload
{
"request": { "method": "...", "url": "...", "headers": { }, "body": null },
"classification": { "kind": "llm|http.out|unknown", "vendor": "...", "sensitivity": "..." },
"trace": { "trace_id": "...", "span_id": "...", "parent_span_id": null }
}
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
atherdlp-0.0.2.tar.gz
(10.0 kB
view details)
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
atherdlp-0.0.2-py3-none-any.whl
(11.4 kB
view details)
File details
Details for the file atherdlp-0.0.2.tar.gz.
File metadata
- Download URL: atherdlp-0.0.2.tar.gz
- Upload date:
- Size: 10.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4832058b09975e16391319eca06799c73faf4071182c64531e0bf2a0fb7cf862
|
|
| MD5 |
a7b5b0ab69f6871d7f2056b4a029b609
|
|
| BLAKE2b-256 |
2986a7300f260f5aa430b1b5f9dc85645879e673861d1c9a110b03870ae61279
|
File details
Details for the file atherdlp-0.0.2-py3-none-any.whl.
File metadata
- Download URL: atherdlp-0.0.2-py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee28f10bcaf20c02ba4bea483d709356deb806bd27da6b28540d1a1f6aa86bbe
|
|
| MD5 |
7c02a4761d9a98ba3976f24b7e87f7f3
|
|
| BLAKE2b-256 |
57c0680a1b52fd73511137c704332694d50952e6f83bf83c4fa55a4ac280825e
|