Saravanan666/pypi-org huggingface dataset:
Package: pyrightfax
### Overview
This is a port of the RightFax Java API for Python. It allows you to programatically interact with a RightFAX server to send faxes and query their status.### Warranty
No Warranty. The Software is provided “as is” without warranty of any kind, either express or implied, including without limitation any implied warranties of condition, uninterrupted use, merchantability, fitness for a particular purpose, or non-infringement. YMMV, UAYOR, etc, etc, etc.### Disclaimer
I am in no way affiliated with RightFAX or OpenText (the company that owns RightFAX) and I do not make any claim or intend any infringement on any trademark or name owned by anyone.
Package: pyrim
About PyRimPyRim is a Simple and Efficient Image Manipulation Module.Author:Rounik MondalVersion:0.1InstallationpipinstallpyrimFuntions UsedrotateImage-->Takestwopositionalargument(picture:str,degree:int)blurImage-->Takestwopositionalargument(picture:str,intensity:int)contourImage-->Takesonepositionalargument(picture:str)edgeEnhanceImage-->Takestwopositionalargument(picture:str)embossImage-->Takestwopositionalargument(picture:str)findEdgesImage-->Takestwopositionalargument(picture:str)Arguments Usedpicture-->str:ImageSourceoftheimagefilewithformatwhichneedstobeedited
degree-->int:Degreetowhichthepictureshouldberotatedin"rotateImage"Method
intensity-->int:Intensityoftheblurwhichshouldbeimplementedontheimagein"blurImage"MethodHow To Useimportpyrimpyrim.rotateImage("yourImage.format",int)#--> example : pyrim.rotateImage("my_image.png", 90)pyrim.blurImage("yourImage.format",int)#--> example : pyrim.blurImage("my_image.png", 20)pyrim.contourImage("yourImage.format")#--> example : pyrim.contourImage("my_image.png")pyrim.edgeEnhanceImage("yourImage.format")#--> example : pyrim.edgeEnhanceImage("my_image.png")pyrim.embossImage("yourImage.format")#--> example : pyrim.embossImage("my_image.png")pyrim.findEdgesImage("yourImage.format")#--> example : pyrim.findEdgesImage("my_image.png")ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseMITCopyright (c) Rounik Mondal, All Rights Reserved
Package: pyRinexpro
pyRinexpropyRinexpro is a Python client for therinexproAPI.InstallpyRinexpro can be install using pippip install pyRinexproGetting StartedThe first step is to import the pyRinexpro module and to instantiate a pyRinexpro.Client using your API key>>>importpyRinexproasrnx>>>client=rnx.Client(API_KEY)From the client you can create a pyRinexpro.Session by uploading a session file>>>session=client.uploadSession("your_session_file")Once the session preprocessing is completed, which should take about 20 seconds, you can create and run a pyRinexpro.Process from this session>>>process=session.newProcess('ppp',mode='static')Once the process is completed you can get the resultat as a pyRinexpro.Log object>>>log=process.getLog()Trajectory can be transfom into a pandas.DataFrame object>>>log.trajectory.df()Results can be exported to geojson, kml and kmz>>>log.to_geojson('new_file.json')>>>log.to_kml('new_file.kml')>>>log.to_kmz('new_file.kmz')DocumentationDocumentation can be foundhere
Package: pyringbuf
A python extension implementing a circular/ring buffer of characters as a C
extension. It overwrites silently.AvailabilityCurrently, pyringbuf is available athttps://pypi.python.org/pypi/pyringbuf,
or viapip install pyringbuf. As this is a C extension, there is a
compilation step, so your system will need to be able to compile extension
modules for python.Usage>>> from ringbuf import RingBuffer
>>> R = RingBuffer(5)    #choose your buffer size
>>> R.push("a")          #push a single character into the buffer
>>> R.pop()              #pop a single character
'a'
>>> R.write("bcdef")     #fill buffer with many characters at once
>>> R.read(4)            #read many characters at once
'bcde'
>>> R.read(1)
'f'
>>> R.read(1)            #returns an empty string if the buffer is empty
''ImplementationFor the interested, this has been implemented as a pure C extension. The ring
buffer itself is implemented as a fixed length array of chars (8-bit signed),
dynamically allocated on the Python Heap on instantiation of a buffer. Read and
write indexes both increase monotonically, and addresses in the array are
determined usingindex% (modulo)buffer size. Writing more than the buffer
size at once throws an exception, otherwise if writing overtakes the read
index in the modulo space the buffer contents are silently overwritten.
Package: pyring-buffer
pyRing BufferA pure Python ring/circular buffer for bytes.pipinstallpyring-bufferfrompyring_bufferimportRingBufferrb=RingBuffer(10)# max 10 bytes# Put only 5 bytes inrb.put(bytes([1,2,3,4,5]))# Everything is thereassertrb.getvalue()==bytes([1,2,3,4,5])# Put a total of 12 bytes inrb.put(bytes([6,7,8,9,10,11,12]))# First 2 bytes are goneassertrb.getvalue()==bytes([3,4,5,6,7,8,9,10,11,12])
Package: pyrinnaitouch
pyrinnaitouch - python interface to Rinnai Touch Wifi ControllersThis is a python interface to theRinnai Touch Wifi Controller.The specifications for the interface are contained in theincluded pdf.UsageThis package is not a standalone application for end user implementation.The aim of this package is to be used by software developers and integrators to implement
the Rinnai Touch Wifi interface on home automation platforms (principally Home Assistant )CreditThepescea interfacewas used as a template and
for inspiration in developing this library (which got it off to a good start, so thanks!)
Package: pyrinter
PyrinterWhat is itPyrinteris a free open source python package for easy way to use physical printers.As for the moment the package only works on windows,
but in the future we want to make it cross platformHow to Installwith pip:pipinstallpyrinterHow to Usethe following code is ahello worldfor printing text using the printerPDFCreator(the printer name may be empty for default printer):frompyrinterimportPrinterfrompyrinterimportDocumentdoc=Document()doc.add_text("Hello World")printer=Printer("PDFCreator")printer.print_doc(doc)
Package: py-rinterpolate
Readme for py_rinterpolateThis package contains a python wrapper for the rinterpolate library by Rob Izzard (seehttps://gitlab.eps.surrey.ac.uk/ri0005/librinterpolate)Installation:Pre-requisitesThis code is written in python3.6, and uses NumPy.To use the package it is necessary to have the rinterpolate library installed properly (not the version shipped with binary_c).Installation of that package is straightforward:export DESTDIR=
export PREFIX=<location to install. like $HOME/.local>
make
make installMake sure that the location whererinterpolate-configis installed is included in your$PATHvariable. We useinterpolate-configto get the location of the header en library files.InstallationTo install this package via pip:pip install py-rinterpolateIf you build this package manually, then:python setup.py installUsinginstallwill install the package in the site_packages of the currently used python, which will be either the global python or a virtualenv.In case you don't have permissions to install things globally, you can append--userto either of the above lines, like:pip install --user py-rinterpolate

or

python setup.py install --userThis will then install it somewhere in your home folder. If you don't seem to be able to use the package after this, check whether the location where the package was installed is actually in the $PATH or $PYTHONPATH. More info on this is in:https://stackoverflow.com/questions/38112756/how-do-i-access-packages-installed-by-pip-userStructureThere are two parts to this module:_py_rinterpolateContains the python-C interface functions that communicate with the shared librarylibrinterpolate.so. The functions of this are defined in py_rinterpolate/py_rinterpolate_interface.cpy_rinterpolateContains the python class Rinterpolate which contains the controller functionality:it handles a table as input and will call_py_rinterpolatefunctions to interface with the actual library.It also handles handles the allocation of workspaces and the freeing of the memory, all via interface functions stored in the_py_rinterpolateC-extension.UsageThe entry point object is the Rinterpolate object. An example of usage is shown below, for a good explanation about the input tables please refer tohttps://gitlab.eps.surrey.ac.uk/ri0005/librinterpolatedata_table = <your table> # This data table is the table you interpolate on, can be a nested list or a nested numpy array of type float64  
input_list = <your coordinates> # list of the coordinates you want to have the interpolation to. Should contain <data_nparams> of items.

data_nparams = 3 # amount of parameters in the table
data_ndata = 10 # amount of different data points per line in the table

# setting up the interpolator and loading in the table
rinterpolator = Rinterpolate(data_table, data_nparams, data_ndata)

result = rinterpolator.interpolate(input_list)
Package: pyrinth
PyRinthA library to interact with modrinth's v1 and v2 APIsFeatures:Compatible with both v1 and v2 APIsAutomatic request caching and refreshing with configurable intervalLazy population of objects to minimize API callsDocumentationInstallingFrom PyPi$pipinstallpyrinthFrom source$pipinstallgit+https://gitlab.com/ENDERZOMBI102/pyrinth.git
Package: pyriodic-aflow
Introductionpyriodic-aflowis an adapter that makes thecrystal
prototypesfound in theAFLOW
projectavailable using the API of thepyriodicpython library.This project is not affiliated with AFLOW and merely provides a
streamlined way to access the data using a python interface.InstallationInstallpyriodic-aflowfrom source:pip install git+https://github.com/klarh/pyriodic-aflowCitationThe AFLOW developers request that you cite the following papers when
using data from their database:M. J. Mehl, D. Hicks, C. Toher, O. Levy, R. M. Hanson, G. L. W. Hart, and S. Curtarolo, The AFLOW Library of Crystallographic Prototypes: Part 1, Comp. Mat. Sci. 136, S1-S828 (2017).(doi=10.1016/j.commatsci.2017.01.017)D. Hicks, M. J. Mehl, E. Gossett, C. Toher, O. Levy, R. M. Hanson, G. L. W. Hart, and S. Curtarolo, The AFLOW Library of Crystallographic Prototypes: Part 2, Comp. Mat. Sci. 161, S1-S1011 (2019).(doi=10.1016/j.commatsci.2018.10.043)
Package: pyriodic-structures
Introductionpyriodicis an in-development library for compiling a database of
three-dimensional structures. It also supports several simple
manipulations of structures.InstallationInstallpyriodicfrom source on github:pip install git+https://github.com/klarh/pyriodic.git#egg=pyriodic-structuresBy default, pyriodic only ships with a few very simple structures;
other libraries can be added by installing other packages, such aspyriodic-aflow, which
contains structures from theAFLOWproject.
Package: pyripherals
pyripheralsis a Python package for communicating with peripheral electronic devices. It has aRegisterclass to keep track of internal registers, but is most useful when used with a FrontPanel compatible Opal Kelly FPGA. With that,pyripheralsmakes use of the FrontPanel API for Python and Verilog to communicate more easily on common interfaces such as I2C and SPI.Quick StartInstall with pipNote that not all ofpyripheralswill work with Python 3.10pip install pyripheralsTo use an FPGA and peripherals:DownloadFrontPanelfrom OpalKellyDownloadRegisters.xlsxfrom the GitHubCreate config.yaml with create_yaml and edit fields as needed>>>frominterfaces.utilsimportcreate_yaml>>>create_yaml()YAMLcreatedatC:/Users/username/.pyripheralsSeeInstallation Guidefor more information.DocumentationDocumentationis hosted on Read the Docs.AcknowledgementsThe FPGA code is dervied from many open-source contributions.The Verilog I2C controller is from OpalKellyOpalKelly I2CController(MIT License).The Verilog AD7961 controller is from Analog Devices and is free to use / redistribute as long as its used with Analog Devices parts (which must be the case since it does not work if connected to other parts). The Verilog is available within theEVAL-AD7960 evaluation kit softwareThe VerilogSPI Controlleris from OpenCores.org and is authored by Simon Srot (GPL 2.1 or later license).The Verilog wishbone master is written by Dan Gisselquist, Gisselquist Technology LLC. (LGPL, v3)The DDR user interface (ddr_test.v) started with the OpalKelly DDR example provided in the FrontPanel example RAMTester and was significantly modified to support two ports.The Python code relies on wonderful open source packages such as:numpynumfimatplotlibpandasopenpyxlh5pypyyamlscipyOpalKelly Module Compatibility.We have targeted and tested with theXEM7310-A75 module(Xilinx Artix-7). We have not tested but anticipate reasonable portability to other USB 3 OpalKelly modules:XEM7310MTXEM7320XEM7305XEM7360(Approximate) FPGA Block DiagramThis is the block diagram of thetop_level_module.bit bitfile
Package: pyrir
pyrirLite Package for Room Impulse Responserequirementsnumpy
scipy
cythoninstallpipinstallpyrirorpipinstallhttps://github.com/ludlows/pyrir/archive/master.zipexampleIt is supporting Omni, Dipole, Cardioid, Subcardioid and Hypercardioid Beam Patterns.Microphone Array with 1 SpeakerimportnumpyasnpfrompyririmportOmni,Dipole,Cardioid,Subcardioid,Hypercardioid,Field,RIR,ReflectRoom,ReverbRoom# Acoustic Fieldfs=48000# sampling raten_sample=1024# number of supports of RIR trainfield=Field(fs,n_sample=n_sample)# Construct Roomrt60=0.4# secondroom=ReverbRoom((5,5,3.2),rt60)# Microphon Arrayazimuth_degree=0elevation_degree=0dipole=Dipole((2,1.5,1.6),(azimuth_degree,elevation_degree))omni=Omni((2,1.5,1.6))# speakerdoa=0# degreeradius=1.5# meterspeaker=dipole.generate_speaker(radius,doa)# setup speaker and mic arrayroom.setup_mic_speaker([dipole,omni],speaker)# RIR object tuple, whose length equals to the number of speakersrir_tuple=field.compute_rir(room)np.save('RIR_Dipole_Omni.npy',rir_tuple[0].get_numpy())# Reverb numpy Arrayreverb_numpy_array=rir_tuple[0].apply2audio1D(clean_audio1D)# Reverb numpy Array List Supporting Multichannel Clean Audio (WAV format only for now)speaker_audio_file='speaker_clean_audio.wav'reverb_numpy_audio_list=rir_tuple[0].apply2audio_file(speaker_audio_file)# Reverb audio folderspeaker_audio_folder='speaker_audio_folder'rir_tuple[0].apply2audio_folder(speaker_audio_folder)Microphone Array with Multiple SpeakerimportnumpyasnpfrompyririmportOmni,Dipole,Cardioid,Subcardioid,Hypercardioid,Field,RIR,ReflectRoom,ReverbRoom# Acoustic Fieldfs=48000# sampling raten_sample=1024# number of supports of RIR trainfield=Field(fs,n_sample=n_sample)# Construct Room by Wall Reflection Coefficeintsroom=ReflectRoom((5,5,3.2),(0.8,0.8,0.8,0.8,0.8,0.8))# Microphon Arrayazimuth_degree=0elevation_degree=0dipole=Dipole((2,1.5,1.6),(azimuth_degree,elevation_degree))omni=Omni((2,1.5,1.6))# speaker1 and speaker2doa=0# degreeradius=1.5# meterspeaker1=dipole.generate_speaker(radius,doa)speaker2=omni.generate_speaker(1,90)# setup speaker and mic arrayroom.setup_mic_speaker([dipole,omni],[speaker1,speaker2])# RIRrir_spk1,rir_spk2=field.compute_rir(room)# merge reverb voice from 2 speakers# (spk1.wav and spk2.wav should have same number of channels)merged_channels=[reverb1[:,:min(reverb1.shape[1],reverb2.shape[1])]+reverb2[:,:min(reverb1.shape[1],reverb2.shape[1])]forreverb1,reverb2inzip(rir_spk1.apply2audio_file('spk1.wav'),rir_spk2.apply2audio_file('spk2.wav'))]Reference CodeThe C Backend Code is from the project of Prof. Emanuël Habets.https://github.com/ehabets/RIR-Generator
Package: pyris
IRIS Insee GeolocalizerPyris collects some data aboutIRISfrom the FrenchINSEEinstitute. It’s
possible from an address to find the IRIS code and somestatistics
data, e.g. population, employment or housing data.IRISare specific codes and data related to more than 50,000 districts, built
by theNational Institute of Statistics and Economic
Studies.Running instancehttp://pyris.datajazz.io/API documentation athttp://pyris.datajazz.io/doc/Interactive MapmapIRIS statsSome Insee stats for each IRIS, census 2013: population (by sex and
age), employment and housing.iris-statsREST API documentationapiFor instance, you can:URL/iris/0104?limit=5to the some information about a specific
IRIS codeURL/search/q=place de la bourse Bordeauxto get the IRIS data
from a specific addressDataYou have to install postgreSQL and PostGIS. For Debian:sudo apt-get install postgresql postgisYou have to be a PostgreSQL superuser to create the postgis extension
for your database. If it’s not the case, you can do:susu - postgrespsql pyris-c"CREATE EXTENSION postgis;"All usefull scripts are in thescripts-datafolder. Two steps:Download and some data processing for IGN and Insee data. Take a look to theMakefileinscripts-data.Then load data into your database thanks to the Python scriptloader.py.To summarize, in a dedicated virtualenv, do:Go toscripts-dataRunmake allRunpython loader.py ./dataFor Python dependencies which help you to process data, take a look to thescripts-data/requirements.txtfile.You also have a configuration file example atscripts-data/settings.ini.sample.Launch the Web AppFirst, download the few CSS & JavaScript dependencies with abower install(just a Bootstrap and jQuery).Then :> gunicorn-b127.0.0.1:5555 pyris.api.run:appor> gunicorn-b127.0.0.1:5555--envPYRIS_APP_SETTINGS=./appdev.ymlpyris.api.run:appif you have to specify db credentials or logging Flask app
configuration.See anexample of a app.yml
fileVisithttp://localhost:5555/pyrisLaunch the Unit TestsYou must set the database and have a YAML configuration inspired fromapp.yml(db
name and credentials, etc.). You should copy theapp.ymlfile and modify it. Then,
you can usepytest:PYRIS_APP_SETTINGS=appdev.yml pytest -v -rsfRequirementspostgresqlpostgisflaskflask restpluspsycopg2slumberpyaml
Package: pyrisco
PyRiscoA python interface to Risco alarm systems throughRisco Cloud.InstallationYou can install pyrisco fromPyPI:pip3 install pyriscoPython 3.7 and above are supported.How to useCloudfrompyriscoimportRiscoCloudr=RiscoCloud("<username>","<password>","<pincode>")# you can also pass your own session to login. It will not be closedawaitr.login()alarm=awaitr.get_state()# partitions and zones are zero-based in Cloudprint(alarm.partitions[0].armed)events=awaitr.get_events("2020-06-17T00:00:00Z",10)print(events[0].name)print(alarm.zones[0].name)print(alarm.zones[0].triggered)print(alarm.zones[0].bypassed)# arm partition 0awaitr.partitions[0].arm()# and disarm itawaitr.partitions[0].disarm()# Partial armingawaitr.partitions[0].partial_arm()# Group armingawaitr.partitions[0].group_arm("B")# or a zero based indexawaitr.partitions[0].group_arm(1)# Don't forget to close when you're doneawaitr.close()LocalfrompyriscoimportRiscoLocalr=RiscoLocal("<host>",<port>,"<pincode>")awaitr.connect()# Register handlersasyncdef_error(error):print(f'Error handler:{error}')remove_error=r.add_error_handler(_error)asyncdef_event(event):print(f'Event handler:{event}')remove_event=r.add_event_handler(_event)asyncdef_default(command,result,*params):print(f'Default handler:{command},{result},{params}')remove_default=r.add_default_handler(_default)asyncdef_zone(zone_id,zone):print(f'Zone handler:{zone_id},{vars(zone)}')remove_zone=r.add_zone_handler(_zone)asyncdef_partition(partition_id,partition):print(f'Partition handler:{partition_id},{vars(partition)}')remove_partition=r.add_partition_handler(_partition)awaitr.connect()# partitions and zones are one-based in Cloudprint(r.partitions[1].armed)print(r.zones[1].name)print(r.zones[1].triggered)print(r.zones[1].bypassed)# arm partition 1awaitr.partitions[1].arm()# and disarm itawaitr.partitions[1].disarm()# Partial armingawaitr.partitions[1].partial_arm()# Group armingawaitr.partitions[1].group_arm("B")# or a zero based indexawaitr.partitions[1].group_arm(1)# Don't forget to close when you're doneawaitr.disconnect()
Package: pyriskadjust
Python Risk AdjustmentA python implementation of CMS’s Medicare Risk Adjustment model based on Hierarchical Condition Categories (HCCs)https://www.cms.gov/Medicare/Health-Plans/MedicareAdvtgSpecRateStats/Risk-Adjustors.htmlFree software: MIT licenseDocumentation:https://pyriskadjust.readthedocs.io.FeaturesTODOCreditsThis package was created withCookiecutterand theaudreyr/cookiecutter-pypackageproject template.History0.8.0 (2019-01-10)First release on PyPI.
Package: pyristic
PyristicLibrería dePythoncon metaheurísticas para resolver problemas de optimización mono-objetivo con o sin restricciones. El objetivo de esta librería es facilitar la resolución de problemas de optimización utilizando metaheurísticas.Pyristicse divide como sigue:🗀 Pyristic
│   
└─── 🗀 heuristic
│   │   EvolutionStrategy_search 
│   │   EvolutiveProgramming_search
│   │   GeneticAlgorithm_search
│   │   SimulatedAnnealing_search
│   │   Tabu_search
│  
└─── 🗀 utils
     │   helpers
     │   test_function
     │
     └─── 🗀 operators
     │   │   crossover
     │   │   mutation
     │   │   selectionInstalaciónLa instalación de la librería y dependencias se realiza a través del manejador de paquetespip:pip install pyristicEjemploUso de la libreríaPyristicpara resolver la función de Beale con la metaheurística de Estrategias Evolutivas.frompyristic.heuristic.EvolutionStrategy_searchimportEvolutionStrategyfrompyristic.utils.test_functionimportbeale_"""Instancia de la clase EvolutionStrategy:- Función objetivo (recibe la funci- Lista de restricciones- Límite inferior y superior de las variables de decisión- Número de variables de decisión"""BealeOptimizer=EvolutionStrategy(**beale_)"""Ejecución de la metaheurística con los siguientes parámetros:- Número de iteraciones- Tamaño de la población a cada iteración- Tamaño de la población de hijos- Mostrar la iteración en la que se encuentra"""BealeOptimizer.optimize(300,80,160,verbose=True)#Resultados obtenidos por la ejecución del método optimize.print(BealeOptimizer)ContribuciónLos usuarios interesados en participar deben seguir los siguientes pasos:Clonar el proyecto.git clone https://github.com/JAOP1/pyristic.gitCrear branch en relación al tipo de acción a realizar (añadir metaheurística, crear utilidad o resolver errores):Solucionar error,fix-archivo-funcion.git checkout -b fix-crossover-n_point_crossoverAñadir metaheurística,attach-metaheuristic-nombreMetaheuristica.git checkout -b attach-metaheuristic-fireflyAlgorithmCrear utilidad,attach-utility-nombreUtilidad.git checkout -b attach-utility-binaryCrossoverRealizar commit con un mensaje explicando lo realizado. Por ejemplo:git add pyristic/utils/operators/crossover.py
git commit -m "Operador de cruza para problemas discretos."Nota:las metaheurísticas anexadas deben ser clases que mantienen los mismos parámetros en el método __init__ que son:function           -> Función objetivo (función de python).decision_variables -> Número de variables de decisión (valor entero).constraints        -> Restricciones, arreglo con funciones de python que retornan un valor booleano.bounds -> Lista con los límites de las variables de decisión.
Además, debe tener el métodooptimize(con los parámetros de la respectiva metaheurística).AgradecimientosDra. Adriana Menchaca Méndez (usuario github:adriana1304), titular del proyecto que supervisó y evaluó el desarrollo de la librería pyristic.El apoyo del Programa UNAM-DGAPA-PAPIME PE102320.