Saravanan666/pypi-org huggingface dataset:
Package: python3-aioanticaptcha
python3-aioanticaptchaPython library forked fromanticaptchaofficial.The main purpose of the fork was to add implementation for async request usingaiohttpHow to install?pipinstallpython3-aioanticaptchaSourcegitclonehttps://github.com/andrersp/aioanticaptcha
pythonsetup.pyinstallExample how to createRecaptcha V2task and receive g-response:importasynciofromaioanticaptcha.recaptchav2proxylessimport*asyncdefmain():asyncwithrecaptchaV2Proxyless()assolver:solver.set_verbose(1)solver.set_key("YOUR_KEY")solver.set_website_url("https://website.com")solver.set_website_key("SITE_KEY")# only for V2-invisible Recaptcha! :# solver.set_is_invisible(1)g_response=solver.solve_and_return_solution()ifg_response!=0:print("g-response: "+g_response)else:print("task finished with error "+solver.error_code)if__name__=="__main__":asyncio.run(main())Report previosly solved Recaptcha V2/V3/Enterprise as incorrect:...solver.report_incorrect_recaptcha()Report it as correct to improve your quality:...solver.report_correct_recaptcha()Solveimage captcha:importasynciofromaioanticaptcha.imagecaptchaimport*asyncdefmain():asyncwithimagecaptcha()assolver:solver.set_verbose(1)solver.set_key("YOUR_KEY")captcha_text=awaitsolver.solve_and_return_solution("captcha.jpeg")ifcaptcha_text!=0:print("captcha text "+captcha_text)else:print("task finished with error "+solver.error_code)if__name__=="__main__":asyncio.run(main())Report previosly solved image captcha as incorrect:...solver.report_incorrect_image_captcha()SolveFuncaptcha(Arkoselabs):importasynciofromaioanticaptcha.funcaptchaproxylessimport*asyncdefmain():asyncwithfuncaptchaProxyless()assolver:solver.set_verbose(1)solver.set_key("YOUR_KEY")solver.set_website_url("https://website.com")solver.set_website_key("XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX")token=solver.solve_and_return_solution()iftoken!=0:print("result token: "+token)else:print("task finished with error "+solver.error_code)if__name__=="__main__":asyncio.run(main())SolveGeeTestcaptcha:importasynciofromaioanticaptcha.geetestproxylessimport*asyncdefmain():asyncwithgeetestProxyless()assolver:solver.set_verbose(1)solver.set_key("YOUR_API_KEY")solver.set_website_url("https://address.com")solver.set_gt_key("CONSTANT_GT_KEY")solver.set_challenge_key("VARIABLE_CHALLENGE_KEY")token=solver.solve_and_return_solution()iftoken!=0:print("result tokens: ")print(token)else:print("task finished with error "+solver.error_code)if__name__=="__main__":asyncio.run(main())SolveHCaptcha:fromaioanticaptcha.hcaptchaproxylessimport*importasyncioasyncdefmain():asyncwithhCaptchaProxyless()assolver:solver.set_verbose(1)solver.set_key("YOUR_KEY")solver.set_website_url("https://website.com")solver.set_website_key("SITE_KEY")g_response=solver.solve_and_return_solution()ifg_response!=0:print("g-response: "+g_response)else:print("task finished with error "+solver.error_code)if__name__=="__main__":asyncio.run(main())Check outexamplesfor other captcha typesLicenseMIT
Package: python3-albow
This project is a port of Gregory Ewing's Albow project (https://www.pygame.org/project/338/4687) that was only
compatible with Python 2 and is unsupported since 2014.Ported to Python 3 and extended byHumberto A. Sanchez IIUpdated documentation at:https://hasii2011.github.ioInstall in your virtual environment withpip3 install python3-albowI saw recently where Gregory has albow working on Python 3.  Maybe, I should abandon this project
Package: python3-application
This package is a collection of modules that are useful when building python
applications. Their purpose is to eliminate the need to divert resources into
implementing the small tasks that every application needs to do in order to
run successfully and focus instead on the application logic itself.The modules that the application package provides are:process       - UNIX process and signal management.python        - python utility classes and functions.configuration - a simple interface to handle configuration files.log           - an extensible system logger for console and syslog.debug         - memory troubleshooting and execution timing.system        - interaction with the underlying operating system.notification  - an application wide notification system.version       - manage version numbers for applications and packages.
Package: python3-brisa
BRisa is an UPnP framework written in Python. It provides facilities for creating UPnP devices and control points. The Python-BRisa API comprehends internet messaging protocols and basic services (TCP, UDP, HTTP, SOAP, SSDP), networking facilities, threading management, logging, configurations, web server and more. Python-BRisa’s runs on the maemo plataform, Linux and on Mac with a few tweaks. We would really appreciate community feedback, bug reports and feature requests concerning attempts to run it on other systems.
Package: python3-capsolver
python3-capsolverAt the lowest price on the market, you may receive a variety of solutions, including reCAPTCHA V2, reCAPTCHA V3, hCaptcha, hCaptcha Click, FunCaptcha, picture-to-text, and more. With this service, 0.1s is the slowest speed ever measured.Python 3 library forCapsolverservice API.Tested on UNIX based OS.The library is intended for software developers and is used to work with theCapsolverservice API.If you have any questions, please send a message to theTelegramchat room.Or emailpython-captcha@pm.meYou can check our other projects here -RedPandaDev group. For example -Torrents Tracker botfor Telegram.How to install?We recommend using the latest version of Python.python3-capsolversupports Python 3.7+.pippipinstallpython3-capsolverHow to use?Is described in thedocumentation-website.How to test?You need setAPI_KEYin your environment(get this value from you account).Run commandmake tests, from root directory.ChangelogCheckreleases page.How to get API Key to work with the libraryOn the page -https://dashboard.capsolver.com/overview/user-centerFind it:
Package: python3-cisctl
Container Images SyncGithub Actions forContainer Images SyncHow to Use by Github Actions- name: Container Images Sync
      uses: x-actions/python3-cisctl@v1
      env:
        GIT_ORG: "x-mirrors"
        GIT_REPO: "gcr.io"
        GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        SRC_IMAGE_LIST_URL: "https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"
        DEST_REPO: "docker.io/gcmirrors"
        SRC_TRANSPORT: "docker"
        DEST_TRANSPORT: "docker"
        DEST_TRANSPORT_USER: "user"
        DEST_TRANSPORT_PASSWORD: "password"
        LOG_LEVEL: "DEBUG"Environment Variables:GIT_ORG: github orgGIT_REPO: github repoGIT_TOKEN: github tokenSRC_IMAGE_LIST_URL: SRC_IMAGE_LIST_URL, default: "https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"DEST_REPO: DEST register REPOSRC_TRANSPORT: SRC TRANSPORTDEST_TRANSPORT: DEST TRANSPORTDEST_TRANSPORT_USER: userDEST_TRANSPORT_PASSWORD: "password"THREAD_POOL_NUM: sync thread pool numDev and Testlocal run# install
pip3 install -r requirements.txt
python3 setup.py install
# or
pip3 install python3-cisctl

# set env
export GIT_ORG="x-mirrors"
export GIT_REPO="gcr.io"
export GIT_TOKEN='${{ secrets.GITHUB_TOKEN }}'
export SRC_IMAGE_LIST_URL="https://raw.githubusercontent.com/x-mirrors/gcr.io/main/k8s.txt"
export DEST_REPO="docker.io/gcmirrors"
export SRC_TRANSPORT="docker"
export DEST_TRANSPORT="docker"
export DEST_TRANSPORT_USER="xianbinxie"
export DEST_TRANSPORT_PASSWORD="<passwords>"

# run sync
cisctltestspython3 -m unittest cisctl.tests.unit.test_skopeo.SkopeoTestCase.test_do_syncDocker API Rate LimitingX-RateLimit-Limit - The limit of requests per minute.X-RateLimit-Remaining - The remaining amount of calls within the limit period.X-RateLimit-Reset - The unix timestamp of when the remaining resets.If you have hit the limit, you will receive a response status of 429 and the X-Retry-After header in the response.The X-Retry-After header is a unix timestamp of when you can call the API again.< x-ratelimit-limit: 180
< x-ratelimit-reset: 1646881125
< x-ratelimit-remaining: 180refinstall skopeoreplace old toolsx-mirrors/gcmirrors
Package: python3-cnab
Python Cnab=======[![Build Status](https://travis-ci.org/Trust-Code/python-cnab.svg?branch=master3)](https://travis-ci.org/Trust-Code/python-cnab)[![Coverage Status](https://coveralls.io/repos/github/Trust-Code/python-cnab/badge.svg?branch=master3)](https://coveralls.io/github/Trust-Code/python-cnab?branch=master3)[![Code Health](https://landscape.io/github/Trust-Code/python-cnab/master3/landscape.svg?style=flat)](https://landscape.io/github/Trust-Code/python-cnab/master3)[![PyPI version](https://badge.fury.io/py/python3-cnab.svg)](https://badge.fury.io/py/python3-cnab)- cnab240Instalação------------Você pode instalar ``python3-cnab`` com ``pip``:$ pip3 install python3-cnabMantido por Trustcode
Package: python3-cyberfusion-borg-support
python3-cyberfusion-borg-supportLibrary forBorg.InstallGenericRun the following command to create a source distribution:python3 setup.py sdistNext, install Borg according to thedocumentation.DebianRun the following commands to build a Debian package:mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -ucConfigureNo configuration is supported.UsageExamplefromcyberfusion.BorgSupport.repositoriesimportRepositoryfromcyberfusion.BorgSupport.archivesimportArchiverepository=Repository(path="/home/example/repository",passphrase_file="/home/example/.passphrase.txt",identity_file_path="/home/example/.ssh/id_rsa",create_if_not_exists=True)archive=Archive(repository=repository,name="example",comment="Example",working_directory=os.path.sep,remove_paths_if_file=True)TestsRun tests with pytest:pytest tests/The tests must be run from the project root.
Package: python3-cyberfusion-cluster-apicli
python3-cyberfusion-cluster-apicliAPI client for Cluster API.InstallPyPIRun the following command to install the package from PyPI:pip3 install python3-cyberfusion-cluster-apicliGenericRun the following command to create a source distribution:python3 setup.py sdistDebianRun the following commands to build a Debian package:mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -ucConfigureConfig file optionsSectionclusterapi, keyserverurlSectionclusterapi, keysusernameandpassword(optional)Sectionclusterapi, keyapikey(optional)Class optionsconfig_file_path. Non-default config file path.authenticate. Endpoint is called without token when set.UsageBasicfromcyberfusion.ClusterApiCliimportClusterApiRequestendpoint="/api/v1/certificates"r=ClusterApiRequest()RequestFirst, set the request:r.GET(endpoint)r.PATCH(endpoint)r.PUT(endpoint)r.POST(endpoint)r.DELETE(endpoint)Then execute the request:print(r.execute())TestsRun tests with pytest:pytest tests/The config file incyberfusion.cfg(working directory) is used.
Package: python3-cyberfusion-cluster-cli
python3-cyberfusion-cluster-cliCLI for Cyberfusion Cluster API.InstallRecommendedcurl https://cli-downloads.cyberfusion.io/install.sh | bashPyPI (expert only)Run one of the following commands to install the package from PyPI.Python version 3.9 or higher is required.# Default

pip3 install python3-cyberfusion-cluster-cli

# Alternative: with Borg support
#
# This installs dependencies needed to manage Borg, which do not work on all
# operating systems.

pip3 install python3-cyberfusion-cluster-cli[borg]ConfigureWhen running the CLI for the first time, run the following command:clusterctl setupYou are then prompted for API credentials.A config file is created in~/.config/cyberfusion/cyberfusion.cfg.UsageThe CLI provides commands for all relevant API endpoints.Run the following command for help:clusterctl -hTestsNo tests are present.
Package: python3-cyberfusion-cluster-support
python3-cyberfusion-cluster-supportAPI library for Cluster API.InstallPyPIRun the following command to install the package from PyPI:pip3 install python3-cyberfusion-cluster-supportGenericRun the following command to create a source distribution:python3 setup.py sdistDebianRun the following commands to build a Debian package:mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -ucConfigureConfig file optionsSectionclusterapi, keyclusterid. Only objects belonging to the specified cluster are loaded.Sectionclusterapi, keyserviceaccountid. Only objects belonging to a cluster for which a service account to cluster exists for the specified service account are loaded.Class optionsconfig_file_path. Non-default config file path.cluster_ids. Only objects belonging to the specified clusters are loaded.Cluster IDs: order of precedenceThecluster_idsclass option takes precedence over theclusteridconfig file option.If neither is set, all objects are loaded.If theclusteridconfig file option is set, but you want to load all objects, setting thecluster_idsclass option toNone(default) will not work. Instead, use the sentinel valuecyberfusion.ClusterSupport.ALL_CLUSTERS.UsageBasicfromcyberfusion.ClusterSupportimportClusterSupports=ClusterSupport()ReadAPI objects without parametersSome API objects do not require parameters to be retrieved.These API objects are retrieved from the Cluster API once. They are then cached.Examples:print(s.database_users)print(s.unix_users)print(s.fpm_pools)API objects with parametersSome API objects require parameters to be retrieved.These API objects are retrieved from the Cluster API on every call.Example:print(s.access_logs(virtual_host_id=s.virtual_hosts[0].id,...))UpdateExample:d=s.database_users[0]d.password="newpassword"d.update()CreateExample:fromcyberfusion.ClusterSupportimportClusterSupportfromcyberfusion.ClusterSupport.certificatesimportCertificates=ClusterSupport()c=Certificate(s)assertc.idisNonec.create(common_names=["domlimev.nl","www.domlimev.nl"])assertc.idisnotNoneassertc.common_names==common_names=["domlimev.nl","www.domlimev.nl"]DeleteExample:fromcyberfusion.ClusterSupportimportClusterSupports=ClusterSupport()c=s.certificates[0]c.delete()TestsRun tests with pytest:pytest tests/The config file incyberfusion.cfg(working directory) is used.
Package: python3-cyberfusion-common
python3-cyberfusion-commonCommon utilities.InstallPyPIRun the following command to install the package from PyPI:pip3 install python3-cyberfusion-commonGenericRun the following command to create a source distribution:python3 setup.py sdistDebianRun the following commands to build a Debian package:mk-build-deps -i -t 'apt -o Debug::pkgProblemResolver=yes --no-install-recommends -y'
dpkg-buildpackage -us -ucConfigureNo configuration is supported.UsageSee code.TestsRun tests with pytest:pytest tests/The tests must be run from the project root.
Package: python3-eventbus
PyEventBusEventBus implementations in Python. It allows you to easily publish custom domain events and subscribe commands to them.Installationpipinstallpython3-eventbusUsageCreate the event bus (see "EventBus types" section for more details)sender_topic=boto3.resource("sns",region_name="us-east-1").Topic(sns_sender_arn)eventbus=SNSEventBus(sender_topic)Define your event@dataclassclassUserCreatedEvent(DomainEvent):user_id:strdefto_dict(self)->dict[str,str]:return{"user_id":self.user_id}@classmethoddeffrom_dict(cls,data:dict[str,str])->Self:returncls(data["user_id"])Define the subscriber@dataclassclassSendWelcomeEmailCommand:eventbus:EventBusdef__post_init__(self):self.eventbus.subscribe(UserCreatedEvent,# The event to subscribe tolambdaevent:self.send_welcome_email(event.user_id),# The callbackself.__class__,# The subscriber entity)defsend_welcome_email(self,user_id:str):...Businesslogic...Register the subscribersend_welcome_email_command=SendWelcomeEmailCommand(eventbus)# This will execute the __post_init__ method (dataclass feature)Publish the eventeventbus.publish(UserCreatedEvent("user_id"))From your controller, rebuild the domain event based on the subscriptionsdeflambda_handler(event:dict[str,Any],context:Any):raw_domain_event=_unwrap_event(event)# Remove event metadata (SQS, SNS, etc.)domain_event=eventbus.build_event_from_subscriptions(raw_domain_event["event_type"],raw_domain_event["event"],)EventBus typesAWS: SNSEventBusThis implementation will forward events to an AWS SNS topic. The topic must be created before the event bus is used.sender_topic=boto3.resource("sns",region_name="us-east-1").Topic(sns_sender_arn)eventbus=SNSEventBus(sender_topic)Complete example:aws_sns.ipynb
Package: python3-gearman
LicenseBuild StatusDescriptionPython 3 Gearman API - Client, worker, and admin client interfacesFor information on Gearman and a C-based Gearman server, seehttp://www.gearman.org/Since the currentgearmanmodule is with Python versions <=
2.7 and no longer in active development, this package was created.
The vast majority of the work here was from folks at Yelp and other
contributors (see Authors.txt). This package was based off an initial clone of
thegearmanpackage, tagv2.0.2. Python3-compatible fixes to core classes
and functions were brought in fromhttps://github.com/msjaiswal/python3-gearman.
In addition, python3 updates to the unit tests were also included. Moreover,
TravisCI functionality was brought in to automate
building and testing.Installationeasy_install python3_gearmanpip install python3_gearmanLinksPython 3sourcehttp://github.com/josiahmwalton/python3-gearmandocumentationhttp://packages.python.org/python3-gearman/Python 2 and earlier2.x sourcehttp://github.com/Yelp/python-gearman/2.x documentationhttp://packages.python.org/gearman/1.x sourcehttp://github.com/samuel/python-gearman/1.x documentationhttp://github.com/samuel/python-gearman/tree/master/docs/ContributingContributions are encouraged and welcome. In order for your changes to be incorporated, they
need to follow the general guidelines:Please do your work on a branch created from thedevelopbranch (see the GitFlow approach to development)Your build must past all PEP8 code style checks and unit testsAs new functionality is added, please write the corresponding unit testsFor passing builds, please submit a pull request (PR) to submit your
changes for inclusion into thedevelopbranch
Package: python3-ghostscript
Author:Hartmut Goebel <h.goebel@crazy-compiler.com>Version:0.5devCopyright:GNU Public License v3 (GPLv3)Homepage:http://bitbucket.org/htgoebel/python-ghostscriptGhostscript, is a well known interpreter for the PostScript
language and for PDF. This package implements a interface to theGhostscript C-APIusingctypes. Both a low-level and a pythonic,
high-level interface are provided.This package is currently tested only under GNU/Linux. Please report
whether it works in your environment, too. Thanks.ExampleHere is an example for how to use the high-level interface ofpython-ghostscript. This implements a very basic ps2pdf-tool:import sys
import ghostscript

args = [
    "ps2pdf", # actual value doesn't matter
    "-dNOPAUSE", "-dBATCH", "-dSAFER",
    "-sDEVICE=pdfwrite",
    "-sOutputFile=" + sys.argv[1],
    "-c", ".setpdfwrite",
    "-f",  sys.argv[2]
    ]

ghostscript.Ghostscript(*args)Here an example for passing a string document to Ghostscript:doc = """%!
/Helvetica findfont 20 scalefont setfont
50 50 moveto
(Hello World) show
showpage
"""

import ghostscript

args = """test.py
     -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=/tmp/out.pdf
     -c .setpdfwrite""".split()

GS = ghostscript.Ghostscript(*args)
try:
    GS.run_string(doc)
finally:
    GS.exit()More examples can be found in theexamplessubdirectory of the
distribution archive.Requirements and InstallationPlease note:This package is meant for developers. Even if there are
some usable examples included, installations instructions are meant
for developers.python-ghostscriptrequiresPython2.3 or higher (tested with Python 2.6)ctypeswhen using Python 2.3 or 2.4 (ctypesis already
included in Python 2.5 and higher)setuptoolsordistributefor installation (see below).GhostscriptVersion 8.xInstalling python-ghostscriptSince this package is meant for developers, we assume you have
experience in installing Python packages.python-ghostscriptis listed onPyPI (Python Package Index), so
you can install it usingeasy_installorpipas usual. Please
refer to the manuals ofeasy_installresp.pipfor further
information.Alternatively you my download and unpack the source package ofpython-ghostscriptfromhttp://pypi.python.org/pypi/ghostscriptand
run:python ./setup.py install
Package: python3HTTPSAuthServer
python3HTTPSAuthServerIt's SimpleHTTPServer, with python3 facial hair!
Supports:HTTP Basic AUTH   [username:pass]HTTPS encryptionSelf-generates self-signed certificate, or you can bring your ownusage: python3HTTPSAuthServer.py [-h] [-i IP] [-p PORT] [-a AUTH] [-s] [-c CERT] [-k PRIVATEKEY]Python HTTPS Auth Serveroptional arguments:-h, --help            show this help message and exit-i IP, --ip IP        Bind IP (Default all interfaces 0.0.0.0)-p PORT, --port PORT  Bind port, default 8443-a AUTH, --auth AUTH  HTTP BASIC auth [username:password]-s, --https           Use HTTPS-c CERT, --cert CERT  If you brought your own CERT, then by all means... [fullpath]-k PRIVATEKEY, --privatekey PRIVATEKEY If you brought your own PRIVATE_KEY, then by all means... [fullpath]
Package: python3-hwloc
=================================Python 2 and 3 bindings for hwloc=================================***NOTE*** There is a bug in gitlab's ReStructuredText rendering. Click the "raw" button to see all of this fileI have retired and am no longer maintaining or developing this. I could work on it more if anyone is interested in using it.If there is someone who would like to take it over, please contact me.Example pip install from git source with virtualenv for Python2 on Fedora:.. code:: bashsudo dnf install python2 python2-devel python2-tools numactl-libs \numactl-devel gettext pandoc texlive hwloc-devel hwloc-libs \libibverbs libibverbs-devel python2-libsvirtualenv -p python2 p2hwloccd p2hwloc/source bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python2 -c "import hwloc;print hwloc.version_string()"Example for Python3 on Fedora:.. code:: bashsudo dnf install python3 python3-devel python3-tools hwloc-devel \hwloc-libs libibverbs libibverbs-devel numactl-libs numactl-devel \gettext pandoc texlive python3-libsvirtualenv -p python3 p3hwloccd p3hwlocsource bin/activatepip install Cython Babelpip install python3-libnumapip install python3-hwloc# try it!python3 -c "import hwloc;print(hwloc.version_string())"Debian9, Python2:.. code:: bashsudo apt-get updatesudo apt-get install build-essential virtualenv libpython2.7-dev \libnuma-dev libhwloc-dev libibverbs-devvirtualenv -p python2 p2pipcd p2pipsource bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python2 -c "import hwloc;print hwloc.version_string()"Python3 on Debian9:.. code:: bashsudo apt-get updatesudo apt-get install build-essential virtualenv libpython3.5-dev \libnuma-dev libhwloc-dev libibverbs-devvirtualenv -p python3 p3pipcd p3pipsource bin/activatepip install Cython Babelpip install python2-libnumapip install python2-hwloc# try it!python3 -c "import hwloc;print(hwloc.version_string())"