Install & Compatibility
Where this runs
tested against v0.2.18 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 37.1MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 2.7s · import 0.000s · 38MB
36MB installed
● package 36MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
SocksClient
✓ from asysocks import SocksClient
✗ from asysocks.client import SocksClient
Connect to example.com via a SOCKS5 proxy at localhost:1080 and send an HTTP request.
import asyncio
from asysocks.client import SocksClient
async def main():
client = SocksClient(
target=('example.com', 80),
proxy=('127.0.0.1', 1080),
proxy_type='socks5'
)
await client.connect()
await client.send(b'GET / HTTP/1.0\r\n\r\n')
response = await client.recv()
print(response)
await client.close()
asyncio.run(main())
Upgrade
Version history
0.2.18latest on PyPI · released Oct 29, 2025
Audit
Dependencies
asynciorequiredRuntime core dependency (stdlib)
aiosqliteoptionalOptional dependency for SOCKS proxy authentication cache