Saravanan666/pypi-org huggingface dataset:
Package: pylitterbot
pylitterbotPython package for controlling Whisker connected self-cleaning litter boxes and feeders.This is an unofficial API for controlling various Whisker automated robots. It currently supports Litter-Robot 3 (with connect), Litter-Robot 4 and Feeder-Robot.DisclaimerThis API is experimental and was reverse-engineered by monitoring network traffic and decompiling source code from the Whisker app since no public API is currently available at this time. It may cease to work at any time. Use at your own risk.InstallationInstall using pippipinstallpylitterbotAlternatively, clone the repository and runpoetryinstallUsageimportasynciofrompylitterbotimportAccount# Set email and password for initial authentication.username="Your username"password="Your password"asyncdefmain():# Create an account.account=Account()try:# Connect to the API and load robots.awaitaccount.connect(username=username,password=password,load_robots=True)# Print robots associated with account.print("Robots:")forrobotinaccount.robots:print(robot)finally:# Disconnect from the API.awaitaccount.disconnect()if__name__=="__main__":asyncio.run(main())which will output something like:Name: Litter-Robot Name, Serial: LR3C012345, id: a0123b4567cd8eTo start a clean cycleawaitrobot.start_cleaning()If no exception occurred, your Litter-Robot should now perform a clean cycle.Currently the following methods are available in the Robot class:refresh()start_cleaning()reset_settings()set_panel_lockout()set_night_light()set_power_status()set_sleep_mode()set_wait_time()set_name()get_activity_history()get_insight()TODOImprove support for Litter-Robot 4Improve support for Feeder-RobotSupport MeI'm not employed by Whisker and provide this python package as-is.If you don't already own a Litter-Robot, please consider usingmy affiliate linkto purchase your own robot and save $25!If you already own a Litter-Robot and/or want to donate to me directly, consider buying me a coffee (or beer) instead by using the link below:
Package: pylity
pylityGetting Started »Report a Bug·Request a Feature.Ask a QuestionAboutThepylitypackage is a set of utility and common functions for Python.pylitymeansPython Utility.When we work on different projects, there are usually functions that arecommonbetween the projects. Functions that we generally call Utility or helpers or something like that. Functions that areindependentand can be used in different places.Well, instead of copying and pasting these functions in a new project every time, it is better to have a package that gathers all these together so that we can install and use themeasily. This is the goal of this project. :)Getting StartedInstallationUse pip to install package:pipinstallpylity--upgradeUsagePrerequisitesPlease note that this package useson_railspackage for most functions.on_railsis an easy and valuable package for bettererror management. If you are not familiar with this package, you should read its documentation.SampleA set of different functions are grouped into relatedclasses.
Import any class you want, then use the functions.
For example:frompylityimportFunctionFunction.is_func_valid(lambda:None)# returns TrueFunction.get_num_of_params(lambdaa,b,c:None)\.on_success(lambdanum_of_params:print(f"Number of parameters is:{num_of_params}"))\.on_fail(lambdaresult:print(f"An error occurred:\n{result}"))CHANGELOGPlease see theCHANGELOGfile.RoadmapSee theopen issuesfor a list of proposed features (and known
issues).Top Feature Requests(
Add your votes using the 👍 reaction)Top Bugs(
Add your votes using the 👍 reaction)Newest BugsSupportReach out to the maintainer at one of the following places:GitHub issuesProject assistanceIf you want to saythank youor/and support active development of pylity:Add aGitHub Starto the project.Tweet about the pylity.Write interesting articles about the project onDev.to,Mediumor your
personal blog.Together, we can make pylitybetter!ContributingFirst off, thanks for taking the time to contribute! Contributions are what make the free/open-source community such an
amazing place to learn, inspire, and create. Any contributions you make will benefit everybody else and aregreatly
appreciated.Please readour contribution guidelines, and thank you for being involved!Authors & contributorsThe original setup of this repository is byPayadel.For a full list of all authors and contributors,
seethe contributors page.Securitypylityfollows good practices of security, but 100% security cannot be assured.pylityis provided"as
is"without anywarranty.For more information and to report security issues, please refer to oursecurity documentation.LicenseThis project is licensed under theGPLv3.SeeLICENSEfor more information.
Package: pylivarot
Python 3 bindings to the inkscape libraries lib2geom and livarot.Installationmanylinux whls have been published to pypi, there's likely a whl for your distro/python version at:pipinstallpylivarotOn windows,python3setup.pybdist_wheelshould work in theory, but I currently have not gotten this working (boost is not configured right)UsageDeclaring Path Vectors:frompylivarotimportpy2geom# using a path builder_path_builder=py2geom.PathBuilder()_path_builder.moveTo(py2geom.Point(0,0))_path_builder.lineTo(py2geom.Point(10,20))_path_builder.quadTo(py2geom.Point(10,20),py2geom.Point(20,50))_path_builder.curveTo(py2geom.Point(10,20),py2geom.Point(20,50),py2geom.Point(40,80))_path_builder.flush()result=_path_builder.peek()# using an SVG d stringdiagonal_line="M 0,0 L 3,3 z"pv_diagonal_line=py2geom.parse_svg_path(diagonal_line)Format an SVG d string:frompylivarotimportpy2geompv=py2geom.PathVector()target_d=py2geom.write_svg_path(pv)Apply a transform:frompylivarotimportpy2geompath_d="M 0,0 L 0,2 L 2,2 L 2,0 z"pv_path=py2geom.parse_svg_path(path_d)_affine=py2geom.Affine()_affine*=py2geom.Translate(py2geom.Point(2,4))_affine*=py2geom.Rotate(3.14159/4.0)for_pathinpv_path:for_curvein_path:_curve.transform(_affine)Boolean operationsfrompylivarotimportpy2geom,union,intersection,differencepath_v_a=py2geom.parse_svg_path("M 0,0 L 0,2 L 2,2 L 2,0 z")path_v_b=py2geom.parse_svg_path("M 0.5,0.5 L 0.5,1.5 L 1.5,1.5 L 1.5,0.5 z")union_pv=union(path_v_a,path_v_b)inters_pv=intersection(path_v_a,path_v_b)diff_pv=difference(path_v_a,path_v_b)Path Vector Bounding box (also works on Paths)frompylivarotimportpy2geomopt_bbox=path_vector.boundsExact()# or pv.boundsFast()bbox=py2geom.Rect(opt_bbox[py2geom.Dim2.X],opt_bbox[py2geom.Dim2.Y])print(bbox.left(),bbox.right(),bbox.top(),bbox.bottom(),bbox.width(),bbox.height())Inkscape's get_outline and get_outline_offset functionalityfrompylivarotimportpy2geom,get_outline,get_outline_offsetoutline=get_outline(path_vector)outline_offset=get_outline_offset(path_vector,stroke_width)
Package: pyLiveKML
What is pyLiveKML?pyLiveKML is an implementation of Google'sKeyhole Markup Language(KML) that enables an
(approximately) live feed of geospatial information intoGoogle Earth Pro(GEP). GEP is updated on the fly using an implementation of the mechanism described in theKML specification.Several simple evaluation apps are included with the pyLiveKML source. These projects use theFlaskapplication server, and its integrated development webserver, to
construct and publish KML files to GEP. Re these evaluation apps, the reader should be conscious that:<NetworkLinkControl>KML tags are used to create, change and delete content in GEP.GEP only accepts<NetworkLinkControl>tags from an HTTP server for security reasons; local files are forbidden.Any HTTP server that is able to dynamically generate content can be used.Flaskis used as the application/webserver for the evaluation apps, but
the authors of Flask,Pallet Projects, make it very clear that their development HTTP
server is not suitable for production. If you're doing anything more than dev and/or testing, you should probably
heed their advice.GIS and OS CompatibilitypyLiveKML has been tested only with Google Earth Pro on Microsoft Windows 10. It is possible that it may work with
other KML-compliant GIS's and/or other operating systems, but that has not been tested by the author and is unknown
at this time.Has the entire KML specification been implemented?No. Only a subset of the KML classes that are described in theKML specificationhas been implemented at this time;
seethe pyLiveKML documentationfor a list.  The subset was chosen based on the
author's personal experience, i.e. what has proven "useful" to me in the past. The list of supported classes could
certainly be expanded if there is interest.Evaluation ApplicationsSeveral evaluation or example applications are available onGithubDocumentationLicenceContributionsI'm willing to do a certain amount of work expanding the KML classes (and, in some cases, the fields) that are
supported by pyLiveKML.
Package: pylivemaker
Python package for manipulating LiveMaker 3 game resources.
Specifically intended to work with LiveNovel VN’s, but extraction
should also work for other LiveMaker games.Based on tinfoil’sirl.Requires Python 3 (3.8 and later).Free software: GNU General Public License v3Documentation:https://pylivemaker.readthedocs.io.FeaturesExtract files from a LiveMaker .exe or .dat file.Dump LSB files to human-readable text or XML (similar to LiveMaker’s XML .lsc format).Extract LiveNovel LNS scripts from LSB files.Compile (modified) LNS scripts and insert them into LSB files.Patch (modified) LSB files into an existing .exe or .dat file.Licensepylivemaker / irlCopyright (C) 2020 Peter RowlandsCopyright (C) 2014 tinfoilThis program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.PythonCopyright (c) 2001-2019 Python Software Foundation. All rights reserved.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.
Package: pylive-played-clip
pylive-played-clip.pyDetailsOriginal Author:Scott SelbergCurrent Owner:Scott SelbergIntroductionThis is a python package that deploys a command line tool to monitor
Ableton Live clips throughAbletonOSCandpylive. When a clip finishes playing,
this utility can change the color to visually flag the clip as having been
played. When the global playback is stopped, the utility will reset all of the
clips to the color they had before it changed them.For more information,see the documentation on Read the DocsLicenseBSD 3-ClauseAuthor InformationScott Selberg
Package: pylivereloader
pylivereloader is a lightweight script reloader.
It’s designed to maintain a running script at it’s live version.
For example if you’re coding the script to maintain live with LiveReloader the script you’re coding will always run at it’s latest version based on his last modification time.InstallingInstall and update usingpip:pip install -U pylivereloaderA Simple ExamplefrompylivereloaderimportLiveReloadermaintainer=LiveReloader("myscript",safe_reload=True,logging=True)defdo():myscript.function()maintainer.keep_live(do)LinksWebsite:https://github.com/Z3R0xLEGENDOfficial chat:https://discord.gg/VeeZnVYReleases:https://pypi.org/project/pylivereloader/
Package: pyLivestatus
pyLivestatusThis package allows to accessCheck MK Livestatusvia pythonUsagefrompyLivestatusimportLivestatuslivestatus=Livestatus('127.0.0.1','6557')# host and port of livestatus socketlivestatus.get_hosts()# return array with details for all hostslivestatus.get_host('my_host')# return details for host 'my_host'livestatus.get_services('my_host')# return details for every service of host 'my_host'
Package: pyliveupdate
PyLiveUpdatePyLiveUpdateis tool to help you modify your running python code without stopping it.
It is useful for modifying long-running server programs in production with zero downtime.
Some modification scenario includes: inject code to profile the runtime of certain lines of code;
inject code to print out a variable for debugging; apply a patch without restarting.Installpip install pyliveupdateHow to usePut these two lines of code in your server program and run itfrom pyliveupdatescripts import UpdateStub
UpdateStub().start()Start a controller to modify it!> pylu-controller -l 127.0.0.1:50050Some predefined modification available in the controller> FuncProfiler.profile('__main__.**') # inject the time profiling code into all functions in __main__
> LineProfiler.profile('__main__.bar', [11, 12]) # inject time profiling code into certain lines
> FuncDebugger.debug('__main__.bar') # inject code to print out function parameter and return value
> LineDebugger.debug('__main__.bar', [11, 12]) # inject code to print out variables in certain lines
> VarDebugger.debug('__main__.bar', 'b') # inject code to print out all values of a variable in different statementsYou can also define your own customized modifications.Customized modificationThere are in general two kinds of modification: instrument and redefine:Instrument code into existing functionsfrom pyliveupdate.update import Instrument, UpdateManager
def _line_after(a):
    print(a)
update = Instrument('__main__.bar', 
                    {('line_after', [12, 14]): _line_after})
UpdateManager.apply_update(update)The code injects aprint(a)in line 12 and 14 in function__main__.bar.Redefine (patch) existing functionsfrom pyliveupdate.update import Instrument, UpdateManager
def new_bar(a):
    print('new_bar', a)
update = Redefine('__main__', None, {'__main__.bar':new_bar})
UpdateManager.apply_update(update)The code redefines__main__.barwithnew_bar.Revert the modificationPyLiveUpdate also support to revert a modification on the fly:> LU.ls() # list all modification
> LU.revert(1) # revert modifation with id 1
Package: pylj
Visit thepyljwebpage for more information about pylj.To build from source:pipinstall-rrequirements.txtpythonsetup.pybuildpythonsetup.pyinstallpythonsetup.pytestCheck out our publication in theJournal of Open Source Educationto find out more about pylj.Be aware! pylj runs within aJupyter notebook, and therefore requires this to run. We advise installinganaconda pythonas this includes many required libraries as well as the Jupyter notebooks framework.If you need any help using pylj contact arm61 in thepylj/HELP gitter chatroom.Check out someexamplesof how pylj can be used in undergraduate teaching exercises.BadgesJOSE DOILatest ReleaseDocumentationLicenseBuild StatusCoverage StatusGitter
Package: pyllars
pyllarsThis project contains supporting utilities for Python 3.InstallationThis package is available on PyPI.pip3 install pyllarsAlternatively, the package can be installed from source.git clone https://github.com/bmmalone/pyllars
cd pyllars
pip3 install .(The "period" at the end is required.)If possible, I recommend installing inside a virtual environment or with conda. Seehere, for example.Please seethe documentationfor more details.pytorch and ray installationThepytorch.torchsubmodule requirespytorchandray-tune. Due to the
various configuration options (CPU vs. GPU, etc.), thepyllarsinstallation
does not attempt to install these dependencies; they need to be installed
manually, though this can be done after installingpyllarswith no problems.
I suggest using these within an anaconda or similar environment. Please see the
official documentation for installingpytorchandray-tunefor details.
Package: pyllector
pyllectorModifided aiohttp.ClientSession. More Safety.InstalationpipinstallpyllectorExamplefrompyllectorimportApiCollectorfrommodelsimportHttpMethod,ContentTypeimportasyncioasyncdefmain():api=ApiCollector('https://some-api.com/v2/',main_params={'some_api_key':'some...'})data=awaitapi.push('some_api_method',content_type=ContentType.JSON,http_method=HttpMethod.POST,params={'some_method_param':'some_value'},)print(data['some keys'])asyncio.run(main())ApiCollector check allmost http errors,
and repeat requestlimittimes until he gets response,
or will return None elselimitis 0.
Package: pyllegro
pyllegro=====.. image:: https://travis-ci.org/oczkers/pyllegro.png?branch=master:target: https://travis-ci.org/oczkers/pyllegropyllegro is a simple python wrapper for allegro api.It is written entirely in Python.Documentation-------------Documentation will be available soon at http://pyllegro.readthedocs.org/.Usage-----empty :-(License-------GNU LGPLv3.. :changelog:Changelog---------0.0.1 (2015-11-26)++++++++++++++++++* init
Package: pylleida
pylleidaA HTTP Python client to use the Lleida.net API. This API consists of several modules,
each one related to a different set of services. More information can be found at the
officialAPI listing website.Free software: MIT licenseDocumentation:https://pylleida.readthedocs.io.DisclosureThis Python library has been developed by thereclamador.esteam without any previous collaboration agreement with Lleida.net. The code in this repository will be updated according to the updates on the Lleida.net APIs, initially based on the internal requirements of thereclamador.esteam.FeaturesMailCert API: lets the client check the status of the PDF email certificate documents emitted by the Lleida.net MailCert service. Currently implemented methods:get_default_settings: retrieves a list of the MailCert service’s configuration parameters associated to the account used by the PyLleida client.list_pdf: fetches a listing of PDF documents (email certificates), indicating their metadat, status and other identification data.download_pdf: fetches the binary data of a given PDF document (email certificate) if possible, otherwise returns an error response.CreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.1.0 (2017-11-07)First release on PyPI.
Package: pyllelize
PyllelizeEasily parallelize your Python functions withpyllelize. Whether you're dealing with CPU-bound tasks or I/O-bound asynchronous functions,pyllelizeoffers a simple interface to distribute your workload efficiently.Key FeaturesThread-based Parallelization: Distribute CPU-bound tasks across multiple threads with ease.Process-based Parallelization: Harness the full power of multi-core processors by distributing tasks across separate processes, bypassing Python's Global Interpreter Lock.Asynchronous Execution: Seamlessly parallelize I/O-bound asynchronous tasks.Error Handling: Safely capture and report errors without halting the execution of other tasks.InstallationpipinstallpyllelizeQuick StartThread-based Executionfrompyllelizeimportparallel_execute_threadsdefmultiply(a,b):returna*barguments=[(1,2),(3,4),(5,6)]results=parallel_execute_threads(multiply,arguments)print(results)# Possible output: [2, 12, 30]Process-based Executionfrompyllelizeimportparallel_execute_processesdefadd(a,b):returna+barguments=[(1,2),(3,4),(5,6)]results=parallel_execute_processes(add,arguments)print(results)# Possible output: [3, 7, 11]Asynchronous Executionimportasynciofrompyllelizeimportparallel_execute_threads_asyncasyncdeffetch_data(a,b):awaitasyncio.sleep(1)# Simulating async I/O operationreturna+barguments=[(1,2),(3,4),(5,6)]results=parallel_execute_threads_async(fetch_data,arguments)print(results)# Possible output after 1 second: [3, 7, 11]LicenseThis project is licensed under theMIT License.
Package: pylleo
A collection of python utilities for working with data from Little
Leonardo accelerometersQuickstartpylleois currently only available forPython 3and has not been
extensively tested with different versions. For more detail, please refer to
the documentation.Installpip3 install pylleoLoad dataimportpylleopath_dir='./'meta=pylleo.lleoio.read_meta(path_dir,'W190PD3GT',34840)data=pylleo.lleoio.read_data(meta,path_dir)Calibration appRun thepylleocalibration application with thepylleo-calcommand in the
terminal:pylleo-calDocumentationThe latest documentation forpylleocan be foundhereLicenseThis project is licensed under the terms of the MIT license. Please see the
license file in this repository.
Package: pyllist
pyllist is a Python module providing basic linked list data structures.
Collections implemented in the pyllist module perform well in problems
which rely on fast insertions and/or deletions of elements in
the middle of a sequence.
For this kind of workload, they can be faster than collections.deque
or standard Python lists.This extension requires Python 2.x or 3.x. It should work with any
implementation (tested with CPython and PyPy).
Note however, that for CPython there is a much faster C extension
module with the same API athttp://github.com/ajakubek/python-llist/Currently pyllist provides the following types of linked lists:dllist - a doubly linked listsllist - a singly linked listFull documentation of these classes is available at:http://packages.python.org/pyllist/To install this package, either run “pip install pyllist”,
or download it manually fromhttp://pypi.python.org/pypithen unpack the sources and compile them with “python setup.py install”.The most current development version is available at:https://github.com/rgsoda/pypy-llist/Bugs can be reported at:https://github.com/rgsoda/pypy-llist/issuesThis software is distributed under the MIT license.
Please see the LICENSE file included in the package for details.
Package: py-lll
py-lllAn LLL compiler for Python.Read more in thedocumentation on ReadTheDocs.View the change log.Quickstartpipinstallpy-lllDeveloper SetupIf you would like to hack on py-lll, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsCode StyleDocumentationDevelopment Environment SetupYou can set up your dev environment with:gitclonegit@github.com:ethereum/py-lll.gitcdpy-lll
virtualenv-ppython3venv
.venv/bin/activate
pipinstall-e.[dev]Testing SetupDuring development, you might like to have tests run on every file save.Show flake8 errors on file change:# Test flake8when-changed-v-s-r-1lll/tests/-c"clear; flake8 lll tests && echo 'flake8 success' || echo 'error'"Run multi-process tests in one command, but without color:# in the project root:pytest--numprocesses=4--looponfail--maxfail=1# the same thing, succinctly:pytest-n4-f--maxfail=1Run in one thread, with color and desktop notifications:cdvenv
ptw--onfail"notify-send -t 5000 'Test failure ⚠⚠⚠⚠⚠' 'python 3 test on py-lll failed'"../tests../lllRelease setupFor Debian-like systems:apt install pandocTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$How to bumpversionThe version format for this repo is{major}.{minor}.{patch}for stable, and{major}.{minor}.{patch}-{stage}.{devnum}for unstable (stagecan be alpha or beta).To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
master branch, except when releasing a beta (in which case the beta is released from master,
and the previous stable branch is released from said branch). To include changes made with each
release, update "docs/releases.rst" with the changes, and apply commit directly to master
before release.If you are in a beta version,make release bump=stagewill switch to a stable.To issue an unstable version when the current version is stable, specify the
new version explicitly, likemake release bump="--new-version 4.0.0-alpha.1 devnum"