Skip to main content

Simple proxy server (SOCKS4(a), SOCKS5(h), HTTP CONNECT)

Project description

tiny-proxy

CI PyPI version versions

Simple proxy (SOCKS4(a), SOCKS5(h), HTTP CONNECT) server built with anyio. It is used for testing python-socks, aiohttp-socks and httpx-socks packages.

Requirements

  • Python >= 3.8
  • anyio>=3.6.1

Installation

pip install tiny-proxy

Usage

import anyio

from tiny_proxy import Socks5ProxyHandler


async def main():
    handler = Socks5ProxyHandler(username='user', password='password')
    listener = await anyio.create_tcp_listener(local_host='127.0.0.1', local_port=1080)
    await listener.serve(handler.handle)


if __name__ == '__main__':
    anyio.run(main)

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

tiny_proxy-0.3.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tiny_proxy-0.3.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file tiny_proxy-0.3.0.tar.gz.

File metadata

  • Download URL: tiny_proxy-0.3.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for tiny_proxy-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e664e8969f8766dde1650c5cfa0070d87b487fc6c928561ea32e45ddcc1dc2b5
MD5 79a91c7cac21069ee88568d617b74a24
BLAKE2b-256 701cff8c8c8bf1de2211f9a16c359b8e31bf8fdff65721a9731cdb1a99847d27

See more details on using hashes here.

File details

Details for the file tiny_proxy-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: tiny_proxy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.5

File hashes

Hashes for tiny_proxy-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f0b991e8184d37b12a28e8e2a994fb67d76523159cf7b4b4435d76c51b8d6d88
MD5 ec49844ecc0c6542a1443b40d67c028b
BLAKE2b-256 39bac638232fdca1bdfcc1446a08807181d5ab4e8cf17f6d0cca192214add77a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page