Skip to main content

Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP tunnel)

Project description


CI Coverage Status PyPI version

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.


  • Python >= 3.7
  • anyio>=3.6.1


pip install tiny-proxy


import anyio

from tiny_proxy import Socks5ProxyHandler

async def main():
    handler = Socks5ProxyHandler(username='user', password='password')
    listener = await anyio.create_tcp_listener(local_host='', local_port=1080)
    await listener.serve(handler.handle)

if __name__ == '__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.1.tar.gz (12.3 kB view hashes)

Uploaded Source

Built Distribution

tiny_proxy-0.2.1-py3-none-any.whl (15.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page