Saravanan666/pypi-org huggingface dataset:
Package: proxy-random
Proxy Randomis a tool to help small web scrapers. helping them prevent getting their ip banned from the target site.default proxy lists are free-proxy-list.net and sslproxies.org but you can also add your desired proxy list websites and add a extractor for that website.Installation$pipinstallproxy-randomDocumentationhttps://proxy-random.readthedocs.io/Usagehere are some examples on how to use proxy-random.Example 1:importrequestsfromproxy_randomimportRandomProxy# if you want to use a proxy to load the proxy lists# use this instead(rp = RandomProxy(proxy='http://example.com:8080'))rp=RandomProxy()proxies=rp.extract_proxies()# you can also use rp.proxy_query.# filter the US proxies which use port 80 or 443 and check if they work# you can filter by multiple parameters at once or provide your own filter function(s)workings=proxies.filter(port=[80,443])\.check_health(timeout=5).filter(working=True)print(workings.random().url)# print a random working proxy# or iterate through proxies and use themforproxyinworkings:# do something with the proxyrequests.get("https://httpbin.org/ip",proxies={"http":proxy.url,"https":proxy.url})ProxyQuery(s) are reusable so you can filter them as many times as needed.here is another example of how to add custom providersExample 2:importrequestsfrombs4importBeautifulSoupfromproxy_randomimportRandomProxyfromproxy_random.providerimportProviderfromproxy_random.queryimportProxyQueryfromproxy_random.proxyimportProxy# you can also use RandomProxy(use_defaults=False) to disable default providersrp=RandomProxy()# add a custom providerurl="https://free-proxy-list.net"# the url of the proxy list# the function used to extract proxies from the url responsedefextract_proxies(response:str)->ProxyQuery:soup=BeautifulSoup(response,"html.parser")headings=[i.text.lower()foriinsoup.find("thead").find_all("th")]rows=[[j.textforjini]foriinsoup.find("tbody").find_all("tr")]proxies=[]forrowinrows:proxy=Proxy()fori,nameinenumerate(headings):ifname=="ip address":proxy.ip=row[i]elifname=="port":proxy.port=int(row[i])elifname=="code":proxy.country_code=row[i]elifname=="last checked":proxy.last_checked=row[i]elifnamein("google","https"):setattr(proxy,name,Trueifrow[i]=="yes"elseFalse)elifnamein("country","anonymity"):setattr(proxy,name,row[i])proxies.append(proxy)returnProxyQuery(proxies)# then create a new instance of the Provider classprovider=Provider(url=url,extractor=extract_proxies)# then add the provider to the RandomProxy instancerp.add_provider(provider)# then extract the proxies like example 1rp.extract_proxies()...My own usage of this package:importrequestsfromproxy_randomimportRandomProxyrp=RandomProxy(proxy="my proxy")proxies=rp.extract_proxies()workings=proxies.filter(custom_filters=[lambdax:x.country_code!="ir",])\.limit(50).check_health(timeout=5).filter(working=True)proxy=workings.random()# use the proxy in some way...Refer to the documentation for more information about these classes.
Package: proxy-randomizer
proxy-randomizerproxy randomizerFree software: MIT licenseDocumentation:https://proxy-randomizer.readthedocs.io.DescriptionInpired byhttp-request-randomizerproxy_randomizer is intended to use for small-meduim web scrapers/crawlers, helping to avoid
temporal/permanent bans from web pages, generating random proxies to include in the requestsInstallationpipinstallproxy_randomizerAPITo use proxy_randomizer in your code, you just need to generate a
RegisteredProviders instance and parse the providers.fromproxy_randomizerimportRegisteredProvidersrp=RegisteredProviders()rp.parse_providers()print(f"proxy:{rp.get_random_proxy()}")You can iterate throughout all proxies as simple as this.fromproxy_randomizerimportRegisteredProvidersimportrequestsrp=RegisteredProviders()rp.parse_providers()forproxyinrp.proxies:proxies={"https":proxy.get_proxy()}response=requests.get("http://google.com",proxies=proxies)If you need to hide your identity, you can filter the proxy list by its
anonymity level.fromproxy_randomizerimportRegisteredProvidersfromproxy_randomizer.proxyimportAnonymityrp=RegisteredProviders()rp.parse_providers()anonymous_proxies=list(filter(lambdaproxy:proxy.anonymity==Anonymity.ANONYMOUS,rp.proxies))print(f"filtered proxies:{anonymous_proxies}")There are four different anonymity levels, you can inspect them like thisfromproxy_randomizer.utilsimportANONYMITY_LEVELSforlevelinANONYMITY_LEVELS:print(level.label)Command-line interfaceIf you need some quick proxy, just type this in your terminal.proxy_randomizerCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History1.3.5 (2023-01-03)Move CI from Travis to GitHub ActionsFix a bug in the project version bumps script1.3.4 (2023-01-03)Fix security issue1.3.3 (2021-08-30)Fix versions bumps1.3.2 (2021-08-30)Add python3.9 to travis cli1.3.1 (2021-08-30)Fix table not found error and some updatesUpate table selector and testsAdd python 3.9 compatibility in the config1.3.0 (2021-01-06)Bump lxml from 4.5.0 to 4.6.2Change dev dependencies1.2.1 (2020-12-23)Fix dependencies versions1.2.0 (2020-12-23)Refactor code0.1.0 (2020-08-02)First release on PyPI.
Package: proxys
Free Proxy List For HumanInstalling proxys and Supported Versionsproxys is available on PyPI:$pipinstall-Uproxyspython usage# get random proxy from proxys>>>importproxys>>>proxy=proxys.get_random_proxy()>>>print(proxy)101.109.51.152:8080# get all proxy from proxys>>>all_proxy=proxys.get_all_proxy()>>>all_proxy[:3]['113.57.84.39:9091','159.65.134.97:80','167.71.7.22:80']# validate the proxy can be use>>>proxys.validate_proxy(proxy)True>>>proxys.validate_proxy("127.0.0.1:80")False>>>validated_all_proxy=proxys.validate_proxy_pool(all_proxy[:10])>>>print(validated_all_proxy)['113.57.84.39:9091','159.65.134.97:80','167.71.7.22:80','112.49.34.128:9091','91.189.177.186:3128','114.113.116.67:9091','116.130.215.197:3128','27.151.3.249:9002']command line usage$wget-Oproxys.txthttps://ghproxy.com/https://raw.githubusercontent.com/zuoxiaolei/proxys/main/proxys/proxys.txt
Package: proxyscraper
ProxyScraperPython library for scraping proxies from popular providers.Basic UsageScraping from Free Proxy Listfromproxyscraper.scrapers.freeproxylistimportFreeProxyListScraperscraper=FreeProxyListScraper()proxies=scraper.get_proxy_list()f=open("/path/to/file.txt",'w+')forproxyinproxies:out=', '.join(str(x)forxin[proxy.ip,proxy.port,proxy.code,proxy.country,proxy.anon])out+='\n'f.write(out)f.close()file.txt177.204.85.203, 80, BR, Brazil, elite proxy
182.16.175.9, 53281, ID, Indonesia, elite proxy
93.190.142.240, 80, NL, Netherlands, anonymous
173.212.202.65, 443, DE, Germany, elite proxy
74.209.243.116, 3128, US, United States, anonymous
...LicenseMIT LicenseCopyright (c) 2018 Ovidijus OkinskasPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: proxy-seller-user-api
proxy-seller python apiInstall frompypi.orgpip3installproxy-seller-user-apiOr manual install fromproxy-seller/user-api-pythonrepositorypip3installgit+https://bitbucket.org/proxy-seller/user-api-pythonQuick startGet API keyherefromproxy_seller_user_apiimportApiapi=Api({'key':'YOUR_API_KEY'})# api.setPaymentId(1)# api.setGenerateAuth('N')print(api.balance())Changelog22.01.2024
Braking changes:
! remove targetId and targetSectionId from all calc/make requests
! add listId into proxyDownload method

New methods:
+ setPaymentId() - used in all calc/make requests (payment id=1(inner balance), id=43(subscribed card))
+ setGenerateAuth() - used in all calc/make requests (Y/N, default N)

+ authList
+ authActive
+ orderCalcResident
+ orderMakeResident
+ residentPackage
+ residentGeo
+ residentList
+ residentListRename
+ residentListDeleteMethods available:authListauthActivebalancebalanceAddbalancePaymentsListreferenceListorderCalcIpv4orderCalcIsporderCalcMixorderCalcIpv6orderCalcMobileorderCalcResidentorderMakeIpv4orderMakeIsporderMakeMixorderMakeIpv6orderMakeMobileorderMakeResidentprolongCalcprolongMakeproxyListproxyDownloadproxyCommentSetproxyCheckpingresidentPackageresidentGeoresidentListresidentListRenameresidentListDelete
Package: proxy-servant
proxy-servantproxy-servant is your best friend that will give you a working proxy every time you request itWhy and For What?Proxy-servant developed for a community from a part of that community
My main goal was to develop a package that would accept a set of proxy data,
send thousands http requests throught those proxies, and know which ones were aliveWhich proxies are supported?SOCKS5SOCKS4HTTPHow to use?Load datasethttp://127.0.0.1
http://127.0.0.2
http://127.0.0.3
http://127.0.0.4dataset.txtimportproxy_servantdata=proxy_servant.FileDataSource("./proxies.csv")Instantiate checkerpc=proxy_servant.BasicProxyChecker(data,"https://google.com",timeout=aiohttp.ClientTimeout(connect=8))Send requestsIf you in async functioncheck_result=awaitpc.check()orimport asyncio
check_result = asyncio.run(pc.check())Now you have list with result of proxy-checkingIterate over working proxypp=proxy_servant.BasicProxyProvider(check_result)# filtering and saves only working proxiespp.get_all()# ornext(pp)# orforproxyinpp:passTo manage an infinite or finite loop, use theremove_proxy_after_useparameter inBasicProxyProviderChange log[1.0.0] - 2022-12-03AddedImproved README[0.0.1] - 2022-11-04AddedInitial version
Package: proxysql-tools
ProxySQL ToolsProxySQL ToolsFree software: Apache Software License 2.0Documentation:https://proxysql-tools.readthedocs.io.FeaturesProxySQL on AWS supportProxySQL and Percona XtraDB Cluster integrationProxySQL schedulerCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-01-05)First release on PyPI.
Package: proxystore-ex
ProxyStore ExtensionsExtensions for theProxyStore.This extensions package contains experimental features, features with
non-Python dependencies, and plugins for third-party tools.InstallationThe extensions package can be installed alongsideProxyStore.$pipinstallproxystore[extensions]Alternatively, the package can be installed directly.$pipinstallproxystore-exSee theInstallationguide for more information about features which require extra dependencies.
See theContributingguide to get started with local development.DocumentationProxyStore's documentation is available atdocs.proxystore.devand supplemental documentation for the extensions package is available atextensions.proxystore.dev.UsageFeatures in theproxystore_expackage can be imported from withinproxystorevia theproxystore.exmodule. This is the recommended method for import extension features. E.g.,fromproxystore_ex.connectors.daosimportDAOSConnector# Directfromproxystore.ex.connectors.daosimportDAOSConnector# Recommended
Package: proxy-toggle
A command-line tool to run programs seamlessly behind a proxy.IntroductionMany corporate networks use proxies both for network protection and to cache often-used content. This command-line tool allows you to run programs behind a corporate proxy without the need to constantly set/unset proxy environment variables. It sets the environment variables only when needed and unsets them whenever the program finished its execution. Currently, proxy-toggle only supportsBasic Access Authenticationas the authentication scheme to the proxy.Deployment RequirementsIn order to use this module you need to have access to a compatible version of theGnuPGexecutable. On a Linux platform, this will typically be installed via your distribution’s package manager (e.g.apt-geton Debian/Ubuntu). Windows binaries are availablehere- use one of thegnupg-w32cli-1.4.x.exeinstallers for the simplest deployment options.InstallationTo use proxy-toggle:$pipinstallproxy-toggleHead over topip-installerfor instructions on installing pip.To run from source, you candownload the source codefor proxy-toggle, and then run:$pythonsetup.pyinstallUsageBefore you can start using proxy-toggle, you must initialize the application:$px--initThis will prompt for your proxy settings: proxy server URL and user account/password. A secure keyring (to encrypt the password) will be generated. This might take a while.You can test your proxy settings with following command:$px--testAfter successful initialization, run:$px<program>If your proxy doesn’t require user authentication, run it with--nouseroption:$px--nouser<program>When you want to renew your proxy password, run it with--renewoption:$px--renewYou can clear your proxy settings with--clearoption:$px--clearExamples$pxgitclonehttps://github.com/beylsp/proxy-toggle$px--nouserwgethttps://github.com/beylsp/archive/master.zipContributingWe love contributions. If you’ve found a bug in the tool or would like new features added, go ahead and open issues or pull requests against this repo. Write a test to show your bug was fixed or the feature works as expected.1.0.0Original open source release1.0.1Unstable release1.0.2First stable release1.0.3Add new positional command-line arguments: ‘–version’, ‘–test’Add full support for python 3.xSet ‘all_proxy’ environment variable as understood by curl1.0.4Add missing dependency (six) to setuptools scriptSubprocess inherits parent’s ‘PATH’ environment variableAdd new positional command-line argument: ‘–clear’1.0.5Bugfix: no error reported when ‘px –test’ fails1.0.6Fix #1: Raise SystemExit with error message when RuntimeError occurs as it doesn’t have errno attribute1.0.7Bugfix: fix argument name passed to gnupg constructor
Package: proxytoolkit
ProxyToolKitThis Module is used to scrape and check porxies without any limitations, Users can retrive data or save data according to there choice,Saving Data Stored in currently working Dictonary Retrive data is usefull when the module is using in a webapp or projects, also GUI version AvailableLatest version : V1Features :[+]  User can scrape 3k+ proxies[+]  No Proxy Checking limitations[+]  High Speed[+]  Saving Files by creating folder and named by using type & Current time including sec & millisec[+]  Returning Response or Saving Feature Available[+]  completely Free[+]  GUI Version also availabel[+] About Gui VersionGui version also install when it install using pipTo use Gui version:ProxyToolKitGuiInstallalion :pip install ProxyToolKit[+] ExamplesScraping:#Import Module
from ProxyToolKit.Scraper import Scraper

#Call Class 
scraper = Scraper(
    proxy_type='https', #Type of the proxy you want 
    is_web=False, #is_web True this class will retun responce else Save Scraped Proxys
)
scraper.scrape() #RunChecking:#Import Module
from ProxyToolKit.Checker import checker

#these are the three types of valid proxy checker input

proxy = ['proxy:port','proxy:port','proxy:port','proxy:port'] 

proxy = '''
proxy:port
proxy:port
proxy:port
proxy:port
proxy:port
proxy:port
'''

proxy = '/home/user/somewhere/proxt.txt'

#Call Class 
scraper = checker(
    proxys=proxy, #here You define  proxy if You are providing a path then turn "is_path = True" ,If you are giving a  list or string "is_path=False"
    proxy_type='https', #Type of the proxy you want 
    is_web=False, #is_web True this class will retun responce else Save Scraped Proxys
    is_path=True,#Turn to true if ur using a path to proxy
    )
scraper.check() #RunReturning Response:from ProxyToolKit.Scraper import Scraper

scraper = Scraper(
    proxy_type='https',
    is_web=True, 
)
proxys = scraper.scrape() # Run 

print(proxys)[+] Support :-
Package: proxy_tools
I’m just a proxyLoveingly extracted fromwerkzeug.  A very useful proxy implementation, that I found to be useful outside
the web context – hence the extraction.InstallpipinstallproxyBasic Usagefromproxy_toolsimportProxyp=Proxy()defget_current_user():returnUser.find_by_id(request['user_id'])current_user=p(get_current_user)# Or alternativelyfromproxy_toolsimportmodule_property@module_propertydefcurrent_user():returnUser.find_by_id(request['user_id'])# Thenprint(current_user.name)Questions / IssuesFeel free to ping me on twitter:@tushmanor add issues or PRs athttps://github.com/jtushman/proxy_toolsThank youTo Armin Ronacher and thewerkzeugteam for their thought leadership and excellent work
Package: proxyUtil
proxyUtilGeneral infosome proxy toolsRequirementspython 3install shadowsockssudo apt install shadowsocks-libevinstall v2raysudo bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)install xraysudo bash -c "$(curl -L https://github.com/XTLS/Xray-install/raw/main/install-release.sh)" @ installInstallationpip install --upgrade git+https://github.com/mheidari98/proxyUtil@mainUninstallpip uninstall proxyUtilUsagecheckwikiToolsconnectMe: Simple cli proxy client for shadowsocks, vmess, vless, trojanv2rayChecker: Simple shadowsocks, vmess, vless, trojan checker with v2ray/xray coreshadowChecker: Simple shadowsocks proxy checker with shadowsocks-libevdnsChecker: Simple DNS over UDP, DNS over TLS and DNS over HTTPS CheckerclashGen: Convert vmess, vless, trojan, shadowsocks,... proxy to Clash ConfigcdnGen: Generating vmess url with cloudflare or arvan CDN IPs as address and our domain as host or sni for tlsssURI2sslocal: shadowsocks URI to ss-local commandsslocal2ssURI: ss-local command to shadowsocks URIStatusProject is:in progressLicenseMITContactCreated by@mheidari98SupportIf you like this project, please consider supporting it by donating to the following bitcoin address:DisclaimerThis project is meant for personal and educational uses only.Please follow relevant laws and regulations when using this project.Project owner is not responsible or liable in any manner for the use of the content.
Package: proxyvars
proxyvarsA simple and straight-forward Python module for creating context-dependent proxy objects.As for now, the documentation is mostly in the codebase (check relevant docstrings ofproxy(),const_proxy(),lookup_proxy(),proxy_field_accessor(),proxy_item_accessor()andproxy_attribute_accessor()for more information).InstallationYou might simply install it with pip:pipinstallproxyvarsIf you usePoetry, then run:poetryaddproxyvarsFor contributors[!Note]
If you use Windows, it is highly recommended to complete the installation in the way presented below throughWSL2.Fork theproxyvars repositoryon GitHub.Install Poetry.Poetry is an amazing tool for managing dependencies & virtual environments, building packages and publishing them.
You might usepipxto install it globally (recommended):pipxinstallpoetryIf you encounter any problems, refer tothe official documentationfor the most up-to-date installation instructions.Be sure to have Python 3.8 installed—if you usepyenv, simply run:pyenvinstall3.8Clone your fork locally and install dependencies.gitclonehttps://github.com/your-username/proxyvarspath/to/proxyvarscdpath/to/proxyvars
poetryenvuse$(cat.python-version)poetryinstallNext up, simply activate the virtual environment and install pre-commit hooks:poetryshell
pre-commitinstall--hook-typepre-commit--hook-typepre-pushFor more information on how to contribute, check outCONTRIBUTING.md.Always happy to accept contributions! ❤️Legal info© Copyright by Bartosz Sławecki (@bswck).This software is licensed under the terms ofMIT License.
Package: proxy-www
proxy-www.pyPython port of proxy-www (https://github.com/justjavac/proxy-www).
Implemented additional functionalities!How to installpipinstallproxy-wwwExamplefromproxy_wwwimportwww,http,https,GETasyncdefsome_func():resp=awaitwww.github.com# Basic proxy_www requesthttp_resp=awaithttp.github.com# insecure proxy_www request using httphttps_resp=awaithttps.github.com# secure proxy_www request using httpsecure_resp=awaitwww.github.com.secure()# secure request with www.secure()insecure_resp=awaitwww.github.com.insecure()# insecure request with www.insecure()req=www.github.comprint(req.is_secure)# boolean property indicating proxy_www request object is whether secure(https) or not (http).path_resp=awaitwww.github.com/'Lapis0875'# ClassProxy objects (www, http, https) can append paths on url using '/' operator.# New in 1.1.0 : HTTP methods with [], request parameters with ()# Syntax : (www,http,https)[HTTPMethod or str](*args, **kwargs)# Example :get_req=await(https.api.koreanbots.dev/'v1/bots/get/541645954256863252')[GET](headers={"content-type":"application/json"})print(awaitresp.json())
Package: proxyzoo
proxyzoo is a dynamic soft load based on haproxy+zookeeper+python.The main function is:the daemon implemented by python synchronizes the application instance registration from zookeeper (zk) to the instance IP: port address information in zkGenerate the corresponding haproxy configuration according to the specified haproxy template, and use the generated configuration to start the haproxy load processwhen the instance information in zk changes (application instance restart, release), the daemon will perform the backend service corresponding to the haproxy process Real-time activation and graceful offline,realizing uninterrupted system accessOnline documentation is at http://git.wadecn.com:18082/bits/proxy-zk.Bugs can be reported to http://git.wadecn.com:18082/bits/proxy-zk.  The code can also be found there.
Package: prpc-python
prpc-python - Pyodide Remote Procedure Calls - Python ServerProvides server-side bindings forprpcAPI.To expose a python function as a prpc method you first create
a prpcRpcAppand then decorate your function with@app.call.Create a file calledmyapp.pyand add the following code:# myapp.pyfromprpc_pythonimportRpcAppapp=RpcApp("My Hello World App")@app.calldefhello():return"World"Discovering your APIYou can now discover your API using theprpccommand line tool. To do this
you either have to specify the plugin ID of your app or "publish" the
plugin using the Pythonplugin discoveryapproach.The ID of your plugin is the name of the module containing
yourRpcAppinstance plus the name of the instance, e.g.myapp:appfor the example above.You can now use the command line tool to discover your API:prpccommands-amyapp:appand you can even call your function from the command line:prpcrun-amyapp:apphelloPublishingYou don't always want to have to specify the plugin ID of your app. You can
use the approach described in themetadatasection of the packaging
spec to publish your plugin. If you have apyproject.tomlfile, then add
the following section:[tool.poetry.plugins."prpc_python"]myapp="myapp:app"If your plugin is the only one in your installed dependencies, then it will
be automatically chosen, and you can omit the-a myapp:appargument.Filesprpc also supports file transfers. If you receive a file from the remote
endpoint, you will receive aprpc_python.RemoteFileobject. This object
has a standardreadmethod, so you can use it as a file-like object.It may also havefilename,sizeandcontent_typeattributes but it
depends on the source of the file whether these are available.
Package: pr-properties
安装
pip install pr-properties这是一个读写properties工具frompr_propertiesimportpr_properties# 读写properties文件p=pr_properties.read(r'./pool.properties')# p = PropertiesHandler(r"./pool.properties").read()print(p['master.initialSize'])# 4# 支持getprint(p.get('master.initialSize'))# 修改p['master.initialSize']=5# 写入,写入后会关闭文件;写入功能请慎重使用p.write()p.read(r'./pool.properties')# 验证是否修改print(p['master.initialSize'])# 5