Skip to main content

Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol

Project description

asgiproxy

Tools for building HTTP and Websocket proxies for the asynchronous ASGI protocol.

Usage

Command line usage

asgiproxy includes a small command-line tool that transparently (aside from rewriting the "Host" header) proxies all HTTP and WebSocket requests to another endpoint.

It may be useful on its own, and also serves as a reference on how to use the library.

While the library itself does not require Uvicorn, the CLI tool does.

$ python -m asgiproxy http://example.com/

starts a HTTP server on http://0.0.0.0:40404/ which should show you the example.com content.

API usage

Documentation forthcoming. For the time being, see asgiproxy/__main__.py.

Running tests

Tests are run with Py.test.

py.test

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

asgiproxy-0.2.0-py3-none-any.whl (8.8 kB view details)

Uploaded Python 3

File details

Details for the file asgiproxy-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: asgiproxy-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.5.7

File hashes

Hashes for asgiproxy-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b952917b2a3318c558f2cba6a91329b060af5621e5f4e301948d922fe2fdcc5b
MD5 63d88a742ca57e92ab00a5cabbb60a9e
BLAKE2b-256 f1a9ceb963a6f5be13024f850816db1ab9b53efbcf4be688c64a4c1ecccda810

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page