Python reverse proxy.
安装
你可以从 pypi 安装
pip install -U python-reverse-proxy
用法
作为模块使用
from reverse_proxy import make_application
命令行使用
$ proxy -h
usage: reverse_proxy [-h] [-H HOST] [-P PORT] [-m {,r,w,rw}] [-d] [-c CONFIG] [-v] [base-url]
🌍🚢 python 反向代理服务 🕷️🕸️
positional arguments:
base-url 被代理的服务的 base_url,默认值:'http://localhost'
options:
-h, --help show this help message and exit
-H HOST, --host HOST ip 或 hostname,默认值:'0.0.0.0'
-P PORT, --port PORT 端口号,默认值:8888,如果为 0 则自动确定
-m {,r,w,rw}, --ws-mode {,r,w,rw}
websocket 的读写模式,'r' 为可读,'w' 为可写
-d, --debug 启用 debug 模式(会输出更详细的信息)
-c CONFIG, --config CONFIG
将被作为 JSON 解析然后作为关键字参数传给 `uvicorn.run`
-v, --version 输出版本号
Metadata
Release files for python-reverse-proxy 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| python_reverse_proxy-0.0.10.tar.gz | 8.3 kB | Without provenance | Details for python_reverse_proxy-0.0.10.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| python_reverse_proxy-0.0.10-py3-none-any.whl | Python 3 | none | any | Details for python_reverse_proxy-0.0.10-py3-none-any.whl |
Total release size: 19.0 kB
Release files / python_reverse_proxy-0.0.10.tar.gz
| Download URL | python_reverse_proxy-0.0.10.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7a8434ebbd17df013415e3f6fc7b5dff88a08737a8c26e85a7a9dba04764abce
|
|
BLAKE2b-256 checksum How to use checksums |
4b4f9de85562463f5485786f555eae4d5632ec718efafbe2d70461f6033edb35
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.4 Darwin/23.5.0
|
Release files / python_reverse_proxy-0.0.10-py3-none-any.whl
| Download URL | python_reverse_proxy-0.0.10-py3-none-any.whl |
|---|---|
| Size | 10.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8387aa583c53d135daf31c956329ed87ce680a6b538da0f2a796e8afac54a383
|
|
BLAKE2b-256 checksum How to use checksums |
83c6b96aca6dadf08bb35b9c869c373d32a3b2dee4ee8bee3e639f90a4197661
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.4 CPython/3.12.4 Darwin/23.5.0
|
Security for python-reverse-proxy 0.0.10
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.