Skip to main content

Python SDK for the EchoProxy HTTP observability platform — capture inbound + outbound HTTP traffic

Project description

echoproxy

Python SDK for the EchoProxy HTTP observability platform.

Install

pip install echoproxy
export ECHOPROXY_API_KEY=sk_live_xxx
export ECHOPROXY_ENDPOINT=http://localhost:8081

Capture inbound requests

FastAPI / Starlette / Django ASGI

import echoproxy
from echoproxy.asgi import CaptureMiddleware

client = echoproxy.Client()
app.add_middleware(CaptureMiddleware, client=client)

Flask / Django WSGI

import echoproxy
from echoproxy.wsgi import CaptureMiddleware

client = echoproxy.Client()
app.wsgi_app = CaptureMiddleware(app.wsgi_app, client)

Capture outbound HTTP

import httpx, echoproxy
from echoproxy import httpx_hook

client = echoproxy.Client()
http = httpx.Client(event_hooks=httpx_hook.hooks(client))

Redaction

The SDK ships with the same scrub list as the Go reference (pkg/redact):

  • Headers: Authorization, Cookie, X-Api-Key, X-Auth-Token, X-CSRF-Token, …
  • JSON fields: password, token, secret, api_key, credit_card, …
  • Patterns: JWT, Bearer, AWS keys, Stripe, GitHub, Google API, Slack, Luhn-validated cards.

Extend:

from echoproxy import Client, Config, Redactor

client = Client(Config(
    redactor=Redactor(
        extra_headers=("X-Customer-Email",),
        extra_json_fields=("account_number",),
    ),
))

ingest-api re-applies the same rules server-side, so misconfiguration here is not a wire-leak risk.

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

echoproxy-0.3.0.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

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

echoproxy-0.3.0-py3-none-any.whl (11.6 kB view details)

Uploaded Python 3

File details

Details for the file echoproxy-0.3.0.tar.gz.

File metadata

  • Download URL: echoproxy-0.3.0.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for echoproxy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 1a1092403518457df59e09c4fce1e80c4e1e763d79e9efc6bea7e91a9cc16789
MD5 ec1b2f4f081c5a5d4346d73da23a5727
BLAKE2b-256 f39078b3ff2704edc7565c7ad4ae0b5309af47f37c5c842c5442a2166dd2a516

See more details on using hashes here.

Provenance

The following attestation bundles were made for echoproxy-0.3.0.tar.gz:

Publisher: publish-sdks.yml on songhieu/EchoProxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file echoproxy-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: echoproxy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 11.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for echoproxy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1ec8d1e4b7f1280ca9eaa1005aef7395285b157412b0648135ad3032cfa790c0
MD5 989c14a82e7c386157fa647d911ad35f
BLAKE2b-256 e3f9bc06a02e4c52bf31873c1edca5881066cc6a2b9660e05d124367fcf8f0c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for echoproxy-0.3.0-py3-none-any.whl:

Publisher: publish-sdks.yml on songhieu/EchoProxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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