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
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 Distributions
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b952917b2a3318c558f2cba6a91329b060af5621e5f4e301948d922fe2fdcc5b
|
|
| MD5 |
63d88a742ca57e92ab00a5cabbb60a9e
|
|
| BLAKE2b-256 |
f1a9ceb963a6f5be13024f850816db1ab9b53efbcf4be688c64a4c1ecccda810
|