Saravanan666/pypi-org huggingface dataset:
Package: python-resolver
python-resolverA Python dependency resolver.IssuesOnly supports wheels (no sdists!)UsagePython libraryimportpackaging.requirementsimportresolvelibimportresolverresolver=resolvelib.Resolver(resolver.Provider(),resolvelib.BaseReporter(),)resolver.resolve({packaging.requirements.Requirement('trampolim==0.0.2'),})Resolver CLI$ python -m resolver build
--- Pinned Candidates ---
build: build 0.3.1.post1
pep517: pep517 0.10.0
toml: toml 0.10.2
packaging: packaging 20.9
pyparsing: pyparsing 2.4.7

--- Dependency Graph ---
pep517 -> toml
(root) -> build
build -> pep517, toml, packaging
pyparsing ->
toml ->
packaging -> pyparsingmindepsCLIresolver.mindepswill resolve the dependency tree for the minimum supported version.
This is useful when you want to for eg. test your software against the minimum version of the
dependencies that it claims to support.It can work on projects directly, or on requirement strings, like the normal CLI.
If no argument is provided, it will try to resolve the dependencies for the current project.
If arguments are provided, it will treat them as requirement strings and resolve them instead,
like the normal CLI.
Unlike the normal CLI, the output will be a list of requirement strings that pins the dependency versions.For resolving the current project, thepython-resolver[mindeps]extra needs to be installed.$ python -m resolver.mindeps
resolvelib==0.7.0
importlib-metadata==3.2.0
mousebender==2.0.0
zipp==0.5.0
attrs==19.3.0
packaging==20.3
pyparsing==2.0.3
six==1.5.0$ python -m resolver.mindeps build==0.3.0
build==0.3.0
pep517==0.9.1
toml==0.9.6
packaging==14.0
Package: python-restcountries
python-restcountriesThis is a simple python wrapper for the API ofhttp://restcountries.com.
If there are any issues, please use this repository to contact me about it.Installationpipinstallpython-restcountriesUsageJust import the API Wrapper and start using it!::# v1 from restcountries import RestCountryApi as rapifromrestcountriesimportRestCountryApiV2asrapideffoo(name):country_list=rapi.get_countries_by_name('France')Response filteringPass filters as a keyword argument to any of RestCountryApiV2 or RestCountryApi methods,
this filters the response returned by the api. Thus the Country Object will only contain the attributes in the
filters list.# v1 from restcountries import RestCountryApi as rapifromrestcountriesimportRestCountryApiV2asrapideffoo(name):country_list=rapi.get_countries_by_name("France",filters=["name","currencies","capital"])Attributes that can be passed in the filters list.topLevelDomainalpha2Codealpha3CodecurrenciescapitalcallingCodesaltSpellingsrelevanceregionsubregiontranslationspopulationlatlngdemonymareaginitimezonesbordersnativeNamenamenumericCodelanguagesflagregionalBlocsciocThe Country objectThe API returns Country objects or a list of Country objects. Through the country objects one is able to
access following attributes.country=country_list[0]print(country.name)Francetop_level_domainalpha2_codealpha3_codecurrenciescapitalcalling_codesalt_spellingsrelevanceregionsubregiontranslationspopulationlatlngdemonymareaginitimezonesbordersnative_namenamenumeric_codelanguagesflagregional_blocscioc
Package: python-result
resultA fully type-annotated Rust-like Result type for Python.Badges 📛project status badges:version badges:tools / frameworks used by test suite (i.e. used bymake test):linters used to maintain code quality (i.e. used bymake lint):tools / frameworks used to render documentation (i.e used bymake build-docs):miscellaneous tools used to maintain this project:Installation 🗹To installpython-resultusingpip, run the following
commands in your terminal:python3-mpipinstall--userpython-result# install resultIf you don't have pip installed, thisPython installation guidecan guide
you through the process.Useful Links 🔗API Reference: A developer's reference of the API exposed by this
project.cc-python: Thecookiecutterthat was used to generate this project.
Changes made to this cookiecutter are periodically synced with this project
usingcruft.CHANGELOG.md: We use this file to document all notable changes made to
this project.CONTRIBUTING.md: This document contains guidelines for developers
interested in contributing to this project.Create a New Issue: Create a new GitHub issue for this project.Documentation: This project's full documentation.
Package: python-retry
Python RetryFeaturesGeneric DecoratorSpecify stop condition (i.e. limit by number of attempts)Specify wait condition (i.e. exponential backoff sleeping between attempts)Customize retrying on ExceptionsRead the docsfor further information.InstallationInstall usingpip:pip install python-retryExample>>>frompython_retryimportretry>>>importpytest>>>>>>@retry()...defdiv(num:int,den:int):...returnnum/den>>>>>>div(1,0)Advanced use>>>importlogging>>>logger=logging.getLogger("foo")>>>>>>@retry(...retry_on=(ZeroDivisionError,),...max_retries=2,...backoff_factor=1,...supress_exception=True,...retry_logger=logger...)...defdiv(num:int,den:int):...returnnum/den>>>>>>div(1,0)DocumentationYou can find here atRead the docsthe complete documentation.Changelog0.0.1 (2022-03-09)Initial project structure.Test suite.Examples.
Package: python-rex
Welcome to python-RexPythonRexis regular expressions for humans. (Rexis also abbreviation fromreXtended).Rexis for there standard moduleasrequestsis forurllib module.Rexalso islatin for “king”, and the king of regular expressions is Perl.
SoRexAPI tries to mimic at least some Perl’s idioms.Supported Python versions: 2.6, 2.7, 3.3Installationpip install python-rexorpip install -e git+https://github.com/cypreess/python-rex.git#egg=rex-devThere are no external dependencies.from rex import rexQuickstartDo that:from rex import rex
print ("Your ticket number: XyZ-1047. Have fun!" == rex("/[a-z]{3}-(\d{4})/i"))[1]instead of doing that:import re
regex = re.compile("[a-z]{3}-(\d{4})", flags=re.IGNORECASE)
m = regex.search("Your ticket number: XyZ-1047. Have fun!")

if m is not None:
   print m.group(1)
else:
   print None

# or in shorter way
print m.group(1) if m else None(both should print1047).DocsSo farRexsupports:simple matching (first match),substitution,all python re flags.MatchingThe most obvious usage - test condition by matching to string:if 'This is a dog' == rex('/dog/'):
    print 'Oh yeah'or:if 'My lucky 777 number' == rex('/[0-9]+/'):
    print 'Number found'You can use Perl notation and prependmcharacter to your search:if 'My lucky 777 number' == rex('m/[0-9]+/'):
    print 'Number found'but you can also simply check your match:if ('My lucky 777 number' == rex('m/[0-9]+/'))[0] == '777':
    print 'Number found'or even groups:if ('My lucky 777 number' == rex('m/(?P<number>[0-9]+)/'))['number'] == '777':
    print 'Number found'Remember a mess with re module when it does not match anything? Rex won’t let you down,
it will kindly returnNonefor whatever you ask:>>> print ('My lucky 777 number' == rex('m/(?P<number>[0-9]+)/'))['no_such_group']
None

>>> print ("I don't tell you my lucky number" == rex('m/(?P<number>[0-9]+)/'))['number']
NoneSubstitutingSubstitution can be made by prefixing pattern withscharacter (like in perl expression):>>> print "This is a cat" == rex('s/CAT/dog/i')
This is a dogFlagsEveryRexpattern as in Perl patterns allows to suffix some flags, e.g.rex('/pattern/iu')for enablingianduflag.Rexsupports all standard python re flags:d- re.DEBUGi- re.IGNORECASEl- re.LOCALEm- re.MULTILINEs- re.DOTALLu- re.UNICODEx- re.VERBOSECachingRexcaches all patterns so reusing patterns is super fast. You can always clearRexcache by callingrex_clear_cache()or
disable caching for specific patternsrex('/pattern/',cache=False).Rex for orthodoxIf you are so orthodox pythonist that couldn’t leave with overloaded==operator syntax in your codebase,
you can use “orthodox mode” of rex. Just put the string to match/substitute against as a second argument:>>> bool(rex("/dog/", "This is a dog"))
True
>>> rex("s/cat/dog/", "This is a cat")
'This is a dog'Additionally Rex objects are callable. This is especially useful in situations where you need to process many values
against the same regular expression:>>> my_re = rex("/foo/")
>>> for thing in ["foobar", "bar", "barfoo"]:
...     print bool(my_re(thing))
True
False
True
Package: python-rexster
synopsis:Implements a client over Rexster (https://github.com/tinkerpop/rexster/) providing the Python developer an easy way to interact with the databases supported.The layer follows the pyblueprints graph model interface letting the programmer work in the same way, no matter which underlying graph database is being used.InstallationThe easiest way to get python-rexster installed in your virtualenv is by:pip install python-rexsterUsageConnecting to a Rexster instance>>> from rexster import RexsterServer, RexsterGraph
>>> #Connecting to server
>>> HOST = 'http://localhost:8182'
>>> server = RexsterServer(HOST)
>>> #List graphs availbale in server
>>> server.graphs()
[u'tinkergraph', u'gratefulgraph', u'tinkergraph-readonly', u'sailgraph', u'emptygraph']
>>> #Connecting to a given graph
>>> graph = RexsterIndexableGraph(server, 'tinkergraph')Changelog0.1.1 (2011-07-12)Added returning None instead of raising exceptions (more pythonic way)Updated tests0.1 (2011-07-6)Initial version
Package: python-rfid
python_rfidDescriptionThis library implements an interface to communicate with RFID cards through an MFRC522 device. In spite of other MFRC522 libraries, this project does not depend on particular GPIO libraries written for any particular board, but instead builds upon the Linux kernel's gpio device implementation. In the same spirit, it also avoids dependance on any particular SPI implementation but uses the spidev package, which in turn depends on the Linux SPI userspace API.ContributionsMost of the code in this project is based on on the arduino library for the MFRC522 by miguelbalboa, although it has been very heavily restructured to make better use of object oriented design. The original code andunlicense can be found at [https://github.com/miguelbalboa/rfid].
Package: python-ria
RIA LIBRARYPython wrapper de laAPI de la Red de Información Agroclimática de Andalucía (RIA)fromriaimportRIAria=RIA()estaciones=ria.listar_todas_las_estaciones()print("Estaciones = ",estaciones)Installation$pipinstallpython-riaDOCSPROVINCIASLos métodos públicos disponibles son:* listar_todas_las_provincias: Devuelve un array con todas las provincias
* obtener_informacion_de_una_provincia: Devuelve la provincia preguntadaEl formato que tiene la entidad provincia es el siguiente:{id:intnombre:str}ESTACIONESLos métodos públicos disponibles son:* listar_todas_las_estaciones: Devuelve todas las estaciones
* listar_todas_estaciones_en_una_provincia: Devuelve un array con todas las estaciones dentro de una provincia
* obtener_informacion_de_una_estacion: Devuelve informacion de la estación.El formato que tiene la entidad provincia es el siguiente:{provincia:{id:intnombre:str}codigoEstacion:strnombre:strbajoplastico:boolactiva:boolvisible:boollongitud:strlatitud:straltitud:intxutm:floatyutm:floathuso:int}DATOS DIARIOSLos métodos públicos disponibles son:* obtener_datos_dia: Obtiene los datos de un día concreto
* obtener_datos_diarios_periodo: Obtiene los datos darios de un periodo de tiempo seleccionado
* obtener_datos_diarios_periodo_con_et0: Obtiene los datos darios de un periodo de tiempo seleccionado con la Et0 calculada o nula en caso de no poder calcularla por falta de datosEl formato que tienen los datos diarios es el siguiente:{bateria:intdia:intdirViento:floatdirVientoVelMax:floatet0:floatfecha:strfechaUtlMod:strhorMinHumMax:strhorMinHumMin:strhorMinTempMax:strhorMinTempMin:strhorMinVelMax:strhumedadMax:floathumedadMedia:floathumedadMin:floatprecipitacion:floatradiacion:floattempMax:floattempMedia:floattempMin:floatvelViento:floatvelVientoMax:float}DATOS MENSUALESLos métodos públicos disponibles son:* obtener_datos_mes: Obtiene los datos de un mes concreto
* obtener_datos_mensuales_periodo: Obtiene los datos mensuales de un periodo de tiempo seleccionadoEl formato que tienen los datos mensuales es el siguiente:{anyo:intmes:intnumDias:inttempMedia:floattempMax:floatdiaHorMinTempMax:strtempMin:floatdiaHorMinTempMin:strhumedadMedia:floathumedadMax:floatdiahorMinHumMax:strhumedadMin:floatdiahorMinHumMin:strvelViento:floatdirViento:floatvelVientoMax:floatdiahorMinVelMax:strdirVientoVelMax:floatprecipitacion:floatradiacion:floatbateria:floatfechaUtlMod:str}'''
Package: python-RIBBIT
'.  ckO,
                    .xKOXXkkNko                            ';
                   0xoclodOkkKKKd;.      .       .        .... .
                   do'.  ':lxK0KkXWxkOOkOddl';;.  .  .      .,        ..;.
                    .:.     ,dxXOWKcxdKcxkkkdokOKll.. ..  .  ;   .  ..   '
        .    .       .c      'dx0OKddXKOdx0KXxcOxkNKo   '.   :. . .'
       . .. ;,      . c,      ::xdNkkdlxxkOdkkK000WXX0l'.'. .d.' ...''..
    ....... ,  ....  .;x'     .cxONkKXNO0K0KXKNKKXWWWNWNk:;.,d;,l','.'  . ...
   ...'',::c'.........c0Oc..  .'oOX0NOXkKx0XNXOxKWWWXXK0dl',l0dkc;;.... ... ..
  .....;cx.';.....,::;:xNN0l,..'';OXNKkdxNWKkkxXKOKKOXWKO0dokN0l;'.. .  .
 .....';oklccdodl:clllolONXKKl,,;;oNKO0kxNX0OKNXNXN0XKdxKKOdXWOx:,..
.';:,'..':,.,,,,'......:XXNXxk::;.dNKX0ONXKxxOOkO0OOOKX0kkKXXkoc.
..,;::,,:;......''.':,;:,;dx';ld0xkOXKKkoclkkx0XX0OOxOkkXK0d:;,'..
        .    ...':clc::;,'',;lOKO000kxkOOxcllkdooOKxkKOkdc,,..
              .,:;:ocooccllc::cc:;,',,'.....oo,.oc,'..
                       .......   ...'..    c'....Python RIBBIT client.Quick startfromRIBBIT.clientimportRIBBITClientclient=RIBBITClient()client.croak()client.frog_tip()
Package: python-ripcordclient
Python bindings for the Ripcord APILicenseCopyright 2013 PolyBeacon, Inc.Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Package: python-ripple-lib
DEPRECATION NOTICE: this library is not actively maintained, please consider using the Python library which was made byXRPLF <https://xrplf.org/>and which is maintained. You can find information about this library via links below:xrpl-py on Githubxrpl-py on PyPIpython-ripple-lib is a client library to access Ripplerippled APIandData API.Currently it supports public and admin methods (some of them still are work in progress though). List of implemented methods is displayed below. Basically, it’s just a wrapper on top of http requests made to API.Available onPyPiInstallationTo install the package from PyPi run the following commandpip install python-ripple-libIf you want to install package from this repo, usesetup.pypython setup.py installIf you want to install package just for development purposes, use another commandpython setup.py developThis command creates symlinks to package files instead of copying it to package directoryJSON-RPC MethodsMost of JSON-RPC methods are implemented inside, for the full list of methods please refer to list ofPublicandAdminmethods from ripple documentationHow to use:fromripple_apiimportRippleRPCClient# module supports authentication as wellrpc=RippleRPCClient('http://s1.ripple.com:51234/',username='<username>',password='<password>')account_info=rpc.account_info('r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59')Data API MethodsMost of Data API requests are implemented here as well, fll list located inhereHow to use:fromripple_apiimportRippleDataAPIClientapi=RippleDataAPIClient('https://data.ripple.com')identifier='3170DA37CE2B7F045F889594CBC323D88686D2E90E8FFD2BBCD9BAD12E416DB5'query_params=dict(transactions='true')ledger_info=api.get_ledger(ledger_identifier=identifier,**query_params)Example of get_transactions() query:fromripple_apiimportRippleDataAPIClientfrompprintimportpprintapi=RippleDataAPIClient('https://data.ripple.com')# to get name of a specific transaction type please refer to this link:# https://developers.ripple.com/transaction-types.htmlquery_params=dict(type="Payment")txs=api.get_transactions(**query_params)pprint(txs)Additional methodsSend XRP from address tp address via Account instance:fromripple_apiimportAccounttaker='rYuHe4VogMzYmvHpSsgGxRH97UvqumgER'issuer='rMEmLrfkfooLjdkerU5TKTcAVpfy9fpSxt'seed='<account_seed>'account=Account('http://localhost:5005',issuer,seed)tx_info=account.send_xrp(issuer=issuer,taker=taker,secret=seed,amount=10)ContributingFork this projectClone it locallyAdd your changesRun tests:make testorpython -m unittest -vIf tests are successful and everything is OK, commit to your local forkSubmit a pull request to this repo
Package: python-rivescript
NOTICE: This package is deprecated.The package has been renamed to simplyrivescript– pleasepip install rivescriptinstead of this one.This package is being kept as to not break anybody’s programs, but version 1.04 is the final version under this package name. Please switch torivescriptfor versions 1.06 and higher, which offers support for Python 3, Unicode in RiveScript documents, and other new features.Install rivescript instead of python-rivescript.
Package: python-rj-app
Python Radio Javan APIBasic Radio Javan (Persian Music App) python API with proxy support for bad guys!Install:To install this library you can choose one of these steps:1- Install from pip:pip install python-rj-app2- Install from this source:python setup.py installUsage:fromrj_app.user_authimportUserAuthfromrj_app.mediaimportMP3# Login user and get some info from user profileuser=UserAuth()login_data=user.login("kaxelet990@unigeol.com","123123123")user.user_profile()# now let's download an MP3 file!user_session=user.get_session()mp3=MP3(user_session)print(mp3.get_playlist())# and if you want to download MP3:info=mp3.info(103930)# prints the save path of MP3 fileprint(mp3.download_file(info.get("link")))Other API endpoints:You can use RjBaseRequest class to extend API endpoints. All you need is a URL with its parameters and then POST it
to server.Bad Guys:You may use this on your own to create bulk accounts! It's on your own. but you want to use my chain proxy too :)Contribute?You are always welcome
Package: python-rle
python-rleRun-length encoding(wikipedia link)for data analysis in Python. Install withpip install python-rle. No dependencies required other thantqdmfor visualizing a progress bar.UsageEncode any iterable (tuples, lists, pd.Series etc.) withrle.encode.# rle.encode(iterable) returns (values, counts)
>>> import rle 
>>> rle.encode((10, 10, 10, 20, 20, 20, 30, 30, 30))
([10, 20, 30], [3, 3, 3])Decode (values, counts) back into a sequence withrle.decode.>>> rle.decode([10, 20, 30], [3, 3, 3])
[10, 10, 10, 20, 20, 20, 30, 30, 30]Setprogress_bar==Truefor long sequences :MotivationBase R contains a simplerlefunction that "computes the lengths and values of runs of equal values in a vector", as described by its docstring. I found it useful for calculating streaks in collected data, and is especially wonderful for compiling and summarizing categorical data that describes status over time. Hence this little utility.
Package: python-rmq
PyRMQMessage queue written in Python and backed by Redis (compatible withhttps://github.com/adjust/rmq)Installing$ pip install python-rmqPyRMQ resourcesExamples:GithubCommunity:@pyrmqPip:python-rmqSource:Github repoIssues/Bug tracker:Github issues trackerContributingContributions of all sizes are welcome. You can also help byreporting bugs.
Package: python-roadie
Roadie API ClientInstallingpipinstallpython-roadieUsagefromroadieimportAPIClientclient=APIClient(token="YOUR-AUTH-TOKEN")ResourcesShipmentsCreate shipmentfromroadie.typesimport(Contact,Item,Address,Location,TimeWindow,ShipmentRequest,ShipmentUpdateRequest,DeliveryOptions,)fromdatetimeimportdatetime,timedeltashipment_request=ShipmentRequest(reference_id="ABCDEFG12345",idempotency_key="d6f9d5bb-1ba1-48d9-9125-6a61490a5ca5",alternate_id_1="111",alternate_id_2="222",description="General shipment description.",items=[Item(description="Item description",length=1.0,width=1.0,height=1.0,weight=1.0,quantity=1,value=20,)],pickup_location=Location(address=Address(street1="123 Main Street",city="Atlanta",state="GA",zip="30305",),contact=Contact(name="Origin Contact",phone="4049999999",),notes=None,),delivery_location=Location(address=Address(street1="123 Main Street",city="Atlanta",state="GA",zip="30305",),contact=Contact(name="Origin Contact",phone="4049999999",),notes=None,),pickup_after=datetime.now()+timedelta(hours=4),deliver_between=TimeWindow(start=datetime.now()+timedelta(hours=4),end=datetime.now()+timedelta(hours=8)),options=DeliveryOptions(signature_required=True,notifications_enabled=False,over_21_required=False,extra_compensation=5.0,trailer_required=False,decline_insurance=True,),)client.shipments.create_shipment(shipment_request)Similarly you can do other operations using the shipments resourceclient.shipments.get_shipment(123)client.shipments.list_shipments(ids=[123,444],reference_ids=["someref-id"])client.shipments.update_shipment(123,shipment_update_request)# shipment_update_request is of type ShipmentUpdateRequestclient.shipments.cancel_shipment(123,code="item_not_ready",comment="Its not ready to be picked")client.shipments.tip_driver(123,10.00)client.shipments.rate_driver(123,10)client.shipments.get_signature_image(123)client.shipments.get_pickup_image(123)client.shipments.get_delivery_image(123)Estimatesclient.estimates.create_estimate(estimate_request)# estimate_request is of type EstimateRequestContributingWe use poetry for building and publishing our package to pypiWe use pytest for running testsTo add more resources simply create a file in resource folder and start implementingRequire tests and approval before merging to mainAuthorsFarhath Banufarhath@proxyroot.comOwner
Package: python-roborock
RoborockRoborock library for online and offline control of your vacuums.InstallationInstall this via pip (or your favourite package manager):pip install python-roborockFunctionalityYou can see all of the commands supportedhereSupported devicesYou can find what devices are supportedhere.
Please note this may not immediately contain the latest devices.CreditsThanks @rovo89 forhttps://gist.github.com/rovo89/dff47ed19fca0dfdda77503e66c2b7c7And thanks @PiotrMachowski forhttps://github.com/PiotrMachowski/Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor