Saravanan666/pypi-org huggingface dataset:
Package: pymotorlib
MotorLib: A configurable library for 12V DC MotorsAuthor: Tiernan LindauerMotorLib is for use with any microcontroller/computer that has GPIO, like the popular Raspberry Pi or Arduino boards.
It also requires the use of a PWM motor controller, with examples provided below.
Examples have been provided on how to use this library are provided in theMotorTest.pyandPlotPID.pyfiles.MotorTest.pyis also reproduced below:importmathfromtimeimporttimefrompymotorlibimportMotor,MotorType,RunModefrompymotorlib.PWMDriverimportGoBildaControl# Time to run the motor, in secondsRUN_TIME=10# Number of periodsN_PERIODS=2# Define pwm and encoder pinspwm=12encoder=(11,12)# Establish a motor object for a gobilda 312 RPM motor, with the specified pwm and encoder ports and position type controlmy_motor=Motor(MotorType.GOBILDA_312,pwm,*encoder,GoBildaControl,RunMode.POSITION_CONTROL)# Set PID for the motormy_motor.set_pid_coefficients(kP=0.001)# Target position function to follow - sin wave of N_PERIODS over RUN_TIME lengthtarget=lambdat:my_motor.type.TICKS_PER_REV*math.sin(N_PERIODS*math.pi*t/(RUN_TIME/2))before=time()current=0whilecurrent<RUN_TIME:my_motor.set_target(target(current))my_motor.update_pid()current=time()-beforemy_motor.stop()As you can see, it is relatively easy to get your motor up and running with this library. Here are the different config options available:Motor ConfigurationMotor type (What motor you're running):ORIBITAL_20,GOBILDA_312- you can add more by creating a class that has a staticTICKS_PER_REVvariableExample:classNEW_MOTOR:TICKS_PER_REV=500# Use your own value here for the amount of encoder ticks for each revolutionSet the GPIO pins:The PWM channel should be set to the pin the PWM wire is connected to. The encoder pins should correspond first to channel A, second to channel B.RunMode (how to use the motor):POSITION_CONTROL- go to a position using PID,VELOCITY_CONTROL- go to a velocity using PID,RAW_POWER- do not use PID, instead just set the power manuallyUsing a custom motor controller:By default, it is assumed you are using theGoBilda Motor Controller. There is also support for theREV Robotics Spark Mini.
The example usesGoBildaControl, however if you switch that toSparkMiniyou can run the motor off the Spark Mini as well.To use your own custom PWM controller, set a class up as follows:classNewController(PWMDriver):MIN_PULSE=300# Set this to whatever your controller's min pulse width isMAX_PULSE=2300# Set this to whatever your controller's max pulse width ishalf_width=(MAX_PULSE-MIN_PULSE)/2@staticmethoddefmake_pulse(power):return(power*NewController.half_width)+NewController.MIN_PULSE+NewController.half_widthMIN_PULSEshould be equivalent to a power of-1.MAX_PULSEshould equate to a power of1.Bugs/IssuesTo report an issue or bug in the code, please start onehereon GitHub!T. Lindauer
Package: pymountebank
This is a simple wrapper library around mountebank. It’s useful for
mocking HTTP API services.Usagefrom mountebank import Imposter

imposter = Imposter()
imposter.add_stub("/test", "GET", "What I'm expecting")
with imposter.mockhttp() as url:
    assert requests.get(url + "/test").text == "What I'm expecting"DevelopmentTo run the containers:docker-compose up --buildTo test:docker-compose exec tests /bin/bash -c "cd /apps/mountebank/tests;pytest"
docker-compose exec tests2 /bin/bash -c "cd /apps/mountebank/tests;pytest"
Package: pymouser
PyMouserInstallationInstall the package with pip.pip install --user pymouserUsage:importpymouser# Initialize the package with your API keymouser=pymouser.MouserAPI('your-search-key')# Search by Part-Numbererr,res=mouser.search_by_PN('your-part-number')# Check for errors or print the returned resultsiferr:print("Error during request:")print(err)else:ifres['NumberOfResult']==0:print("No results matched the part number")else:formatchinres['Parts']:print("Match for PartNumber ....%s"%match['MouserPartNumber'])print("Description .............%s"%match['Description'])print("Link to datasheet .......%s"%match['DataSheetUrl'])print("Link to product page ....%s"%match['ProductDetailUrl'])print("")
Package: pymov2gif
pymov2gifConvert*.movto*.gif:Web InterfacePython InterfaceTo integrate the functionality in your project, just import theconvertfunction:from pymov2gif import convert
convert(file, resolution='800x600', framerate=10, output_file=None)file (str): Input movie file in *.mov formatresolution (str): Resolution of the output *.gif file - default: 800x600framerate (int): Framerate of the output *.gif file - default: 10output_file (str/None): Filename of the output *.gif file - optionalComand Line InterfaceQuickly convert your *.mov files to the *.gif format on the command line:pymov2gif test.mov --resolution=800x600 --framerate=10 --output_filename=test.giftest.mov: Input movie file in *.mov format--resolution: Resolution of the output *.gif file - default: 800x600--framerate: Framerate of the output *.gif file - default: 10--output_filename: Filename of the output *.gif file - optionalInstallationBoth the python interface and the command line interface requirepymov2gifto be installed viapip:pip install pymov2gifAlternatively,pymov2gifcan be installed using conda-forge:conda -c conda-forge pymov2gif
Package: pymovements
pymovements is an open-source python package for processing eye movement data. It provides a simple
interface to download publicly available datasets, preprocess gaze data, detect oculomotoric events
and render plots to visually analyze your results.Website:https://github.com/aeye-lab/pymovementsDocumentation:https://pymovements.readthedocs.ioSource code:https://github.com/aeye-lab/pymovementsMailing list:pymovements-list@uni-potsdam.deContributing:https://github.com/aeye-lab/pymovements/blob/main/CONTRIBUTING.mdBug reports:https://github.com/aeye-lab/pymovements/issuesPyPI package:https://pypi.org/project/pymovementsConda package:https://anaconda.org/conda-forge/pymovementsGetting StartedCheck out our guide on how to installpymovementsand get started here:InstallationWe provide a range of tutorial aimed at beginners:TutorialsThe complete reference of the package can be found here:API ReferenceContributingWe welcome any sort of contribution to pymovements!For a detailed guide, please refer to ourCONTRIBUTING.mdfirst.If you have any questions, pleaseopen an issueor write us atpymovements-list@uni-potsdam.deCitingIf you are using pymovements in your research, we would be happy if you cite our work by using the following BibTex entry:@inproceedings{pymovements,author={Krakowczyk, Daniel G. and Reich, David R. and Chwastek, Jakob and Jakobi, Deborah N.and Prasse, Paul and Süss, Assunta and Turuta, Oleksii and Kasprowski, Pawełand Jäger, Lena A.},title={pymovements: A Python Package for Processing Eye Movement Data},year={2023},isbn={979-8-4007-0150-4/23/05},publisher={Association for Computing Machinery},address={New York, NY, USA},url={https://doi.org/10.1145/3588015.3590134},doi={10.1145/3588015.3590134},booktitle={2023 Symposium on Eye Tracking Research and Applications},location={Tubingen, Germany},series={ETRA '23},}There is also a preprint available onarxiv.
Package: pymove-osmnx
PyMove OSM NetworkX (OSMnx)What is PyMove-OSMnxPyMove is a Python library for processing and visualization of trajectories and other spatial-temporal data. OSMnx is a Python package to retrieve, model, analyze, and visualize street networks from OpenStreetMap. Users can download and model walkable, drivable, or bikeable urban networks with a single line of Python code, and then easily analyze and visualize them.Main FeaturesPyMove-OSMnxproposes:A familiar and similar syntax to Pandas;Clear documentation;Extensibility, since you can implement your main data structure by manipulating other data structures such as Dask DataFrame, numpy arrays, etc., in addition to adding new modules;Flexibility, as the user can switch between different data structures;Fast map-matching of points, routes, or trajectories to nearest graph edges or nodes;Operations for data preprocessing, pattern mining and data visualization.
Package: pymovie
PyMovie is a simple (hopefully) application for extracting lightcurves from occultation videos.It is specially designed to be robust in both star tracking and data extraction when the
video has been disturbed by wind-shake.The name was chosen out of respect and deference to LiMovie, a pioneer application
published many years ago.
This application has fewer ‘bells and whistles’ than LiMovie and so should be easier
to use for a newbie.
Package: pymovingintelligence
Python: Moving IntelligenceBasic Python 3 API wrapper for Moving Intelligence asset and fleet managementAboutThis package allows you to get get data fromhttps://movingintelligence.com/en/.NOTE: You need a login account together with an apikey to be able to use it.Installationpip3installpymovingintelligenceExample code#!/usr/bin/env python3frompymovingintelligenceimportMovingIntelligence,InvalidAuthError,InvalidPermissionsErrorimportloggingimportsysimportjsonimporttimelogger=logging.getLogger(__name__)logging.basicConfig(level=logging.DEBUG)try:## Init# Initialize API client with your login name and apikeyapi=MovingIntelligence(username="YOUR USERNAME",apikey="YOUR APIKEY",)## Misc data# Get trip classificationsclassifications=api.get_trip_classifications()logger.info(classifications)# Get trip periodsperiods=api.get_trip_periods()logger.info(periods)## Person data# Get all personspersons=api.get_persons()logger.info(persons)forpersoninpersons:person_id=person["id"]name=person["name"]# Get trips for personlogger.info("Get trips for%s",name)logger.info(api.get_person_trips(person_id,'TODAY','UNKNOWN'))logger.info("Get detailed trips for%s",name)logger.info(api.get_person_detailed_trips(person_id,'TODAY','UNKNOWN'))## Object data# Get all objectsobjects=api.get_objects()logger.info(objects)forobjectinobjects:object_id=object["id"]brand=object["brand"]model=object["model"]logger.info("Get odometer readings for%s%s",brand,model)logger.info(api.get_odometer(object_id))logger.info("Get trips for%s%s",brand,model)logger.info(api.get_object_trips(object_id,'TODAY','UNKNOWN'))logger.info("Get detailed trips for%s%s",brand,model)logger.info(api.get_object_detailed_trips(object_id,'TODAY','UNKNOWN'))exceptInvalidAuthError:logger.debug("Authenticaton error, your username and/or apikey is invalid.")exceptInvalidPermissionsError:logger.debug("You don't have permission to access this data.")except(Exception)aserr:logger.debug("Unknown error occurred.%s",err)
Package: pymovingintelligence-ha
Python: Moving IntelligenceHome Assistant Python 3 API wrapper for Moving Intelligence asset and fleet managementAboutThis package allows the Home Assistant integration 'moving_intelligence' to get get data fromhttps://movingintelligence.com/en/.NOTE: You need a login account together with an apikey to be able to use it.Installationpip3installpymovingintelligence_haExample code#!/usr/bin/env python3frompymovingintelligence_haimportMovingIntelligencefrompymovingintelligence_ha.utilsimportInvalidAuthError,InvalidPermissionsErrorimportasyncioimportloggingfromaiohttpimportClientSessionlogger=logging.getLogger(__name__)logging.basicConfig(level=logging.DEBUG)asyncdefasync_main():api=MovingIntelligence(username="YOUR USERNAME",apikey="YOUR API-KEY")try:devices=awaitapi.get_devices()fordeviceindevices:print(device.data)exceptInvalidPermissionsError:logger.error("No permission")except:logger.error("ConnectionError: Could not connect to MovingIntelligence")asyncio.run(async_main())
Package: pymoxel
MOXελ is a Python package forparallel calculation of energy voxels, with
emphasis on reticular chemistry.The majority of time in a ML workflow goes into constructing the inputs and
making sure they are clean, rather than focusing on the ML part itself.MOXελ aims to provide asimple and fast interface to generate energy voxels in
a ML-ready format, minimizing as much as possible the time spent on these
preprocessing steps.⚙️  InstallationIt is strongly recommended toperform the installation inside a virtual environment.
Check theinstallations steps.Assuming an activated virtual environment:pipinstallpymoxel📖 UsageCheck thetutorial.📰 Citing MOXελIf you use ΜΟΧελ in your research, please consider citing the following work:Currently N/A.📇 TODOImprove modeling of interactionsImprove voxelization schemeImprove performance📑 LicenseMOXελ is released under theGNU General Public License v3.0 only.
Package: pymp4
pymp4Python MP4 box parser and toolkit based on theconstructlibrary.Usage>>>frompymp4.parserimportBox>>>fromioimportBytesIO>>>Box.build(dict(type=b"ftyp",major_brand="iso5",minor_version=1,compatible_brands=["iso5","avc1"]))b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1'>>>ftyp=Box.parse(b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1')>>>print(ftyp)Container:type=ftypmajor_brand=iso5minor_version=1compatible_brands=ListContainer:iso5avc1ContributorsLicenseApache License, Version 2.0
Package: pymp4parse
MP4 ISO Base Media File Format Parser LibraryParses out and returns a limited set of MP4 boxesUsage:Parse boxesimport pymp4parse

boxes = pymp4parse.F4VParser.parse(filename='my.mp4')
for box in boxes:
    print box.type
    print dir(box)Check is MP4 file>>> pymp4parse.F4VParser.is_mp4(filename='my.mp4')
True
>>> pymp4parse.F4VParser.is_mp4(filename='/etc/resolv.conf')
FalseInstallationpip install https://github.com/use-sparingly/mp4parse/zipball/masterPrerequisitesPip should install prerequisites. In case you’re manually installing,
you’ll need:Bitstring -https://pypi.python.org/pypi/bitstring/
Package: pymp4x
pymp4xPython MP4 box parser and toolkit based on theconstructlibrary.Usage>>>frompymp4.parserimportBox>>>fromioimportBytesIO>>>Box.build(dict(type=b"ftyp",major_brand="iso5",minor_version=1,compatible_brands=["iso5","avc1"]))b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1'>>>ftyp=Box.parse(b'\x00\x00\x00\x18ftypiso5\x00\x00\x00\x01iso5avc1')>>>print(ftyp)Container:type=ftypmajor_brand=iso5minor_version=1compatible_brands=ListContainer:iso5avc1ContributorsLicenseApache License, Version 2.0
Package: py-mpache
# py-mpache ### INSTALL ##Installation is fairly simple.  Just do the standard install as root:tar -xvzf py-mpache-*.tar.gzcd py-mpache-*python setup.py installYou can not yet also install directly using *pip* or *easy_install* but once thats implimented the line will bepip install py-mpache## USAGE ##This library will follows the XML API.  If you follow thedocumentation on https://github.com/ampache/ampache/wiki/XML-APIit is forked from crusty monkeys subsonic python wrapper and the intention is that calls to that wrapper will be identical to calls to this ampache wrapper.So you can also view crusty monkeys subsonic documentation at http://stuffivelearned.org/doku.php?id=programming:python:py-sonic## BASIC TUTORIAL ##This is about as basic as it gets.  We are just going to set up the connectionand then get a couple of random songs.```python#!/usr/bin/env pythonfrom pprint import pprintimport libmpache# We pass in the base url, the username, password, and port number# Be sure to use https:// if this is an ssl connection!conn = libmpache.Connection('http://music.example.com' , 'myuser' ,'secretpass' , port=80)# Let's get 2 completely random songssongs = conn.getRandomSongs(size=2)# We'll just pretty print the results we got to the terminalpprint(songs)```As you can see, it's really pretty simple.  If you use the documentationprovided in the library:pydoc libsonic.connectionor the api docs on subsonic.org (listed above), you should be able to make useof your server without too much trouble.Right now, only plain old dictionary structures are returned.  The planfor a later release includes the following:* Proper object representations for Artist, Album, Song, etc.* Lazy access of members (the song objects aren't created until you want todo something with them)## TODO ##I havent started yet but changes required will be to parse the XML from the ampache server and return lists as per py-sonic.My intention is to incorporate every api call available from the latest ampache api version so as to maximise the possible outputs from this wrapperUltimately once list returns are working I want to build another project linking this wrapper as a backend to mopidy. Probably based on the mopidy-subsonic extension.
Package: pympd
An alternative to the commonly-used mpdclient
module (http://mpd.wikicities.com/wiki/ClientLib:py-libmpdclient)
which uses twisted for the TCP communications. Important differences
between mpdclient and pympd:pympd doesn’t fall into ‘not done processing current command’ loopspympd doesn’t block, due to its use of the twisted communications libspympd has a very incomplete implementation of the mpd commands, but
they are easy to addpympd supports my mpd patch for fractional-second accurate times,
and might even reject unpatched mpdsGet the source with:darcs gethttp://darcs.bigasterisk.com/pympdBrowse the source here:http://bigasterisk.com/darcs/?r=pympd;a=treeSee also:http://github.com/magcius/python-mpd(very similar project)http://github.com/magcius/mpdsetup(query language using python-mpd)
Package: pympernel
pympernelShort blurb about what your product does.One to two paragraph statement about your product and what it does.InstallationOS X & Linux:pip3installpympernelWindows:pipinstallpympernelUsage exampleA few motivating and useful examples of how your product can be used. Spice this up with code blocks and potentially more screenshots.For more examples and usage, please refer to theWiki.Development setupDescribe how to install all development dependencies and how to run an automated test-suite of some kind. Potentially do this for multiple platforms.pipinstall--editablepympernelDocumentationRead the DocsMetaStephen R A King :stephen.ra.king@gmail.comDistributed under the MIT License. SeeLICENSEfor more information.https://github.com/Stephen-RA-King/pympernel
Package: pympf
PyMPFThis is an arbitrary precision IEEE-754 floating point implementation.The main motivation is correctness and test-case generation, so a
number of things might seem a bit strange. This library has a bunch of
limitations and should never be used if you want things to be
fast. MPFR, SymFPU or Z3's MPF library are what you want.Why "yet another" implementation?This library supports RNA (MPFR does not)This library supports subnormals and infinities (MPFR does, but only with
tricks)This library uses IEEE or SMTLIB terminology where possible (MPFR tends to
stick to more "maths" terminology)This library is implemented completely in Python unlike gmpy, mpmath, etc.This library is an independent implementation so can be used to check
Z3/SymFPUThis library uses a stupid but simple algorithm to do roundingThe main use of this library is random test-case generation for
SMT-LIB. It has been used to validate the FP implementations of CVC4,
Z3, MathSAT, SONOLAR, Alt-Ergo, Colibri, goSAT, and xsat; and has
found bugs in all of them ;)SMT-LIB random testcase generatorThis will move to a new project. For now it is still available in
the "python2" branch of PyMPF.RequirementsPython 3.5 or later.There is also a Python2 port, but I don't plan to maintain it
(although do shout if you need it).DocumentationThis is very much work in progress and entirely incomplete (I just
started adding this).PyMPF API DocumentationInstallationThis package is available on PyPI. To install simply run:$ pip3 install PyMPFLicense and CopyrightEverything in this repository is licensed under the GNU GPL v3.Key copyright holders that contributed to this library are:Florian SchandaAltran UK LimitedZenuity AB
Package: pympg
pympgCommand-line multipurpose config generator.ExamplePrerequisitesLatest version of Python 3For apache2 config generation, apache2 (and it's proxy modules enabled).InstallationRunpip3 install pympgto install this package.Runsudo pympgto open the generation prompt.Development Build InstructionsPrerequisitesPython 3Python poetryBuildinggit clone https://github.com/throw-out-error/pympg.gitCD into the folderRun./build.shto build the package and install it.Runsudo pympgto run pympgContributors ✨Thanks goes to these wonderful people (emoji key):Dan💻Theo Paris📖💻This project follows theall-contributorsspecification. Contributions of any kind welcome!
Package: pympi-ling
IntroductionPympi is a package that allows you to interact withElanfiles andTextGridfiles. You can create, edit and convert both formats into
each other. It includes besides all the basic functions also functions
for: - Calculating gaps and overlaps between speakers conformHeldner
and Edlund’s method. (Could be used to calculate floor transfers) -
Shift annotations in both directions (Could be used when due to an error
all annotations are misaligned). - Import from CLAN’s chat files. -
Merge and or filter tiers (Could be used to combine hands in gesture
coding) - Move tiers between elan files. - Etc.RequirementsNoneOptional requirementslxmlis used for testing.Documentation and downloadsFull api documentation of the current and old versions can be found onhere.Pypi repository location can be foundhere.InstallationAutomaticFrom a shell run with administrator rights:pipinstallpympi-lingOr alternatively run with administrator rights:easy_installpympi-lingNOTE: on windows the executable might not be in $PATH.ManualDownload the latest version frompypiUntar the fileFrom that directory run with administrator rightspythonsetup.pyinstallHow to cite@misc{pympi-1.70,
    author={Lubbers, Mart and Torreira, Francisco},
    title={pympi-ling: a Python module for processing ELANs EAF and Praats TextGrid annotation files.},
    howpublished={\url{https://pypi.python.org/pypi/pympi-ling}},
    year={2013-2021},
    note={Version 1.70}}AuthorsMart Lubbers (mart at martlubbers.net)
and
Francisco Toreirra (francisco.torreira at mpi.nl)and with contributions from:
sarpu, hadware, thomaskisler, mome, mimrock and xrotwang