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.1.1.tar.gz
(11.6 kB
view hashes)
Built Distribution
tiny_proxy-0.1.1-py3-none-any.whl
(15.3 kB
view hashes)
Close
Hashes for tiny_proxy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7629ee91c9dd00c098bb110f113605cdf77ee18cdd53f33d66e7eb7c4aef4906 |
|
MD5 | 0cde940219ad890d38a8070b00d4e2c8 |
|
BLAKE2b-256 | 64bd21aec99ff9bcf7167469c5fa831b3a9c594426aba29b40155423265c342b |