Skip to main content

Python reverse proxy.

Project description

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         输出版本号

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

python_reverse_proxy-0.0.10.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

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

python_reverse_proxy-0.0.10-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file python_reverse_proxy-0.0.10.tar.gz.

File metadata

  • Download URL: python_reverse_proxy-0.0.10.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.4 CPython/3.12.4 Darwin/23.5.0

File hashes

Hashes for python_reverse_proxy-0.0.10.tar.gz
Algorithm Hash digest
SHA256 7a8434ebbd17df013415e3f6fc7b5dff88a08737a8c26e85a7a9dba04764abce
MD5 ee436d31efb439302f5b8936e7113a54
BLAKE2b-256 4b4f9de85562463f5485786f555eae4d5632ec718efafbe2d70461f6033edb35

See more details on using hashes here.

File details

Details for the file python_reverse_proxy-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for python_reverse_proxy-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 8387aa583c53d135daf31c956329ed87ce680a6b538da0f2a796e8afac54a383
MD5 30d589050c0952620a6bfce9d8ae696d
BLAKE2b-256 83c6b96aca6dadf08bb35b9c869c373d32a3b2dee4ee8bee3e639f90a4197661

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