All Projects → romis2012 → aiosocksy

romis2012 / aiosocksy

Licence: Apache-2.0 license
SOCKS proxy client for aiohttp 3.x

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to aiosocksy

aiokubernetes
Asynchronous Kubernetes Client
Stars: ✭ 26 (-16.13%)
Mutual labels:  aiohttp
aioapi
Yet another way to build APIs using AIOHTTP framework
Stars: ✭ 14 (-54.84%)
Mutual labels:  aiohttp
aiohttp-sentry
An aiohttp server middleware for reporting failed requests to Sentry
Stars: ✭ 35 (+12.9%)
Mutual labels:  aiohttp
PornHub-Downloader
基于 Aiohttp 和 Pyppeteer 的 PornHub 视频下载工具,支持多任务并行下载。
Stars: ✭ 20 (-35.48%)
Mutual labels:  aiohttp
telescope
A dumb auditing service
Stars: ✭ 15 (-51.61%)
Mutual labels:  aiohttp
torequests
Async wrapper for requests / aiohttp, and some crawler toolkits. Let synchronization code enjoy the performance of asynchronous programming.
Stars: ✭ 22 (-29.03%)
Mutual labels:  aiohttp
fastAPI-aiohttp-example
How to use and test fastAPI with an aiohttp client
Stars: ✭ 69 (+122.58%)
Mutual labels:  aiohttp
aiohttp-login
Registration and authorization (including social) for aiohttp apps.
Stars: ✭ 53 (+70.97%)
Mutual labels:  aiohttp
Python Blog
An async blog web app written in python3
Stars: ✭ 29 (-6.45%)
Mutual labels:  aiohttp
mem usage ui
Measuring and graphing memory usage of local processes
Stars: ✭ 124 (+300%)
Mutual labels:  aiohttp
asyncpy
使用asyncio和aiohttp开发的轻量级异步协程web爬虫框架
Stars: ✭ 86 (+177.42%)
Mutual labels:  aiohttp
aio-openapi
A python module for building OpenAPI compliant asynchronous Rest Servers. Auto documentation, serialization and validation in the same unified API.
Stars: ✭ 27 (-12.9%)
Mutual labels:  aiohttp
guilded.py
Asynchronous Guilded API wrapper for Python
Stars: ✭ 115 (+270.97%)
Mutual labels:  aiohttp
Pyrez
(ON REWRITE) An easy to use (a)sync wrapper for Hi-Rez Studios API (Paladins, Realm Royale, and Smite), written in Python. 🐍
Stars: ✭ 23 (-25.81%)
Mutual labels:  aiohttp
aiohttp-client-cache
An async persistent cache for aiohttp requests
Stars: ✭ 63 (+103.23%)
Mutual labels:  aiohttp
CoubDownloader
A simple downloader for coub.com
Stars: ✭ 64 (+106.45%)
Mutual labels:  aiohttp
funny-bot
telegram bot fetch photo from gamersky
Stars: ✭ 17 (-45.16%)
Mutual labels:  aiohttp
dazzler
Python UI/Web Framework
Stars: ✭ 17 (-45.16%)
Mutual labels:  aiohttp
fast
fast.com cli speedtest
Stars: ✭ 46 (+48.39%)
Mutual labels:  aiohttp
acord
An API wrapper for discord, built using aiohttp and pydantic.
Stars: ✭ 25 (-19.35%)
Mutual labels:  aiohttp

SOCKS proxy client for aiohttp 3.0+

DEPRECATED: please use new aiohttp-socks package

It`s a fork of aiosocks with minor fixes for aiohttp 3.0+ compatibility

Requirements

  • Python >= 3.5.3
  • aiohttp >= 3.0

Installation

pip install aiosocksy

Usage

import asyncio
import aiohttp
from aiosocksy import Socks5Auth
from aiosocksy.connector import ProxyConnector, ProxyClientRequest


async def fetch(url):
    auth = Socks5Auth(login='...', password='...')
    connector = ProxyConnector()
    socks = 'socks5://127.0.0.1:1080'
    async with aiohttp.ClientSession(connector=connector, request_class=ProxyClientRequest) as session:
        async with session.get(url, proxy=socks, proxy_auth=auth) as response:
            print(await response.text())


loop = asyncio.get_event_loop()
loop.run_until_complete(fetch('https://www.google.com/'))

see aiosocks for more examples

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].