Skip to main content

Proxy parser and converter

Project description

Unity Proxy

This tool will allow you to quickly start using proxies in your projects. The main task of this library is to solve problems of parsing proxies of different formats and their subsequent conversion to the required format.

Install

From PYPI

pip install unityproxy

Using

Import

from unityproxy import UnityProxy


unity = UnityProxy()

Parse

unity.from_.txt_file("proxies.txt", "http")
unity.from_.json_file("proxies.json", "http")

Convert

unity.to.list()
unity.to.queue()

Iter

proxy: unityproxy.Proxy = unity[0]

for proxy in unity:
    proxy: unityproxy.Proxy

Convert proxy

Create enhancement issue to add new conver

prx.to.aiohttp_line()
prx.to.httpx_dict()
prx.to.httpx_line()
prx.to.pyrogram()
prx.to.telethon()
prx.to.requests()
# etc

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

unityproxy-0.0.1.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

UnityProxy-0.0.1-py3-none-any.whl (8.0 kB view hashes)

Uploaded Python 3

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