Skip to main content

Better proxy!

Project description

Better Proxy

Telegram channel PyPI version info PyPI supported Python versions

pip install better-proxy
import aiohttp
from better_proxy import Proxy
from aiohttp_socks import ProxyConnector


async def fetch(url):
    proxy = Proxy('socks5://user:password@127.0.0.1:1080')
    connector = ProxyConnector.from_url(proxy.as_url)
    
    async with aiohttp.ClientSession(connector=connector) as session:
        async with session.get(url) as response:
            return await response.text()

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

better_proxy-0.1.0.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

better_proxy-0.1.0-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file better_proxy-0.1.0.tar.gz.

File metadata

  • Download URL: better_proxy-0.1.0.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.2 Windows/10

File hashes

Hashes for better_proxy-0.1.0.tar.gz
Algorithm Hash digest
SHA256 9766f029d624907d39576ed283cbd6b85b79c983f3588b6273c579be5215e960
MD5 a62ffeb5c103afc05ae9d4cdcfa9c42d
BLAKE2b-256 69cf2f1fd6d2d5362ff8c1b4be3807d39e027e677e18071b0b5580d14c7a81e3

See more details on using hashes here.

File details

Details for the file better_proxy-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: better_proxy-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.2 Windows/10

File hashes

Hashes for better_proxy-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a1372abe712b5068050f56076942b6ed35f5cb9be6e71f5e5eb1334b5fdaa742
MD5 6e8dea5bcb5310d4f0d8311aa665608b
BLAKE2b-256 f3a4851cc84e211c7131213b01b180de7638aaeabd4f211e65093ffee53f8c8c

See more details on using hashes here.

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