asysocks
What it is and what it does
asysocks is a pure-Python library for building proxy-aware applications using SOCKS5, SOCKS4, and HTTP proxy protocols asynchronously. It provides both client and server implementations that can be embedded in your own code or used via command-line tools. The client supports two modes: a listener that creates a local TCP server to tunnel connections through a proxy (useful when you cannot modify the target application), and a queue mode where you pass asyncio.Queue objects to handle proxy communication within your own async code.
The library depends on asn1crypto, cryptography, and h11 for protocol handling and cryptographic operations. It includes built-in tools for common tasks like port scanning through proxies, SOCKS5 authentication testing, and running a standalone proxy server with traffic monitoring. The project is maintained but aging—last updated 289 days ago—and has a modest user base.
Use it for:
- Tunnel connections from proxy-unaware applications through SOCKS/HTTP proxies without modifying the application itself
- Implement proxy support in async Python scripts using queue-based communication with a proxy server
- Run a SOCKS4/SOCKS5/HTTP proxy server with traffic monitoring and interception capabilities
- Perform port scanning or network reconnaissance through existing proxy infrastructure
- Test SOCKS5 authentication mechanisms with the built-in bruteforcer tool
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Asynchronous SOCKS5, SOCKS4, and HTTP proxy client and server library in pure Python, supporting both listener and queue-based modes for proxy-aware applications.
Yes, if you need async proxy client/server functionality in pure Python. The permissive MIT license, low install friction, and lack of known vulnerabilities make it safe to use. The aging maintenance status is a minor concern for new projects, but the stable API and active repository suggest it is not abandoned. Suitable for pentesting tools, proxy-aware applications, and network utilities.
Install
asysocks on PyPI
pip
pip install asysocksuv
uv add asysockspoetry
poetry add asysocksInstalling asysocks
Before you install
Low install friction with a pure-Python wheel distribution. Maintenance status is aging—last release was 289 days ago—but the repository remains active and unarchived.
License in practice
MIT license (permissive) allows unrestricted use, modification, and distribution in both open-source and proprietary projects with minimal obligations.
Quickstart
pip install asysocks
from asysocks.client import SOCKSClient
client = SOCKSClient()
await client.connect('proxy_host', proxy_port, 'target_host', target_port)
Requires Python 3.6 or later; asyncio event loop must be running to use the client.
Verify before relying
- Whether the 'security' component mentioned in the description is actually implemented or remains TBD
- Performance characteristics and concurrency limits under load
- Exact port and host values for typical proxy configurations
Package facts
| License | not declared (permissive) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — asn1crypto, cryptography, h11 |
| Maintenance | aging — 289 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 121,123/month — #11,993 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: asysocks-0.2.18-py3-none-any.whl
Tags
More Networking packages
h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
psutilpsutil retrieves real-time information about…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
uvloopuvloop is a drop-in replacement for Python's…
permissive · top 1,000 on PyPI
execnetexecnet lets you spawn and communicate with…
permissive · top 1,000 on PyPI
pyzmqPyZMQ provides Python bindings for ZeroMQ…
permissive · top 1,000 on PyPI
PySocksPySocks provides a SOCKS and HTTP proxy client…
permissive · top 1,000 on PyPI
pproxypproxy is an asynchronous proxy server that…
permissive · top 15,000 on PyPI
socksioSocksio is a sans-I/O SOCKS protocol…
permissive · top 1,000 on PyPI
httpx-socksAdds SOCKS4(a), SOCKS5(h), and HTTP CONNECT…
permissive · top 5,000 on PyPI
aiohttp_socksProvides a proxy connector for aiohttp that…
permissive · top 5,000 on PyPI
python-socksProvides SOCKS4(a), SOCKS5(h), and HTTP CONNECT…
permissive · top 5,000 on PyPI
SocketSwapSocketSwap intercepts and redirects network…
permissive · top 15,000 on PyPI
minikerberosA pure-Python Kerberos client library…
permissive · top 15,000 on PyPI
websockets-proxyEnables WebSocket connections through HTTP and…
permissive · top 15,000 on PyPI
httpcore2A minimal, low-level HTTP client library…
permissive · top 1,000 on PyPI