Saravanan666/pypi-org huggingface dataset:
Package: pyregdom
pyregdom - Python library for Mozilla Public Suffix listA Python version ofusrflo’s regdom
libsto detect the
registered domain for a given domain name, based onMozillas effective
TLD listing.InstallationFrom source code:$ sudo python setup.py installUsing pip:$ pip install pyregdomUsage>>> import regdom

>>> regdom.get_registered_domain("mail.google.com")
'google.com'

>>> regdom.get_registered_domain("foobar.github.io")
'foobar.github.io'

>>> regdom.get_registered_domain("a.b.c.city.kawasaki.jp")
'city.kawasaki.jp'

>>> regdom.get_registered_domain("invalid_domain_name.com") # return None

>>> regdom.get_registered_domain("not-recognized-tld.smile")
'not-recognized-tld.smile'

>>> regdom.get_registered_domain("not-recognized-tld.smile", fallback=False) # return NoneUpdate the listSimply run the scriptgenerate_effective_tlds.pyunderscriptsdirectory, it will download and parse the latestMozilla Public
Suffix$ scripts/generate_effective_tlds.pyThen re-install the module from
source.You can also use your own list file:$ scripts/generate_effective_tlds.py your_own_list_file.datThe script doesn’t check for the format of the file so make sure you have it
in the same format defined atMozilla Public
List.Author of this module will also updatepyregdomon pypi every month
if there are changes in the list.Source codeSource code is hosted at Github, you can get a local copy of the development repository with:$ git clone https://github.com/huyphan/pyregdom
Package: pyregedit
pyregedit该项目用于操作注册表，读写注册表的键和值兼容windows 64位和32位代码在python2.7开发和测试，兼容python3。欢迎下载并测试博客地址：http://yshblog.com/blog/132使用方法：需要安装pywin32： pip install pywin32把pyregedit加入你的项目中代码示例#coding:utf-8importpyregeditroot=pyregedit.HKEY_LOCAL_MACHINEpath=r"SOFTWARE\Microsoft\test"reg=pyregedit.RegEdit(root,path)#判断键是否存在ifreg.check_key():#获取键(可用于其他操作)key=reg.get_key()else:#创建键key=reg.create_key()#创建值reg.create_value('test_name',pyregedit.REG_SZ,'this is a test code')#创建子键reg.create_sub_key('sub_test')#获取子键名称列表print(list(reg.get_sub_keys()))#获取全部值print(list(reg.get_values()))#根据具体名称获取某个值的数据print(reg.get_value('test_name'))#删除值reg.delete_value('test_name')#删除子键reg.delete_sub_key('sub_test')#删除当前键reg.delete_current_key()贡献者感谢hrpzcf的贡献！
Package: pyregex
pyregex is a command line tools for constructing and testing Python’s regular
expression. Features includes text highlighting, detail break down of match
groups, substitution and a syntax quick reference.Requires an ANSI terminal or Python Win32 Extensions on Windows for coloring.2006-03-13 note about network outagesDue to intermittent network outages, please use the alternative mirror URL [
http:
//members.dslextreme.com/users/tungwaiyip/software/pyregex.html] if the main
URL
does not response.
Package: pyregexp
pyregex(p)What is itPyregex(p) is a backtracking Regex Engine complete with all major regular-expressions' features.It is composed of a Lexer, a Parser (a TDRD parser) and finally the Engine.Features implemented includes:FeatureSyntaxmatch start^...match end...$escaping\grouping(...)named group(?<name>...)non-capturing group(?:...)alternativea|bwildcard.space\squantifiers? * +curly brace quantification{exact} {min,max} {,max} {min,}range element[^a-zA-Z059]Play with the engine:frompyregexp.engineimportRegexEnginereng=RegexEngine()reng.match('^my_(beautiful_)+regex','^my_beautiful_beautiful_beautiful_regex')
Package: pyregion
pyregion is a python module to parse ds9 region files.
It also supports ciao region files.Code:https://github.com/astropy/pyregionDocs:https://pyregion.readthedocs.ioPyPI:http://pypi.python.org/pypi/pyregionInstallation:pip install pyregionLead developer: Jae-Joon Lee ([@leejjoon](http://github.com/leejjoon))FEATURESds9 and ciao region files.(physical, wcs) coordinate conversion to the image coordinate.convert regions to matplotlib patches.convert regions to spatial filter (i.e., generate mask images)LICENSEAll files are under MIT License. See LICENSE.StatusNew regions packageSee also the in-developmentregionspackage
athttps://github.com/astropy/regionsa new astronomy package for regions based on Astropy.
Package: py-register-machine2
A Register Machine package for Python3You might take a look at thedocsfor a lot information about design, usage and the complete code documentation.Installing PyRegisterMachine2py_register_machine2is a python3 package, so all you need to do is to place the project folder in your$PYTHONPATH. You are able to get the pythonpath usingecho $PYTHONPATHandpython3-c"import sys; print(sys.path)".So you are able to install the package using:cd /usr/local/lib/python3.5/dist-packages/
git clone https://github.com/daknuett/py_register_machine2Or:python3 -m pip install py_register_machine2Using PyRegisterMachine2Using Prepared MachinesInpy_register_machine2.machinesis a bunch of modules providing a bunch ofregister machine definitionsthose are functions returning a 4-tuple:(processor, rom, ram, flash), maybe you need to invokeprocessor.setup_done().Creating Your Own MachinesIf the prepared machines do  not match your requirements you might want to create your own machines,
to do so you should study thedocs here.Instructionset, Machinecode and AssemblyThe Instructionset of a machine is defined by obhects inherited frompy_register_machine2.core.commands.BaseCommand,
a bunch of ready-to-use commands is inpy_register_machine2.commands.The processor reads one word of data for the opcode, decodes this opcode and reads n words of data for n arguments.
Machinecode can be witten usinglistobjects like this:program = [0x16, 0x01, 0x01] # using the py_register_machine2.commands.basic_commands instructionset
# this equals "ldi 0x01 ECR" and will halt the engine.This machinecode can be programmed to a persistent device (ROM or Flash) usingrom.program(program)
# or
flash.program(program)There is a basic Assembler inpy_register_machine2.tools.assembler.assemblerthat uses the KASM2 assembly language to generate
machiecode ( alistobject)The Assembler uses a configured Processor and an open stream to generate the machinecode:from io import StringIO
processor.setup_done()
progstr = "ldi 0x01 ECR"
asm = Assembler(processor, StringIO(progstr))
program = asm.assemble()Once the ROM is programmed (the Processor starts executing code in the ROM) you are able to run the code using:processor.run()
Package: pyregression
PyRegressionPyRegression is a python library for using in machine learning regressions. The first minimal launched version include nonlinear regression with K-Nearest Neighbor (KNN), Random Forest (RFO) and Support Vector Regression (SVR). Of course, you can use PyRegression for Multiple Linear Regression (MLR) too.The nonlinear methods include the searching of the best hyperparameters using k-fold cross validation. For more details visit the official documentation in pyregression.gitlab.ioInstallpip install pyregressionor if you prefer (recommended) install in a virtual environment:python3-mvenvvenv-pyregressioncdvenv-pyregressionsourcebin/activate

pipinstallpyregression# install dependenciespipinstallpandas
pipinstallsklearnExample code# import regression methodsfrompyregression.regressorsimportMLR,KNN,RFO,SVR# import dataset examplefrompyregression.datasetsimportload_soilmoisture# load dataset exampleX,y=load_soilmoisture()# do the regressions (test_size = 0.6 by default)mlr=MLR(X,y)knn=KNN(X,y)rfo=RFO(X,y)svr=SVR(X,y)# print predicted valuesforregressionin(mlr,knn,rfo,svr):print(regression["y_pred"])
Package: pyRegurgitator
pyRegurgitator - Tools for analysing python codeWebsite/docs:http://pythonhosted.org/pyRegurgitatorCode on github:https://github.com/schettino72/pyRegurgitator/Toolsasdlview: generates a HTML page with python’s ASDL info.astview: generates a HTML page with a python module’s AST info.py2xml: convert python code to XML.Check thedocslicenseThe MIT License
Copyright (c) 2010-2014 Eduardo Naufel Schettinosee LICENSE filedevelopers / contributorsEduardo Naufel Schettinoinstall$ pip install pyRegurgitatoror download and:$ python setup.py installtestsTo run the tests:$ py.test
Package: pyregx
pyregxMIT LicenseCopyright (c) 2023 Sergen ÇepoğluPermission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Package: pyrehol
[![Build Status](https://travis-ci.org/uber/pyrehol.svg)](https://travis-ci.org/uber/pyrehol)**pyrehol** is a python library for generating [FireHOL](http://firehol.org) config files. It's perfect if you want to combine the human-readable, reproductable, and reliable nature of FireHOL with some kind of automated cluster management system (for example, [clusto](http://clusto.org)) without having to write super-complicated Bash.### Usage```pythonfrom pyrehol import Pyreholfrom somewhere_else import clustomy_clusto_object = clusto.get_by_name(socket.gethostname())p = Pyrehol()with p.add_interface("public", "eth0") as i:i.set_protection('strong')for service in my_clusto_object.attr_values(key='firehol', subkey='allowed-services'):i.add_server(service, 'accept')with p.add_interface("private", "eth1") as i:i.add_server('ssh', 'accept')with open('/etc/firehol/firehol.conf', 'w') as f:p.emit(f)```### LicenseThis software is Copyright &copy; 2014 Uber Technologies, Inc.This software is licensed under the Expat (MIT) license. More information can be found in [LICENSE.txt]().### FAQ#### When is FireHOL 2.0 support coming?Real soon now
Package: pyreka
:construction::wrench: Installationpipinstallpyreka:page_with_curl: Usagepyrekacan be used to search functions using function names and docstrings in packages and directories.For example to search innumpythe following commands could be issued from the command line.Firstly, install numpypipinstallnumpyand then from the same environment search the numpy package for keywords:pyrekanumpy"sort array indices"First you will be asked if you are searching a local directory or for a package in your environment, then you should see a number of functions returned, along with the file that they live in and the line number for each returned function you can also scroll their docstrings.:confetti_ball:
Package: pyrel
Pyrel is an efficient python library for working with and manipulatingbinary relations. Pyrel exposes the C libraryKurewhich provides a very fast implementation of binary relations based onBinary Decision Diagrams.The following operations of relation algebra are provided:emptyuniversalidentitymeet (intersection)join (union)transpose (converse)complement (negation)compose (multiplication)equalsisSupersetisSubsetisStrictSupersetisStrictSubsetInstallationusing pip:pip3installpyrelor downloading with git:gitclonehttps://github.com/Peter-Roger/pyrel.gitcdpyrel/python3setup.pybuildinstallRequirementsPyrel works on Ubuntu and macOS. It has not been tested on other systems
but it is possible it could work, perhaps with some modification.C Library Dependencies:glib-2.0gmpIf you are missing these libraries just install them with your package manager.Pyrel includes a modified version of Kure and its dependency Cudd-2.5.1
(Colorado University Decision Diagram) as source. As long as the aforementioned dependencies are installed in standard locations on your system, Kure will be
built automatically during installation.Quick StartThe following provides some examples as a tutorial on how to use pyrel.
For a complete description you should consult the documented modulesource code.Relations are represented as boolean matrices and can be visualised by printing them. An ‘X’ atcol xandrow ydenotes thatxis related toyin the relation. Contrariwise a ‘.’ denotes thatxis not related toy.Creating relationsimportpyrel# create a pyrel contextcontext=pyrel.PyrelContext()# create a new 3x3 empty relationrel=context.new(3,3)print(rel).........Setting bits# a list of ordered pairsbits=[(0,0),(0,1),(0,2)]rel=context.new(3,3)rel.set_bits(bits)print(rel)# set bits at randomrel.random()print(rel)# unsets all bitsrel.clear()print(rel)XXX.......X...XX.X.........# set bits at creationbits=[(0,0),(0,1),(0,2)]rel=context.new(3,3,bits)print(rel)# set single bitrel.set_bit(2,2)print(rel)# unset bitrel.set_bit(0,1,yesno=False)print(rel)# unset bitsrel.set_bits([(0,0),(2,2)],yesno=False)print(rel)XXX......XXX.....XX.X.....X..X......Operationsrel=context.new(3,3).identity()print(rel)r=context.new(3,3,[(0,0),(0,1),(0,2)])print(r)s=r.transpose()print(s)m=r1.meet(r2)print(m)j=r1.join(r2)print(j)X...X...XXXX......X..X..X..X........XXXX..X..r=context.new(3,3,[(0,1),(0,2),(2,1)])print(r)s=context.new(3,3,[(1,1),(2,2)])print(s)g=r.composition(s)print(g)g.isSubset(g.universal()).XX....X.....X...X.XX....X.>>>TrueVectorsA vector is a row constant relation. All columns are identical. It represents a subset.rel=new(5,5)rel.vector(2)# row 2 (0-indexed)print(rel)rel.vector_next()print(rel)..........XXXXX.........................XXXXX.....Possible Future Workimport relations from a fileexport relations to a fileextend support for more relation operations
Package: pyrelayctl
PyRelayCtl is a library to control FTDI FT245R based relay boards.
This includes the SainSmart 4-channel 5V USB relay board.
The outlets can be switched on and off via USB.The library depends on PyUSB (https://github.com/walac/pyusb).On Debian PyUSB can be installed using:apt-get install python3-usbPer default, only root is allowed to use devices directly, therefore the
library also only works as root.To allow group relayctl access create file /lib/udev/rules.d/60-relayctl.rules
with the following content:SUBSYSTEM=="usb", ATTR{idVendor}=="0403", ATTR{idProduct}=="6001", GROUP="relayctl", MODE="660"Then reload the udev rules with:udevadm control --reload-rules
Package: pyreleaser-io
pyreleaser_ioStatusThis project doesalmostnothingOverviewThis project is a response to a twitter post over at:https://twitter.com/garethr/status/1190968258712809472Aim is to make creating, testing, publishing python projects a bit easier!Current development focusCreating projectsWhat's working so far?TaskStatusCreate a new project (GH)noCreate a new project (files)yes...plain/pipenv ready for pypiyes...CLI executable ready for pypino...Flaskno...Docker (for generated projects)no...setup.py wizardnoTesting/CI setupnowheel buildingnowheel uploadingnosecure credential storage (keyring)nosupport for bitbucket cloudnosupport for bitbucket servernosupport for gitlabnosupport for travisnosupport for circlecino*AAS for use by other systemsnoprogramatic settings file creationnoautoinstall dependenciesnocreate project with no vcsyessettings file format?---pyreleaser_io:github:token:yourgithubtokenQuickstartInstall pyreleasersudoyuminstallpython3
pip3installpyreleaser_io--user
pip3installpipenv--user
pip3installpyyaml--user
pip3installjinja2--user
pip3installpygithub--usertodo: automatic dependency installationCreating a project...
Package: py-releases
py-releasesThis package shows available python versions and your download links.InstallationUse thepipto install.pipinstallpy-releasesUsagefrompython_releasesimportReleasesreleases=Releases()# most recent stable versionstable=releases.last_stable# version under developmentdev=releases.dev# a dict with all python versionsall_versions=releases.all# Returns the download link to a specified versionreleases.search("3.9.6")LicenseGPL-2.0
Package: pyrelp
PyRELP===A python wrapper of librelp.Overview===This is a wrapper of the [librelp](http://www.librelp.com/) library.Pyrelp uses *ctypes* for accessing the *librelp* C functions directly. Sotechnically this is not a python module of pyrelp, but a wrapper.The C sources of *librelp* are included in the source distribution package andwill be built by *setuptools* when installing with e.g. pip.Only *python2* is supported, since dummy extension module is lacking *python3*support for now.Client---Send a message to a RELP server:> pyrelp <ip> <port> <msg>Server---There is no default server implementation. Use the `Server` class to implementone.Example RELP Server:```pythonfrom pyrelp import pyrelpdef rcv(host, ip, msg):print(msg)s = pyrelp.Server(20514, rcv)s.run()```Development & Testing===Run:> makeDependencies---autotoolslibtooldockerrobotframework
Package: py-reminder
py_reminderThis is a Python decorator that can send email for various purpose.By the way, I am also planning to expand the receiving channels from email to Message, Telegram, Wechat, or even more.If you are interested, let's work together!IntroductionOften we have some time-consuming script, and we want to leave it running for a while without having to check every few minutes if it has been completed.This package will offer you aone-lineexperience (a function decorator) of sending you email report with customized information.This is definitely an easy function, I believe many guys have written their own equivalent one. What I did is to simplify it into a decorator, so it is now even more convenient!Installationpipinstallpy_reminder==1.0.1Initial configurationWe strongly recommend to use an unimportant mailbox to send messages, since the password is going to be stored in plain text. We're looking for ways to work around this - you're welcome to help!For the first time, you should specify configuration:frompy_reminderimportconfigconfig(address='your_email@example.com',password='123456',smtp='smtp.example.com',port=999,# currently it should be non-SSL portdefault_to='receiver@example.com')You can ignoredefault_to. It will set to be the same asaddressby default.If you receive a testing email, then the configuration is done.Sample codefrompy_reminderimportmonitor@monitor('This is a task')deffoo():return0foo()If you want to specify the receiver:@monitor(task='This is a task',to='receiver@example.com')Another way to use it without decorator:frompy_reminderimportsend_emailsend_email(task="This is a task")And you will see:For error, you will see:Email Service ProviderGMailI used a new registered account and was banned after one day.Haven't tested personal account yet.FoxmailI use my personal account and it is all good up to now (two months).163It works. Port should be25.Tests on other email vendors are welcome!I have some worked config files. You can simply copy paste it to the~/.configthen skip the configuration process. If you would like to use the config files, just send email to me.
Package: pyremora
PyRemoraThis is a simple Python library to handle theRemoraAPI.The main objective is to include it intoHome Assistantcomponents to manage heaters using theFil Pilotetechnique and fetchTeleInfoinformation.RemoraRemora is a IoT/DIY solution using a dedicated hardware and software to:get electrical consumption information via theTeleInfomanage heating via theFil PiloteLink:https://github.com/hallard/remora_soft
Package: pyremoteplay
pyremoteplayPython PlayStation Remote Play APIDocumentationAboutThis project provides an API to programmatically connect to and control Remote Play hosts (PS4 and PS5). The low-level networking internals is written using the Asyncio framework. In addition it includes an optional GUI, allowing to view the live stream and control the host through keyboard/mouse input. This library is based on the C/C++ projectChiaki.FeaturesAPI to programatically control host and expose live audio/video streamRegistering client for Remote Play on the hostInterface for controlling the host, which emulates a DualShock controllerAbility to power off/on the host if standby is enabledGUI which displays the live stream and supports keyboard/mouse inputSupport for controllersRequirementsPython 3.8+OS: Linux, Windows 10Note: Untested on MacOSNetwork RequirementsThis project will only work with local devices; devices on the same local network.
You may be able to connect with devices on different subnets, but this is not guaranteed.GUI DependenciesThe GUI requires dependencies that may be complex to install.
Below is a list of such dependencies.pyav (May require FFMPEG to be installed)PySide6uvloopis supported for the GUI and will be used if installed.InstallationIt is recommended to install in a virtual environment.python3 -m venv .
  source bin/activateFrom pipTo install core package run:pip install pyremoteplayTo install with optional GUI run:pip install pyremoteplay[gui]From SourceTo Install from source, clone this repo and navigate to the top level directory.pip install -r requirements.txt
  python setup.py installTo Install GUI dependencies run:pip install -r requirements-gui.txtSetupThere are some steps that must be completed to use this library from a user standpoint.Registering a PSN AccountLinking PSN Account and client to the Remote Play HostConfiguration files are saved in the.pyremoteplayfolder in the users home directory. Both the CLI and GUI utilize the same files.CLI SetupRegistering and linking can be completed through the cli by following the prompts after using the below command:pyremoteplay {host IP Address} --registerReplace{host IP Address}with the IP Address of the Remote Play host.GUI SetupRegistering and linking can be performed in the options screen.UsageTo run the terminal only CLI use the following command:pyremoteplay {host IP Address}To run the GUI use the following command:pyremoteplay-guiNotesVideo decoding is performed by the CPU by default. Hardware Decoding can be enabled in the options screen in the GUI.You may have to installffmpegwith hardware decoding enabled and then installpyavwith the following command to allow for hardware decoding:pip install av --no-binary avBaseline measurementsThe CLI instance runs at 5-10% CPU usage with around 50Mb memory usage according totopon this author's machine: ODroid N2.Known Issues/To DoText sending functionsAdd support for HDRAudio stutters
Package: pyremotevbox
Python module to communicate with a remote virtualbox over webservice.Some examples:>>>importpyremotevbox>>>host=pyremotevbox.VirtualBoxHost('10.0.2.2')>>>bm1=host.find_vm('baremetal1')>>>bm1.get_power_status()'PoweredOff'>>>bm1.start()>>>bm1.get_power_status()'Running'>>>bm1.stop()>>>bm1.get_power_status()'PoweredOff'>>>bm1.get_boot_device()'Network'>>>bm1.set_boot_device(pyremotevbox.DEVICE_DISK)>>>bm1.get_boot_device()'HardDisk'>>>bm1.set_boot_device(pyremotevbox.DEVICE_NETWORK)>>>bm1.get_boot_device()'Network'History0.1.0 (2014-12-08)First release on PyPI.