tiny-proxy
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)
Release files for tiny-proxy 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tiny_proxy-0.3.0.tar.gz | 16.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tiny_proxy-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 32.5 kB
Release files / tiny_proxy-0.3.0.tar.gz
| Download URL | tiny_proxy-0.3.0.tar.gz |
|---|---|
| Size | 16.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e664e8969f8766dde1650c5cfa0070d87b487fc6c928561ea32e45ddcc1dc2b5
|
|
BLAKE2b-256 checksum How to use checksums |
701cff8c8c8bf1de2211f9a16c359b8e31bf8fdff65721a9731cdb1a99847d27
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|
Release files / tiny_proxy-0.3.0-py3-none-any.whl
| Download URL | tiny_proxy-0.3.0-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f0b991e8184d37b12a28e8e2a994fb67d76523159cf7b4b4435d76c51b8d6d88
|
|
BLAKE2b-256 checksum How to use checksums |
39bac638232fdca1bdfcc1446a08807181d5ab4e8cf17f6d0cca192214add77a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.5
|