Embeddable asyncio HTTPS forward proxy with request/response interception for Python applications
Project description
asyncio-https-proxy
An embeddable, asyncio-based HTTPS forward proxy server with built-in request and response interception capabilities. Designed to be integrated directly into your Python applications rather than run as a standalone service.
It's designed to be a lightweight, flexible solution for developers needing to proxy HTTP and HTTPS traffic within their applications, with full support for SSL/TLS interception. Developer keep control over the outgoing requests and responses allowing to use custom logic for modifying, logging, blocking traffic and even custom TLS fingerprinting.
The library is built using Python's asyncio framework, making it suitable for high-performance, asynchronous applications.
The library manages its own Certificate Authority (CA) to dynamically generate and sign certificates for intercepted HTTPS traffic.
It's a fundation layer for building your own proxy-based tools.
Features
- Embeddable: Integrate proxy functionality directly into your Python application
- Asyncio-native: Built with Python's asyncio for seamless integration with async applications
- HTTPS/SSL support: Full SSL/TLS interception
- Certificate generation: Dynamically generate and sign certificates for intercepted HTTPS traffic
- Request/Response interception: Modify, log, or block HTTP(S) traffic in real-time
- Lightweight: Pure Python implementation with only cryptography as a direct external dependency
- Optional implementation of forward proxy: The implementation to forward HTTP request can be replace in order to use different HTTP client implementation
Use Cases
- Web scraping frameworks with request modification and custom TLS fingerprinting support
- Testing frameworks with traffic interception
- Security tools and traffic analysis
- Development tools requiring HTTP(S) proxying
- Custom cache or logging solutions
- Fault injection and network simulation
- Research and educational purposes
Documentation
Document is available here: https://asyncio-https-proxy.readthedocs.io/en/latest/
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 asyncio_https_proxy-0.1.0.tar.gz.
File metadata
- Download URL: asyncio_https_proxy-0.1.0.tar.gz
- Upload date:
- Size: 27.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db00bb631c28ed9e7bb4837ccb0e908a19f31a7ae5dc6d268c71a617ab5abe79
|
|
| MD5 |
6e4c178c3eba28502c0a468ceb6acf7b
|
|
| BLAKE2b-256 |
1d9406582a5dc4a70d7c903d2abd1a2ededb1201a2f09cdab05d634e92c670ed
|
File details
Details for the file asyncio_https_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: asyncio_https_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.8.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c29a4ccf2fd8d26d5d050281fec11608258244ecd5963b6abb421d3525dae532
|
|
| MD5 |
6400eb0f9260a15090f43df44e624bee
|
|
| BLAKE2b-256 |
2bd36f633f94b3319a524b1642403686e5711adba6ce95d6b3179e5fda885582
|