Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP tunnel)
Project description
tiny-proxy
Simple proxy (SOCKS4(a), SOCKS5(h), HTTP tunnel) server built with anyio. It is used for testing python-socks, aiohttp-socks and httpx-socks packages.
Requirements
- Python >= 3.7
- anyio>=3.6.1
Usage
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)
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
tiny_proxy-0.1.0.tar.gz
(11.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tiny_proxy-0.1.0.tar.gz.
File metadata
- Download URL: tiny_proxy-0.1.0.tar.gz
- Upload date:
- Size: 11.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb46b18c53e7aa70df2d3b7c06076448b0615df5d65cb92d9d2873341be68ae7
|
|
| MD5 |
232231c4e35f8bffdaf8b0348fdade2c
|
|
| BLAKE2b-256 |
1baa04d56740a5b04c5c81584c0762eb9330e4360643ddacd93a4e48062798c4
|
File details
Details for the file tiny_proxy-0.1.0-py3-none-any.whl.
File metadata
- Download URL: tiny_proxy-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/58.0.4 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.7.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b7695fbd905170db5cfa76d3c71fc4300d444c37e95e90787db2c4737a77c69
|
|
| MD5 |
3e1004e8d69477adfaa01e62b9afb4ca
|
|
| BLAKE2b-256 |
e2e9b5da0855c26242eb8bd5dbe9021fe0afcc253bba76e4de490c5747df870f
|