Saravanan666/pypi-org huggingface dataset:
Package: python-uinput2
Python-uinput2 is Python interface to Linux uinput kernel module which
allows attaching userspace device drivers into kernel. In practice,
Python-uinput makes it dead simple to create virtual joysticks,
keyboards and mice for generating arbitrary input events
programmatically.Homepage:https://github.com/pyinput/python-uinput2License:GPLv3+About python-uinput v2python-uinput2 is the intended successor to python-uinput.
We’ve decided to fork the project after the original author become unresponsive for several years and PRs implementing modern python support were unmerged.The PyPI project and repository are now python-uinput2, but you should stillimport uinputin your python code.Usage examplesGenerate keyboard clicksimport uinput

with uinput.Device([uinput.KEY_E, uinput.KEY_H,
                    uinput.KEY_L, uinput.KEY_O]) as device:
    device.emit_click(uinput.KEY_H)
    device.emit_click(uinput.KEY_E)
    device.emit_click(uinput.KEY_L)
    device.emit_click(uinput.KEY_L)
    device.emit_click(uinput.KEY_O)Move mouse cursorimport uinput

with uinput.Device([uinput.REL_X, uinput.REL_Y,
                    uinput.BTN_LEFT, uinput.BTN_RIGHT]) as device:
    for i in range(20):
        device.emit(uinput.REL_X, 5)
        device.emit(uinput.REL_Y, 5)Generate keyboard combinationsimport uinput

with uinput.Device([uinput.KEY_LEFTALT, uinput.KEY_TAB]) as device:
    device.emit_combo([uinput.KEY_LEFTALT, uinput.KEY_TAB])Seeexamples/for other kind of example devices (keyboard, joystick).Note that you must have the uinput kernel module loaded to use
python-uinput. To load the module, run:modprobe -i uinputIf you would like to have uinput to be loaded on every sytem boot, add
uinput to/etc/modules.How to installJust run the following commands:python setup.py build
python setup.py installHow to report bugsThe bug database is hosted in GitHub. If you have found a bug or have an
improvement idea you want to share, please report it at
<https://github.com/pyinput/python-uinput2/issues>. However, to avoid
duplicate bug reports, before reporting, please check if similar or identical
bug has already been reported. If so, you can still subscribe to the existing
bug to track its progress.How to contributeIn addition to reporting bugs and improvement suggestions, you are encouraged to
contribute bug-fixes or features. The source code is maintained in Git and the
main repository is hosted at GitHub,
<https://github.com/pyinput/python-uinput2/>. The preferred way to
contribute code is to clone the main Git repository and send a pull-request. Good
old patches via email are also accepted.How to copyPython-uinput is free (libre) software and licensed under the terms of GNU
Public License version 3 or later. In short, it means that you are free to copy,
modify and redistribute this software as long as you place the derivative work
under a compatible license. SeeCOPYINGfor details.
Package: python-ulid
AULIDis auniversally unique lexicographically sortable identifier. It is128-bit compatible withUUID1.21e+24 unique ULIDs per millisecondLexicographically sortable!Canonically encoded as a 26 character string, as opposed to the 36 character UUIDUses Crockford’s base32 for better efficiency and readability (5 bits per character)Case insensitiveNo special characters (URL safe)In general the structure of a ULID is as follows:01AN4Z07BY      79KA1307SR9X4MV3
|----------|    |----------------|
 Timestamp          Randomness
   48bits             80bitsFor more information have a look at the originalspecification.InstallationUsepipto install the library$pipinstallpython-ulidBasic UsageCreate a newULIDobject from the current timestamp>>>fromulidimportULID>>>ULID()ULID(01E75HZVW36EAZKMF1W7XNMSB4)or use one of the named constructors>>>importtime,datetime>>>ULID.from_timestamp(time.time())ULID(01E75J1MKKWMGG0N5MBHFMRC84)>>>ULID.from_datetime(datetime.datetime.now())ULID(01E75J2XBK390V2XRH44EHC10X)There are several options for encoding theULIDobject (e.g. string, hex, int),
as well as to access the timestamp attribute in different formats:>>>str(ulid)'01BTGNYV6HRNK8K8VKZASZCFPE'>>>ulid.hex'015ea15f6cd1c56689a373fab3f63ece'>>>ulid.timestamp1505945939.153>>>ulid.datetimedatetime.datetime(2017, 9, 20, 22, 18, 59, 153000, tzinfo=datetime.timezone.utc)>>>ulid.to_uuid()UUID('015ea15f-6cd1-c566-89a3-73fab3f63ece')Command line interfaceThe package comes with a CLI interface that can be invoked either by the script nameulidor as python modulepython-mulid. The CLI allows you to generate, inspect
and convert ULIDs, e.g.$ulidbuild01HASFKBN8SKZTSVVS03K5AMMS$ulidbuild--from-datetime=2023-09-23T10:20:3001HB0J0F5GCKEXNSWVAD5PEAC1$ulidshow01HASFKBN8SKZTSVVS03K5AMMSULID:01HASFKBN8SKZTSVVS03K5AMMSHex:018ab2f9aea8ccffacef7900e6555299Int:2049395013039097460549394558635823769Timestamp:1695219822.248Datetime:2023-09-2014:23:42.248000+00:00The special character-allows to read values fromstdinso that they can be piped. E.g.$echo01HASFKBN8SKZTSVVS03K5AMMS|ulidshow--uuid-018ab2f9-aea8-4cff-acef-7900e6555299$date--iso-8601|python-mulidbuild--from-datetime-01HAT9PVR02T3S13XB48S7GEHEOther implementationsahawker/ulidvalohai/ulid2mdipierro/ulid
Package: python-ultimate-guitar
All rights reserved.Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.Description: python-ultimate-guitar==============python bindings for ultimate-guitar.comSupports:----------- search with type filtering (pro, tab, chords, etc)- dowload tabs and guitar pro filesUsing from command line-----------------------------------```bashultimate-guitar search -q "paranoid android" -t guitar_pro --limit 10 --downloadUsage: ultimate-guitar search [OPTIONS]Options:-q, --query TEXT            The person to greet.-t, --filter-type TEXT      Filter results by type-l, --limit INTEGER         Limit first N results-p, --path TEXT             Path to downloaded files--download / --no-download--help```Using as lib----------------------------```pythonfrom ultimate_guitar import UltimateGuitarScraperug = UltimateGuitarScraper()ug.search('paranoid android')>>> <ResultSet: paranoid android returned 28 results>ug.search('paranoid android', filter_type='guitar_pro')<ResultSet: paranoid android returned 9 results>```Platform: UNKNOWN
Package: python-ultramemcached
Travis test status: [![Build Status](https://travis-ci.org/nicholasserra/python-ultramemcached.svg?branch=master)](https://travis-ci.org/nicholasserra/python-ultramemcached)#OverviewA drop in replacement for python-memcached to use [ultramemcache](https://github.com/esnme/ultramemcache) as an interface instead of python sockets. Requires ultramemcache. Usage is the same as [python-memcached](http://www.tummy.com/Community/software/python-memcached/) .#InstallationInstall via pip.```pip install python-ultramemcached```#Usage```pythonimport ultramemcachemc = ultramemcache.Client(['127.0.0.1:11211'], debug=0)mc.set("some_key", "Some value")value = mc.get("some_key")mc.set("another_key", 3)mc.delete("another_key")mc.set("key", "1")   # note that the key used for incr/decr must be a string.mc.incr("key")mc.decr("key")````#Usage with DjangoTo use this package with Django, implement your own subclass of Django's `BaseMemcachedCache` backend like this:```pythonfrom django.core.cache.backends.memcached import BaseMemcachedCacheclass UltraMemcachedCache(BaseMemcachedCache):"An implementation of a cache binding using python-ultramemcached"def __init__(self, server, params):import ultramemcachesuper(MemcachedCache, self).__init__(server, params,library=ultramemcache,value_not_found_exception=ValueError)```
Package: python-unfoldedcircle
python-unfoldedcirclePython library to interact with Unfolde Circle Remote Two.Supported DevicesThis tool and library has been tested with:Remote TwoIt might work with other devices from Unfolded Circle. If you have a device which is not listed above, please submit an issue.InstallationThe easiest way to install is by usingpip:pipinstallpython-unfoldedcircleDevice DiscoveryDiscover devices on your network by running:unfoldedcirclediscoverNote: Devices need to be on the same network as you are in order to be discovered through UPnP.Example:$unfoldedcirclediscover
Discovereddevices:
-RemoteTwoBob(http://192.168.1.20:80/api/)-RemoteTwoMarley(http://192.168.1.30:80/api/)You can set the endpoint with the--endpointcommand line option or with the environment variableUC_ENDPOINT.UsageInvoke with--helpto get a list of available commands and options.unfoldedcircle--helpAuthenticationAuthentication is necessary to interact with a device. Theauth logincommand sets up an API key to be used by this tool.$unfoldedcricle--endpointhttp://192.168.1.20:80/api/authlogin
PIN:***
NewAPIkeyfor'Remote Two Bob':PhyrUcD.YzNkOTg5MTA5ZTFkNDMxMGIxODVkMTJiYmU3ODllMjcuMmFjZDk0YmU5N2RjNDM4ZWFhYzU3ZTY1MjQzY2EyNTkThe new API key is stored in the./credentialsfile (change its path with the--keyfileoption) and will be used for the configured endpoint in subsequent invocations. You can manually set the API key (and override stored credentials) with the--apikeycommand line option or with the environment variableUC_APIKEY.
Package: python-unitconverter
Unit ConverterUnit Converter is a simple python unit converter, that can help you convert various units.For more information see the documentationUnit Converter Documentation.InstallationYou can install the Real Python Feed Reader fromPyPI:python -m pip install realpython-readerThe reader is supported on Python 3.11.0 and above.How to useUnit converter is a Python code package, namedunitconverter.converter. To use the package, first import it:
>>> from unitconverter import converterYou can then call various conversion modules:>>> converter.convertLength(5, "cm", "m")
[0.05]
>>> converter.convertWeight(5, "kg", "g")
[5000.0]
>>> converter.convertEnergy(5, "kcal", "J")
[20920.0]
>>> converter.convertData(5, "Mb", "mb")
[40.0]
>>> converter.convertSpeed(5, "km/h", "m/s")
[1.38889]
>>> converter.convertVolume(5, "L", "ml")
[5000.0]
>>> converter.convertPressure(5, "psi", "bar")
[0.344738]
>>> converter.convertTime(5, "day", "h")
[120]
>>> converter.convertTemperature(5, "C", "K")
[278.15]You can also import individual modules and use them to convert units:>>> from unitconverter.converter import convertLength
>>> converter.convertLength(5, "cm", "m")
[0.05]LicenseThis package is licensed under the MIT license.Release History1.0.0Initial release
Package: python-unit-generator
template unit test case generator for python in golang styleVScode extension:https://github.com/RomanMIzulin/python_unittest_vscodeCan be found in vscode by unittest_generator or just via direct linkhttps://marketplace.visualstudio.com/items?itemName=RomanMatveev.unittest-generatorTODO:support pytestsupport methodswrite more testsfar future: autoimport neccesary types for testswrite FAQ and create simple github pagenow it geneates for python function:defkek(arg1:int,arg2:str)->str:returnstr(arg1)+arg2source code like this:deftest_kek():@dataclassclassArgs:arg1:intarg2:str@dataclassclassTest:name:strargs:Argswant:strcases:tuple[Test]=(# TODO: add cases here)forcaseincases:if(v:=func(*case.args))!=case.want:print(f"{func.__name__()}got{v}wanted{case.want}")
Package: python-unit-prettifier
title: python-unit-prettifierPretty print various units like digital units, weights, and heights, etc. Easy to implement, but why reinvent the wheel!Free software: MIT licenseDocumentation:https://python-unit-prettifier.readthedocs.io.FeaturesPretty print various units like digital units, weights, and heights, etc. Easy to implement, but why reinvent the wheel!CreditsThis package was coded in it's entirety by Aria Bagheri.
Special thanks to everyone that uses this library and make their code cleaner to read, and less obscure.
Package: python-unittest-cogent
python-unittest-cogentA custom tests runner which gives output in three different formats (xml, json and html).QuickstartInstallation:pipinstallpython-unittest-cogentUsage: In example.pyimportcogentfromcogent.testsimportTestCaseclassTestClassOne(TestCase):deftest1(self):expected_number=90actual_number=90print('Test output foe test case 1')self.assertEqual(expected_number,actual_number)if__name__=="__main__":cogent.main()To change the settings:You can change the different-different settings like -PROJECT_NAME="Test Report"APPLICATION_NAME="Test APP"APP_VERSION="App Version 5.3"PLATFORM="Linux/Ubuntu 14.04"HTML_TEST_REPORT_FILENAME="Report.html"XML_TEST_REPORT_FILENAME="Report.xml"JSON_TEST_REPORT_FILENAME="Report.json"DEFAULT_CONVERTER="HTML"In example.pyimportcogentfromcogent.testsimportTestCasefromcogentimportsettingssettings.DEFAULT_CONVERTER="XML"classTestClassOne(TestCase):deftest1(self):expected_number=90actual_number=90print('Test output foe test case 1')self.assertEqual(expected_number,actual_number)if__name__=="__main__":cogent.main.settings=settingscogent.main()In case any queries you can contact me on my email -harshittrivedi78@gmail.com
Package: python-univer
Python UniverСодержит маппинг данных из Univer для SqlAlchemyУстановка$pipinstallpython_univerКонфигурацияfrompython_univer.configimportConfig,DRIVERfrompython_univer.ormimportget_sessionconfig=Config(host='адрес',user='пользователь',password='пароль',db='имя базы данных',driver=DRIVER.FREETDS)Session=get_session(config)Использованиеfrompython_univer.modelsimportStudentsession=Session()students=session.query(Student).filter(Student.course==2,Student.status==1)forstudentinstudents:print(student)
Package: python-unsio
ABOUTUNSIO(UniversalNbodySnapshotInputOutput) is an API which perform input/output operations in a generic way,
and on different kind of nbody files format (nemo, Gadget binaries 1 and 2, Gadget hdf5, Ramses). By using this API,
a user could write only one analysis program which will work on all known files format supported by UNSIO.
It's not necessary anymore to know how is implemented a file format, UNSIO will do transparently and automatically
all the hard work for you ! With UNSIO, you will spend less time to develop your analysis program.
UNSIO comes with an integrated sqlite3 database which can be used to retrieve automatically all your data
among terabytes of hard disks.FeaturesUNSIO can be used from different languages (C,C++,Fortran and Python)Supported files format :NEMO(read and write)GADGET 1(read)GADGET 2(read an write)GADGET 3/hdf5(read and write)RAMSES(read)List of filesstored in a fileSimulations stored inSQLITE3databaseInstalling python wrapperpip install python-unsio -Uto get some docstring helppydoc(unsio.input)pydoc(unsio.output)UsageIn the example below, we load a RAMSES simulation and we save it in GADGET3 file formatimportunsio.inputasuns_in# unsio reading modulemyfile="/home/jcl/output_00004"# input RAMSES simulation# we instantiate a CUNS_IN objectmy_in=uns_in.CUNS_IN(myfile,"gas,stars")# We select components GAS and STARS## Reading#ifmy_in.nextFrame():# load snapshot# read stars positionsstatus,poss=my_in.getData("stars","pos")# read gas positionsstatus,posg=my_in.getData("gas","pos")# read gas densitiesstatus,rho=my_in.getData("gas","rho")# read time simulationstatus,timex=my_in.getData("time")## Writing#importunsio.outputasuns_out# unsio writing modulemyoutfile="snapshot.g3"# output file name# we instantiate a CUNS_OUT objectmy_out=uns_out.CUNS_OUT(myoutfile,"gadget3")# select gadget3 output format# prepare data to be saved# set timestatus=my_out.setData(timex,"time")# set stars positionsstatus=my_out.setData(poss,"stars","pos")# set gas positionsstatus=my_out.setData(posg,"gas","pos")# set gas densitiesstatus=my_out.setData(rho,"gas","rho")# write on file systemmy_out.save()# closemy_out.close()LicenseUNSIO is open source and released under the terms of theCeCILL2 LicenceWebpagePLease visit :UNSIO project home pagePython reading manualPython writing manual
Package: python-unsiotools
ABOUTUNSIOTOOLS contains a collection ofunsiobased programs and depends of theNemopackage.
You have access tofalcONalgorithm to compute density and gravity.Installing python wrapperpip install python-unsiotools -UTo get some docstring help# Help on falcON class
pydoc unsiotools.simulations.cfalconUsageIn the example below, we load a RAMSES simulation, and compute density and gravity on HALO particlesimportunsio.inputasuns_in# unsio reading moduleimportunsiotools.simulations.cfalconasfalconmyfile="/home/jcl/output_00004"# input RAMSES simulation# we instantiate a CUNS_IN objectmy_in=uns_in.CUNS_IN(myfile,"halo")# We select components HALO## Reading#ifmy_in.nextFrame():# load snapshot# read halo positionsstatus,pos=my_in.getData("halo","pos")# read halo massstatus,mass=my_in.getData("halo","mass")# read time simulationstatus,timex=my_in.getData("time")# compute densitycf=falcon.CFalcon()ok,rho,hsml=cf.getDensity(pos,mass)print("Rho=",rho)# compute gravityeps=0.05# softeningok,acc,phi=cf.getGravity(pos,mass,eps)print(ok,acc,phi)In this more simple example, we compute density and gravity on random data. Note that data must be infloat32formatimportunsiotools.simulations.cfalconasfalconimportnumpyasnppos=np.float32(np.random.random_sample((300,)))mass=np.float32(np.random.random_sample((100,)))cf=falcon.CFalcon()# densityok,rho,hsml=cf.getDensity(pos,mass)print(f"ok={ok}\nrho={rho}")# gravityeps=0.05ok,acc,phi=cf.getGravity(pos,mass,eps)print(f"ok={ok}\nacc={acc}\nphi={phi}")LicenceUNSIOTOOLS is open source and released under the terms of theCeCILL2 LicenceWebpagePLease visit :UNSIO project home pageUNSIO Python reading manualUNSIO Python writing manualUNSIO Pypi pageNEMO home pageCopyrightCopyright Jean-Charles LAMBERTJean-Charles.Lambert_at_lam.fr
Package: pythonUntappd
pythonUntappdPython Library for Untappd APIUsage:Initialize api wrapper
api = pythonUntappd.api(“CLIENT_ID”,”CLIENT_SECRET”)Add access token from user
api.set_auth(“ACCESS_TOKEN”)Search for a beer
api.beer_search(“Blue Buck”)Full API documentation for Untappd can be found at:http://untappd.com/api/docs
Package: python-upbit
A python3 wrapper for UPBitinstallpip3installpython-upbitUsagefromupbitimportUPBitClient# You do not need an api key for Quotation APIsprint(UPBitClient.get_markets())api_key='your api key'api_secret='a very secret key'c=UPBitClient(api_key,api_secret)print(c.accounts)
Package: python-ups
python-ups==========UPS shipping interfaceUsing=======from ups.client import UPSClientfrom ups.model import Package, Addresscredentials = {'username': '','password': '','access_license': '','shipper_number': ''}shipper = Address(name='shipper address name', city='rio de janeiro',address='', state='', zip='',country='brazil')recipient = Address(name='shipper address name', city='rio de janeiro',address='', state='', zip='',country='brazil')packages = [Package(2, 3, 4, 5)]ups = UPSClient(credentials)response = ups.rate(packages=packages, packaging_type='2a',shipper=shipper, recipient=recipient)
Package: python-upsource-api
API Handler for Upsource web service, providing basic authentication (which
seems to be the only kind that Upsource supports) and a few methods.InstallationInstall:pip install python-upsource-apiCompatibilityThis package is compatible Python versions 2.7, 3.4, 3.5 and 3.6.UsageThe API handler is easy to use, you just need to initialize it with the
connection parameters and use any of the methods to get the required informationExample getting projects with coverage and issues metrics:from upsource.UpsourceClient import UpsourceClient
from upsource.HubClient import HubClient

upsource = UpsourceClient(base_url, username='admin', password='xxx')
hub = HubClient(hub_url, username='admin', password='xxx') or hub = HubClient(hub_url, token='xxxxx')
Package: python-upsrtc
UPSRTC Bus TrackerUnofficial python wrapper around UPSRTC internal API for planning bus journey.Prerequisitespython > 3.9requests >=2.3.0UsageInstall libraryInstall using pip.pip install python_upsrtcGenerate UPSRTC objectTo generate a UPSRTC object, you can use the following code:frompython_upsrtcimportUPSRTCasUPu=UP()Get Bus Stops DataTo get bus Stops data, use the following code:u.get_bus_stops()# Raises apiError if api request fails.# raises noBusStopFoundError if no bus stop can be loaded.print(u.bus_stops)# List(BusStop)It fetches a list of BusStop object stored in bus_stops attributeSeeBusStopfor its related methods and attributes.Find Buses between stations.fromdatetimeimportdatetime#set start stationu.set_start_station("7381")# get station code from bus stops datau.set_end_station("8778")u.set_start_date(datetime.now())# Set the start date (requires a datetime object as date )u.find_buses()# raises NOJourneyFoundError if no bus are found# raises InvalidSearchSettingsError if search settings are not filled correctly or are empty.print(u.journey)# List( Ticket )It fetches a list of Ticket attributes stored in journey attribute.SeeTicketfor its related methods and attributes.TODOImplement custom rotating proxyAutomatic proxy fetching.Include Fare distribution in Ticket object.DocumentationCheckout the documentationhereAuthorsMohd Sabahat :mohd.sabahat123@gmail.comNoticeNOTE : I am not affiliated or endorsed withUPSRTC. This is just an API wrapper around their already existing internal, and i am not responsible for any knd of damage that might cause using this code.
Package: python-uptimerobot
Uptime Robot integration for Python============Uptime Robot http://uptimerobot.com integration for your Python project.There is a Django version (https://github.com/arteria/django-uptimerobot) available containing the Uptime Robot APIimplementation and the infrastructure stuff used by Djangonauts.Installation------------To get the latest stable release from PyPi.. code-block:: bash$ pip install python-uptimerobotTo get the latest commit from GitHub.. code-block:: bash$ pip install -e git+git://github.com/arteria/python-uptimerobot.git#egg=uptimerobotUsage-----Use with Python:.. code-block:: python>>> from uptimerobot.uptimerobot import UptimeRobot>>> up = UptimeRobot(UPTIME_ROBOT_API_KEY)>>> up.addMonitor("arteria-webpage", "https://www.arteria.ch/")TrueUse in Shell: (success if return value is 0, null).. code-block:: bashcd /path/to/script/chmod 755 uptimerobot.py # if necessary./uptimerobot.py monitorFriendlyName=arteria-webpage monitorURL=https://www.arteria.ch/History-------latest0.1.4- Extended API with `.editMonitor()`.- Updated to use HTTPs by default.0.1.3- Extended API with `.deleteMonitorById()`.0.1.1- Extended API with `.getMonitors()`.0.1.0- Releveled version0.0.7- Python 3.x supportAbout the API-------------The full API is documented here: https://uptimerobot.com/api