## tiny-proxy
[![CI](https://github.com/romis2012/tiny-proxy/actions/workflows/ci.yml/badge.svg)](https://github.com/romis2012/tiny-proxy/actions/workflows/ci.yml)
[![Coverage Status](https://codecov.io/gh/romis2012/tiny-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/romis2012/tiny-proxy)
[![PyPI version](https://badge.fury.io/py/tiny-proxy.svg)](https://pypi.python.org/pypi/tiny-proxy)
Simple proxy (SOCKS4(a), SOCKS5(h), HTTP tunnel) server built with [anyio](https://github.com/agronholm/anyio).
It is used for testing [python-socks](https://github.com/romis2012/python-socks), [aiohttp-socks](https://github.com/romis2012/aiohttp-socks) and [httpx-socks](https://github.com/romis2012/httpx-socks) packages.
## Requirements
- Python >= 3.7
- anyio>=3.6.1
## Installation
```
pip install tiny-proxy
```
## Usage
```python
import anyio
from tiny_proxy import Socks5ProxyHandler
async def main():
handler = Socks5ProxyHandler(username='user', password='password')
listener = await anyio.create_tcp_listener(local_host='127.0.0.1', local_port=1080)
await listener.serve(handler.handle)
if __name__ == '__main__':
anyio.run(main)
```
Raw data
{
"_id": null,
"home_page": "https://github.com/romis2012/tiny-proxy",
"name": "tiny-proxy",
"maintainer": "",
"docs_url": null,
"requires_python": "",
"maintainer_email": "",
"keywords": "socks socks5 socks4 http proxy server asyncio trio anyio",
"author": "Roman Snegirev",
"author_email": "snegiryev@gmail.com",
"download_url": "https://files.pythonhosted.org/packages/bc/2d/71eacfe4b3a3f87478c69fd9028725d54c454c4f94d6b5efe27ffc48bc81/tiny_proxy-0.2.1.tar.gz",
"platform": null,
"description": "## tiny-proxy\n\n[![CI](https://github.com/romis2012/tiny-proxy/actions/workflows/ci.yml/badge.svg)](https://github.com/romis2012/tiny-proxy/actions/workflows/ci.yml)\n[![Coverage Status](https://codecov.io/gh/romis2012/tiny-proxy/branch/master/graph/badge.svg)](https://codecov.io/gh/romis2012/tiny-proxy)\n[![PyPI version](https://badge.fury.io/py/tiny-proxy.svg)](https://pypi.python.org/pypi/tiny-proxy)\n\nSimple proxy (SOCKS4(a), SOCKS5(h), HTTP tunnel) server built with [anyio](https://github.com/agronholm/anyio).\nIt is used for testing [python-socks](https://github.com/romis2012/python-socks), [aiohttp-socks](https://github.com/romis2012/aiohttp-socks) and [httpx-socks](https://github.com/romis2012/httpx-socks) packages.\n\n## Requirements\n- Python >= 3.7\n- anyio>=3.6.1\n\n## Installation\n```\npip install tiny-proxy\n```\n\n## Usage\n\n```python\nimport anyio\n\nfrom tiny_proxy import Socks5ProxyHandler\n\n\nasync def main():\n handler = Socks5ProxyHandler(username='user', password='password')\n listener = await anyio.create_tcp_listener(local_host='127.0.0.1', local_port=1080)\n await listener.serve(handler.handle)\n\n\nif __name__ == '__main__':\n anyio.run(main)\n```\n\n\n\n",
"bugtrack_url": null,
"license": "Apache 2",
"summary": "Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP tunnel)",
"version": "0.2.1",
"project_urls": {
"Homepage": "https://github.com/romis2012/tiny-proxy"
},
"split_keywords": [
"socks",
"socks5",
"socks4",
"http",
"proxy",
"server",
"asyncio",
"trio",
"anyio"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "6a02b4b3c83d80d35fabf51addb447614ab083555df4c4f680cfbcf67cc185b2",
"md5": "8b7f003d695b3f371b9ab70a2f80c32d",
"sha256": "1b9115a1f7edc8824c18fb636ca7f1961a7a8c4118f27cfe6f78f036a272b8b8"
},
"downloads": -1,
"filename": "tiny_proxy-0.2.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "8b7f003d695b3f371b9ab70a2f80c32d",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 15436,
"upload_time": "2023-11-05T14:08:38",
"upload_time_iso_8601": "2023-11-05T14:08:38.857989Z",
"url": "https://files.pythonhosted.org/packages/6a/02/b4b3c83d80d35fabf51addb447614ab083555df4c4f680cfbcf67cc185b2/tiny_proxy-0.2.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "bc2d71eacfe4b3a3f87478c69fd9028725d54c454c4f94d6b5efe27ffc48bc81",
"md5": "85644eaddacbaa586e38931f0e9d1b39",
"sha256": "780599ead0b80810e95af88ef5736ba9a531ebcf76b7d98c0afadc619d30d816"
},
"downloads": -1,
"filename": "tiny_proxy-0.2.1.tar.gz",
"has_sig": false,
"md5_digest": "85644eaddacbaa586e38931f0e9d1b39",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 12258,
"upload_time": "2023-11-05T14:08:40",
"upload_time_iso_8601": "2023-11-05T14:08:40.576475Z",
"url": "https://files.pythonhosted.org/packages/bc/2d/71eacfe4b3a3f87478c69fd9028725d54c454c4f94d6b5efe27ffc48bc81/tiny_proxy-0.2.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-11-05 14:08:40",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "romis2012",
"github_project": "tiny-proxy",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "tiny-proxy"
}