# 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] [-d] [-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 端口号,如果不提供,则自动确定
-b BASE_URL, --base-url BASE_URL
被代理的服务的 base_url,默认值:'http://localhost'
-d, --debug 启用 debug 模式(会输出更详细的信息)
-v, --version 输出版本号
```
Raw data
{
"_id": null,
"home_page": "https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-reverse-proxy",
"name": "python-reverse-proxy",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.10",
"maintainer_email": null,
"keywords": "reverse proxy",
"author": "ChenyangGao",
"author_email": "wosiwujm@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/3f/9a/dd6e7f87f467ba2e1127cffc1a8f4985329775847b69a86fc46ba96c5fc7/python_reverse_proxy-0.0.6.tar.gz",
"platform": null,
"description": "# Python reverse proxy.\n\n## \u5b89\u88c5\n\n\u4f60\u53ef\u4ee5\u4ece [pypi](https://pypi.org/project/python-reverse-proxy/) \u5b89\u88c5\n\n```console\npip install -U python-reverse-proxy\n```\n\n## \u7528\u6cd5\n\n### \u4f5c\u4e3a\u6a21\u5757\u4f7f\u7528\n\n```python\nfrom reverse_proxy import make_application\n```\n\n### \u547d\u4ee4\u884c\u4f7f\u7528\n\n```console\n$ proxy -h\nusage: reverse-proxy [-h] [-H HOST] [-P PORT] [-b BASE_URL] [-d] [-v]\n\n\t\t\ud83c\udf0d\ud83d\udea2 python \u53cd\u5411\u4ee3\u7406\u670d\u52a1 \ud83d\udd77\ufe0f\ud83d\udd78\ufe0f\n\noptions:\n -h, --help show this help message and exit\n -H HOST, --host HOST ip \u6216 hostname\uff0c\u9ed8\u8ba4\u503c\uff1a'0.0.0.0'\n -P PORT, --port PORT \u7aef\u53e3\u53f7\uff0c\u5982\u679c\u4e0d\u63d0\u4f9b\uff0c\u5219\u81ea\u52a8\u786e\u5b9a\n -b BASE_URL, --base-url BASE_URL\n \u88ab\u4ee3\u7406\u7684\u670d\u52a1\u7684 base_url\uff0c\u9ed8\u8ba4\u503c\uff1a'http://localhost'\n -d, --debug \u542f\u7528 debug \u6a21\u5f0f\uff08\u4f1a\u8f93\u51fa\u66f4\u8be6\u7ec6\u7684\u4fe1\u606f\uff09\n -v, --version \u8f93\u51fa\u7248\u672c\u53f7\n```\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Python reverse proxy.",
"version": "0.0.6",
"project_urls": {
"Homepage": "https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-reverse-proxy",
"Repository": "https://github.com/ChenyangGao/web-mount-packs/tree/main/python-module/python-reverse-proxy"
},
"split_keywords": [
"reverse",
"proxy"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "63b36709d33826dc538b52f758945620afc768591115527b3f38da5b57f32201",
"md5": "f5f3b4512b11e85cb133678c7a953713",
"sha256": "98ce76b263046d1081c0fce6015e60babc381e841578478baa32086f3f01e147"
},
"downloads": -1,
"filename": "python_reverse_proxy-0.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "f5f3b4512b11e85cb133678c7a953713",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.10",
"size": 8633,
"upload_time": "2024-11-28T16:10:31",
"upload_time_iso_8601": "2024-11-28T16:10:31.341652Z",
"url": "https://files.pythonhosted.org/packages/63/b3/6709d33826dc538b52f758945620afc768591115527b3f38da5b57f32201/python_reverse_proxy-0.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "3f9add6e7f87f467ba2e1127cffc1a8f4985329775847b69a86fc46ba96c5fc7",
"md5": "0793532dfd6d184456ad1c690a0e8dea",
"sha256": "4ffb3fbf85624bdca8115b692a13bec4b3582eee997f515abbf667493b20e09d"
},
"downloads": -1,
"filename": "python_reverse_proxy-0.0.6.tar.gz",
"has_sig": false,
"md5_digest": "0793532dfd6d184456ad1c690a0e8dea",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.10",
"size": 6491,
"upload_time": "2024-11-28T16:10:34",
"upload_time_iso_8601": "2024-11-28T16:10:34.426406Z",
"url": "https://files.pythonhosted.org/packages/3f/9a/dd6e7f87f467ba2e1127cffc1a8f4985329775847b69a86fc46ba96c5fc7/python_reverse_proxy-0.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-11-28 16:10:34",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "ChenyangGao",
"github_project": "web-mount-packs",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "python-reverse-proxy"
}