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
Installation
pip install tiny-proxy
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.2.0.tar.gz
(12.3 kB
view hashes)
Built Distribution
tiny_proxy-0.2.0-py3-none-any.whl
(15.4 kB
view hashes)
Close
Hashes for tiny_proxy-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3949e95269197661928587dfa311d298701b06751629c1a882faf3b7d93df190 |
|
MD5 | 5f9c0af124868532d7e7a2890de0d264 |
|
BLAKE2b-256 | 012ead0fe8fb5ed851ab70cbba805f9bb9ef9752f25a6fb04317ffa0e98bc7cc |