Metadata-Version: 2.1
Name: python-reverse-proxy
Version: 0.0.7.2
Summary: Python reverse proxy.
Home-page: https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-reverse-proxy
License: MIT
Keywords: reverse proxy
Author: ChenyangGao
Author-email: wosiwujm@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Software Development
Classifier: Topic :: Software Development :: Libraries
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Dist: blacksheep
Requires-Dist: httpx
Requires-Dist: python-dictattr (>=0.0.4)
Requires-Dist: uvicorn
Requires-Dist: websockets
Project-URL: Repository, https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-reverse-proxy
Description-Content-Type: text/markdown

# Python reverse proxy.

## 安装

你可以从 [pypi](https://pypi.org/project/python-reverse-proxy/) 安装

```console
pip install -U python-reverse-proxy
```

## 用法

### 作为模块使用

```python
from reverse_proxy import make_application
```

### 命令行使用

```console
$ proxy -h
usage: reverse-proxy [-h] [-H HOST] [-P PORT] [-b BASE_URL] [-f] [-d] [-c CONFIG] [-v]

		🌍🚢 python 反向代理服务 🕷️🕸️

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 则自动确定
  -b BASE_URL, --base-url BASE_URL
                        被代理的服务的 base_url，默认值：'http://localhost'
  -f, --full-duplex-websocket
                        代理全双工 websocket，否则为只读
  -d, --debug           启用 debug 模式（会输出更详细的信息）
  -c CONFIG, --config CONFIG
                        将被作为 JSON 解析然后作为关键字参数传给 `uvicorn.run`
  -v, --version         输出版本号
```

