aiohttp_socks
Proxy connector for aiohttp
Decision gist · record as of 2026-08-14
Yes. The package is actively maintained, has no known vulnerabilities, low install friction, and solves a specific problem (proxy support in aiohttp) with a clean API. It is well-positioned in the ecosystem (top 5000 PyPI packages) and supports current Python versions. Install if you need proxy support for aiohttp-based async HTTP clients.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python >= 3.9 and aiohttp >= 3.10.0; async context required.
- Low install friction with a pure-Python wheel distribution.
- Actively maintained with a recent release (2 days old) and steady repository activity; supports current Python versions from 3.9 through 3.14.
License · maintenance · safety
Apache-2.0 (permissive) — Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restriction.
last release 2026-08-12 (2 days) · last repo commit 2026-08-12 · 243 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 3,255,336 downloads/mo, #2,682 on PyPI
Alternatives
Verify before relying
pip install aiohttp_socks
import aiohttp
from aiohttp_socks import ProxyConnector
async def fetch(url):
connector = ProxyConnector.from_url('socks5://user:password@127.0.0.1:1080')
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get(url) as response:
return await response.text()- Performance characteristics when chaining multiple proxies or under high concurrency.
- Compatibility guarantees with aiohttp versions beyond 3.10.0.
What it is and what it does
aiohttp-socks is a proxy connector library that extends aiohttp's HTTP client to route requests through SOCKS and HTTP proxies. It wraps python-socks to provide a single integration point with aiohttp, supporting SOCKS4(a), SOCKS5(h), and HTTP CONNECT proxies individually or chained together. The library is designed for async applications that need to tunnel HTTP traffic through proxy infrastructure without managing low-level socket details.
You use it by instantiating a ProxyConnector with proxy credentials and passing it to aiohttp.ClientSession, then making requests normally. It handles authentication, remote DNS resolution for SOCKS5, and multi-proxy chains through a dedicated ChainProxyConnector class. The package maintains compatibility with recent aiohttp releases through a minimal integration surface.
Use it for
- Route aiohttp requests through a corporate SOCKS5 proxy with authentication.
- Chain multiple proxies for layered anonymity or network segmentation in async applications.
- Tunnel HTTP traffic through HTTP CONNECT proxies in async web scrapers or API clients.
- Test async HTTP clients against proxy infrastructure in CI/CD pipelines.
- Build async applications that need to respect network policies requiring proxy routing.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
The package is actively maintained, has no known vulnerabilities, low install friction, and solves a specific problem (proxy support in aiohttp) with a clean API. It is well-positioned in the ecosystem (top 5000 PyPI packages) and supports current Python versions. Install if you need proxy support for aiohttp-based async HTTP clients.
Install
aiohttp-socks on PyPI
Before you install
Low install friction with a pure-Python wheel distribution. Actively maintained with a recent release (2 days old) and steady repository activity; supports current Python versions from 3.9 through 3.14.
Requires Python >= 3.9 and aiohttp >= 3.10.0; async context required.
License in practice
Licensed under Apache-2.0 (permissive), allowing use in most commercial and open-source projects without significant restriction.
Quickstart
pip install aiohttp_socks
import aiohttp
from aiohttp_socks import ProxyConnector
async def fetch(url):
connector = ProxyConnector.from_url('socks5://user:password@127.0.0.1:1080')
async with aiohttp.ClientSession(connector=connector) as session:
async with session.get(url) as response:
return await response.text()
Verify before relying
- Performance characteristics when chaining multiple proxies or under high concurrency.
- Compatibility guarantees with aiohttp versions beyond 3.10.0.
Package facts
| License | Apache-2.0 permissive |
| Python support | Supports the current Python release >=3.9.0 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesaiohttppython-socks |
| Maintenance | Actively maintained 2 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 3,255,336 / month, #2,682 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaFramework :: AsyncIOIntended Audience :: DevelopersOperating System :: MacOSOperating System :: MicrosoftOperating System :: POSIX :: LinuxProgramming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Internet :: WWW/HTTP |
Evidence: aiohttp_socks-0.12.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “aiohttp proxy connector”
- aiohttp_socksProvides a proxy connector for aiohttp that supports SOCKS4(a),…
- querysourceQuerySource provides a unified async interface to query multiple…
- aiohttp-asgi-connectorProvides an AIOHTTP connector that lets you test ASGI applications by…
Give your agent the search over MCP, or paste the wish link into any chat.
More WWW/HTTP packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
h11 is a pure-Python HTTP/1.1 protocol implementation that handles parsing and serializing HTTP messages without any built-in I/O, letting you integrate it with any network layer you choose.
HTTPX is a fully featured HTTP client library for Python that provides both sync and async APIs, with support for HTTP/1.1 and HTTP/2, plus an integrated command-line client.
Install it if you are building new projects or modernizing existing ones that rely on HTTP.
A minimal low-level HTTP client library that sends HTTP requests with thread-safe and task-safe connection pooling, supporting HTTP/1.1, HTTP/2, proxies, and both sync and async interfaces.
aiohttp is an async HTTP client and server framework built on asyncio, supporting both WebSockets and middleware-based routing for building concurrent web applications.
Install it if you need async HTTP client or server capabilities in asyncio-based applications.
See also python-socks · httpx-socks · websockets-proxy · asysocks · socksio · PySocks · SocketSwap · pproxy · aiohttp-asyncmdnsresolver · aiohttp-basicauth