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
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 echoproxy-0.2.0.tar.gz.
File metadata
- Download URL: echoproxy-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1ebb23b1055e3ec0d78de5b8fbdecf06e63599156f2ea0728513383dc440e26e
|
|
| MD5 |
0a879edc9e8253e4687f18b1726ff76b
|
|
| BLAKE2b-256 |
cee65350f3f15553662a280de0d7ec8a11b8f850386ef6640d1e7b50d546e3a8
|
Provenance
The following attestation bundles were made for echoproxy-0.2.0.tar.gz:
Publisher:
publish-sdks.yml on songhieu/EchoProxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
echoproxy-0.2.0.tar.gz -
Subject digest:
1ebb23b1055e3ec0d78de5b8fbdecf06e63599156f2ea0728513383dc440e26e - Sigstore transparency entry: 1503156659
- Sigstore integration time:
-
Permalink:
songhieu/EchoProxy@e440377e18864c5ed49c21ef8652db21eb7cf9fd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/songhieu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@e440377e18864c5ed49c21ef8652db21eb7cf9fd -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file echoproxy-0.2.0-py3-none-any.whl.
File metadata
- Download URL: echoproxy-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24451c925a81c18e73360374ef28d620ed1e8fa56fc0d1074b649be1792a341a
|
|
| MD5 |
c27d844da1869bd87acf5dcce9061b3b
|
|
| BLAKE2b-256 |
7059cad2bdca4f75151b03f10efd417c53bc378289429a75d3d9c2baa9773205
|
Provenance
The following attestation bundles were made for echoproxy-0.2.0-py3-none-any.whl:
Publisher:
publish-sdks.yml on songhieu/EchoProxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
echoproxy-0.2.0-py3-none-any.whl -
Subject digest:
24451c925a81c18e73360374ef28d620ed1e8fa56fc0d1074b649be1792a341a - Sigstore transparency entry: 1503157072
- Sigstore integration time:
-
Permalink:
songhieu/EchoProxy@e440377e18864c5ed49c21ef8652db21eb7cf9fd -
Branch / Tag:
refs/heads/main - Owner: https://github.com/songhieu
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-sdks.yml@e440377e18864c5ed49c21ef8652db21eb7cf9fd -
Trigger Event:
workflow_dispatch
-
Statement type: