Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

asyncio_https_proxy-0.1.1.tar.gz (27.3 kB view details)

Uploaded Source

Built Distribution

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

asyncio_https_proxy-0.1.1-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file asyncio_https_proxy-0.1.1.tar.gz.

File metadata

  • Download URL: asyncio_https_proxy-0.1.1.tar.gz
  • Upload date:
  • Size: 27.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.8.17

File hashes

Hashes for asyncio_https_proxy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3484bde1ec70410c132a5acc12ad5d35ba3982a5b2575718710f926971755a96
MD5 a6220f4009a0cff7bc90651980ec739f
BLAKE2b-256 3a77a3382049ba14f1c8bf8f7dc8a52a177c8f62ed6c9ac2308365dee04b1962

See more details on using hashes here.

File details

Details for the file asyncio_https_proxy-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for asyncio_https_proxy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 96844aff876e043e71d93c8274212bc977f9fa30764f0869553c98378a2cfcc5
MD5 57300959c9541efe12ac944156688f52
BLAKE2b-256 985a315195bbb1b25aa5d3445a322b7d2c2d53f5fc4b8bbe17329f53483cb1b2

See more details on using hashes here.

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