Skip to main content

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_id in the payload).
  • Ather-specific tracing is always added on the outbound call via x-ather-trace-id (and x-ather-span-id).

More detail: docs/SDK.mdTrace 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)

Uploaded Source

Built Distribution

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

atherdlp-0.0.2-py3-none-any.whl (11.4 kB view details)

Uploaded Python 3

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

Hashes for atherdlp-0.0.2.tar.gz
Algorithm Hash digest
SHA256 4832058b09975e16391319eca06799c73faf4071182c64531e0bf2a0fb7cf862
MD5 a7b5b0ab69f6871d7f2056b4a029b609
BLAKE2b-256 2986a7300f260f5aa430b1b5f9dc85645879e673861d1c9a110b03870ae61279

See more details on using hashes here.

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

Hashes for atherdlp-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee28f10bcaf20c02ba4bea483d709356deb806bd27da6b28540d1a1f6aa86bbe
MD5 7c02a4761d9a98ba3976f24b7e87f7f3
BLAKE2b-256 57c0680a1b52fd73511137c704332694d50952e6f83bf83c4fa55a4ac280825e

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page