Saravanan666/pypi-org huggingface dataset:
Package: pyelant
PyElantPython Easy Language TranslatorPyElant is a simple python tool for performing translations and storing it on the clipboard.
Input can be received via microphone, command line or the clipboard itself.
This programs runs in the background so you can easily translate on the go and paste it in multiple programs such as text editors, browsers or programming tools easily without changing your current window.Installation InstructionsYou can install this package either via pip or via repository download.pip3installpyelantThird party requirementsTo run this program onDebiandistros you need to install the following dependencies:sudoaptinstallsudoapt-getinstallxsel# To have proper access to the clipboardsudoaptinstallportaudio19-devpython-pyaudio# Only if you want to use the microphone inputFor theSpeech Recognitionlibrary, please visit their repository for more details.
For other python packages required to run this program readrequirements.txt.UsageThere are three ways of using pyelant:Voice input via microphoneInput text via clipboardInput text via command line1. Via microphoneFirst, initiate the program using the command line and let it run on the background:python3-mpyelantThen pressCTRL + ALT + Mto start listening. Say something and wait for the program to execute the translation.
Once it's done, it will automatically place it in your clipboard, so you can easily paste it wherever you want.2. Via clipboardFirst, initiate the program using the command line and let it run on the background:python3-mpyelantThen pressCTRL + ALT + Eto translate the text that is already in your clipboard.
Once it's done, it will automatically place it in your clipboard, so you can easily paste it wherever you want.3. Via command lineFirst, run the program with the-tor--textargumentpython3-mpyelant-t"This sentence will be translated to Japanese."And it will automatically store the translation in your clipboard.Choosing languagespython3 -m PyElant comes by default with English as the input language and Japanese as the output language.
Currently the program can only accept a single pair of languages per execution, meaning that you need to close the program to change languages.
To translate other languages use the-ior--input_languageand-oor--output_languageas follows:python3-mpyelant-ipt-oen# To run in the background and translate from Portuguese to Englishpython3-mpyelant-ifr-okr# To run in the backrground and translate from French to Koreanpython3-mpyelant-iEn-oit-t"This sentence will be translated from English to Italian."Other optionsTo disable the system notification use-dnor--disable_notification.LicenseMIT License as described inLICENSE.txt.
Package: pyelastices
✨ Awesome elasticsearch framework that shines ✨Breaking changes ⚙ 🔑 🎉 🎠 ❌easy to use:lots of out-of-the-box methods.less bug:not like others, I don't want to name it, and if you
unluckily enough to encounter, it's easy to solve by yourself.Installation ⚙🙈pipinstallpyelasticesif you need helppyelastices-hTips and tricks ✅
Package: pyelastix
PyElastix - Python wrapper for the Elastix nonrigid registration toolkitThis Python module wraps the Elastix registration toolkit. For it to
work, the Elastix command line application needs to be installed on
your computer. You can obtain a copy athttp://elastix.isi.uu.nl/.
Further, this module depends on numpy.https://github.com/almarklein/pyelastix
Package: pyelection
pyelectionPresidential election data collector in Python 3.6Installationpip install pyelectionExample: 2016 US Presidentialfrom pyelection import PyElection
pye = PyElection(year=2016)By stateimport json
state = pye.get_state_summary()
print(json.dumps(state, indent=4, sort_keys=True))By candidate# optionally, install pandas for pretty output
import pandas as pd
candidates = pye.get_candidate_summary()
pd.DataFrame(candidates)Example: Bulk extraction for multiple yearsimport time
data = {}
for y in range(1956, 2016, 4):
    data[y] = {}
    data[y]['pye'] = PyElection(year=y)
    data[y]['state'] = data[y]['pye'].get_state_summary()
    data[y]['candidate'] = data[y]['pye'].get_candidate_summary()
    time.sleep(0.1)Note: Current status on the working years:yearstatecandidate2016YY2012YY2008YY2004YY2000YY1996YY1992YY1988YY1984YY1980YY1976YY1972YY1968YY1964YY1960YY1956YY1952YY1948YY1944YY1940NY1936NN1932YY1928YY1924NN1920NN1916NN1912NN1908NN1904NN1900NN1896NN1892NN1888NN1884NN1880NN1876NN1872NN1868NN1864NN1860NN1856NN1852NN1848NN1844NN1840NN1836NN1832NN1828NN1824NN1820NN1816NN1812NN1808NN1804NN1800NN1796NN1792NN1789NN
Package: pyElectra
pyElectraPython library to control Electra Smart Air Condtioiner devicesUsage:importasyncioimportaiohttpfromelectrasmartimport*asyncdefmain():session=aiohttp.ClientSession(connector=aiohttp.TCPConnector(ssl=False),timeout=aiohttp.ClientTimeout(total=10))api=ElectraAPI(session)# User phone numberphone_number="0521234567"# Generate tokenimei=generate_imei()try:resp=awaitapi.generate_new_token(phone_number=phone_number,imei=imei)exceptElectraApiErrorase:# handle errorpassotp=input("Enter the OTP you recieved via SMS")# more error handlingifresp[electra.ATTR_STATUS]==electra.STATUS_SUCCESS:ifresp[electra.ATTR_DATA][electra.ATTR_RES]!=electra.STATUS_SUCCESS:# Wrong phone number or unregistered usersys.exit(1)resp=awaitapi.validate_one_time_password(otp=otp,imei=imei,phone_number=phone_number)ifresp[electra.ATTR_DATA][electra.ATTR_RES]==electra.STATUS_SUCCESS:token=resp[electra.ATTR_DATA][electra.ATTR_TOKEN]else:# wrong OTPsys.exit(1)ac_devices=api.get_devices()foracinac_devices:assert(ac,ElectraAirConditioner)ifac.name=="Saloon AC":ac.turn_on()ac.set_mode(OPER_MODE_COOL)ac.set_temperature(17)ac.set_fan_speed(OPER_FAN_SPEED_HIGH)ac.set_vertical_swing(OPER_ON)api.set_state(ac)# This will send the conf to the ACloop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: pyelectrica
PyElectrica V1.1.4MóduloPyElectrica, útil para resolver problemas
específicos de Máquinas y Circuitos Eléctricos, así como de Instalaciones
Eléctricas.Instalación y ActualizaciónInstalación>pipinstallpyelectricaActualización>pipinstall-UpyelectricaDependenciasNumpyMatplotlibSciPySchemDrawDocumentación y EjemplosInformación adicional del módulo y un manual con ejemplos de uso puede ser
encontrado en la siguiente pagina:PyElectricaFunciones incluidas en la versión 1.1.4Circuitos EléctricosMáquinas EléctricasInstalaciones EléctricasleyOhmmLineal_CDimonoFvNodoscompCA_GenSinccTensionMonovNodosVpar_veliLazoscepTransformadoriLazosVbodebodeNbescalonc_1ordenDesarrollador< Isai A.P. />GitHub: X1sa1
Package: pyelectroluxocp
py-electrolux-ocpPython package wrapper around Electrolux OneApp (OCP) apiEarly version, this package APIs might changePrerequisitespip install aiohttp
pip install pyelectroluxocpUsage examplesExample to connect via websockets and listen for appliance state changesimportasyncioimportjsonfrompyelectroluxocpimportOneAppApiasyncdefmain():asyncwithOneAppApi("__username__","__password__")asclient:appliances=awaitclient.get_appliances_list()print("appliances found: ",json.dumps([x.get("applianceData").get("applianceName")+" "+x.get("applianceId")forxinappliances]))defstate_update_callback(a):print("appliance state updated",json.dumps((a)))awaitclient.watch_for_appliance_state_updates([appliances[0].get("applianceId")],state_update_callback)asyncio.run(main())TODOsBetter error messages on known scenarios (login failed)
Package: pyelectronics
This is a python library for using electronics (like i2c or spi devices) with a unified interface. It currently supports
connecting to stuff through the Raspberry Pi gpio with the i2c kernel driver and using the Bus Pirate.Supported gatewaysThe gateways are the bridge between Linux and the hardware. Currently supported:Bus Pirate v3Raspberry Pi / other linux i2c_dev supported interfacesSupported chips/devicesRead the contributing guideto add devicesBosch BMP180 Digital pressure sensorHoneywell 3-Axis Digital Compass IC HMC5883LMPU-6050 Six-Axis (Gyro + Accelerometer) MEMS MotionTracking™ DeviceNXP LM75A Digital temperature sensorMicrochip MCP23017 16-Bit I/O Expander7-segment displays without multiplexingInstallationInstall it from pypi:$ pip3 install pyelectronicsThe various gateways have their own dependencies. Install the dependencies for the gateway you require:# Requirements for the Raspberry Pi
$ pip3 install pysmbus

# Requirements for the Bus Pirate
$ pip3 install pyserialTo run the doctests you need all dependencies. You can install them with the doctest requirements file:$ pip3 install -r docs/doctest-requirements.txtUsageRead the full docs atpythonhosted.First create a instance of a gateway:from electronics.gateways import BusPirate
from electronics.gateways import LinuxDevice

# Use a BusPirate to connect to a bus
gw = BusPirate('/dev/ttyUSB0')

# Use a i2c bus with a linux driver (like the raspberry pi)
gw = LinuxDevice(1) # /dev/i2c-1Create instances for components connected to the gateway:from electronics.devices import BMP180
from electronics.devices import MPU6050I2C

barometer = BMP180(gw, address=0x77) # Address is optional
inertia = MPU6050(gw)

# Do chip specific initialisation
barometer.load_calibration()
inertia.wakeup()Read values from sensors:temperature = barometer.temperature()
pressure = barometer.pressure()
acceleration = inertia.acceleration()
rotation = inertia.angular_rate()Example with GPIO:# Red led conected to the aux pin of the bus pirate
red_led = gw.get_aux_pin()
# Turn the led on
red_led.write(True)

# An Microchip port expander connected through I2C
expander = MCP23017I2C(gw, address=0x21)

# Get the pins for the two other leds that are connected
# to the port expander
green_led = expander.get_pin('A0')
blue_led = expander.get_pin('A1')

# Bundle the leds to a bus so you can address 8 colours as an int
# the pins on the port expander are open drain, they are inverted with the invert operator (~)
bus = GPIOBus([red_led, ~green_led, ~blue_led])
bus.write(0) # Black
bus.write(7) # White

# Disco!
while True:
    for i in range(0,8):
        bus.write(i)
        sleep(0.2)
Package: pyelegantsdds
PyElegantSDDS is a Python wrapper around a Singularity container with SDDS and Parallel
Elegant installed in it. It uses this container to build and run templates for common task in
particle tracking for accelerators.Free software: MIT licenseDocumentation:https://PyElegantSDDS.readthedocs.io.FeaturesSDDS commandsElegant commands (twiss, track, FMA, DA, …)Run simulations in just a few lines of Python code.Generate Hyper-cubical and Hyper-Spherical distributions for trackingQuick plotting using SDDS tools
Package: pyeletrica
pyeletricaFundamental tools for electrical engineers.ToolsThis is the avaliable functions inpyeletrica:sindcosdtandpolarrectdivIZIbaseZparallelplot3vectorsplotmhoto_linecompto_symcompovercurrent_timeHelpYou can use the documentation to understand how the function works .>>>importpyeletricaaselt>>>help(elt.to_symcomp)Helponfunctionto_symcompinmodulepyeletrica:to_symcomp(Va,Vb,Vc,ndigits=3)Calculatesymmetriccomponentvectorfromlinevector.parameters----------Va:array-like[module,angle(degrees)]Vb:array-like[module,angle(degrees)]Vc:array-like[module,angle(degrees)]ndigits:intPrecisionindecimaldigits.Returns-------output:array-like(V1,V2,V0),eachvectorbeinginarrayformatwith[module,angleindegrees],whereV1ispositivesequence,V2negativesequenceandV0zerosequence.Example UsageCalculate Symmetric Component from line quantities. Considering the currents Ia = 10∠0° amps, Ib = 9∠-110° amps and Ic = 10.93∠129.3° amps we get I1 = 9.945∠6.407° amps, I2 = 1.116∠0° amps and I0 = 0∠0° ampsIn[1]:elt.to_symcomp([10,0],[9,-110],[10.93,129.3])Out[1]:([9.945,6.407],[1.116,0],[0,0])Plot vectors.In[1]:elt.plot3vectors([[10,0],[9,-110],[10.93,129.3]],['Ia','Ib','Ic'])Calculate base impedance and base current from apparent power and voltage.In[1]:Zbase,Ibase=elt.ZIbase(10e6,69e3)In[2]:ZbaseOut[2]:83.67395205646751In[3]:IbaseOut[3]:476.1Complex numbers computation. You must perform complex number operations in Python using the rectangular form.In[1]:v_sum=elt.rect([10,120])+elt.rect([10,-120])In[2]:v_sumOut[2]:(-10+0j)In[3]:elt.polar(v_sum)Out[3]:[10.0,180.0]
Package: pyElevenlabs
Python wrapper for Elevenlabs APIThis is a python wrapper for the Elevenlabs API (LINK)Currently only supports calling the text-to-speech endpoint.
Needs a api_key and voice_id to work. Api Key is available in your Profile. Voice Id is availablehere.This package and repository is no way affiliated with Elevenlabs. Please ssend all support requests related to this python package to this Issue Tracker:Issues
Package: pyelexon
pyelexonSimple python wrapper for the Elexon BMRS API.Getting startedRegister on the Elexon BMRSdata portaland retrieve yourapi_keyExample usagefromdatetimeimportdatefrompyelexonimportElexonapi_key="123456"report="DETSYSPRICES"params={"settlement_date":"2021-01-01","settlement_period":1}elexon=Elexon(api_key)# returns content of responser:bytes=elexon.fetch_data(report,params)Example with report specific methodfromdatetimeimportdatefrompyelexonimportElexonapi_key="123456"report="DETSYSPRICES"elexon=Elexon(api_key)# returns content of responser:bytes=elexon.get_detsysprices(report,settlement_date=date(2021,1,1),settlement_period=1)Tested reportsDETSYSPRICESDYNBMDATAPHYBMDATA
Package: pyelf2rel
pyelf2relTable of ContentsAboutInstallationLicenseAboutpyelf2rel is a tool / library for creation of files in Nintendo's GameCube/Wii REL format.Alternativesttyd-toolshas a C++
implementation of ELF to REL conversion.This doesn't support linking against other REL files, though there isa forkthat does.This tool tends to have better performance than pyelf2rel, though in practice the difference
seems to be negligiblepyelf2rel can be configured to behave the same way as this tool (seebelow)ppcdishas a more specialised python implementation of the
conversion designed for matching decompilation.pyelf2rel is based off of this implementation and is more friendly for general useWhy make another elf2rel implementation?ttyd-tools is a bit awkward to build, requiring Visual Studio (or manual setup on Linux) and BoostSome legacy code requires specific fork builds of ttyd-tools elf2rel to work, all of those are
supported by pyelf2relUpstream support for linking against other relsRedirection of unlinked branches to _unresolvedControl over which sections to include and stripThis is easier to customise for projects to extend the formatSome kind of built-in metadata extension may be coming at some pointmakelstAlso included is the makelst tool, which can generate LST symbol maps based on global symbols in ELFs
and existing LSTs, for use with this or ttyd-tools elf2rel.InstallationRun the following command to install the package.pip install pyelf2relYou will now have access to thepyelf2relandmakelstcommands (also the extraelf2relcommand,
see below for information). Use each with-hfor more information.Using in place of ttyd-tools elf2relThe tool provides an option for matching the API and behaviour (byte-matching output) of the
ttyd-tools elf2rel tool through theelf2relcommand.For building projects requiring theELF2RELenvironment variable, set it equal toelf2relFor building projects requiring theTTYDTOOLSenvironment variable, set it equal toelf2rel -xMultiple versions of the API and behaviour can be matched:Useelf2rel [-x]to match the modern spm-rel-loader fork (elf2rel-21-12-2021)elf2rel-13-6-2022should function the same as this version other than the fact it supported
using leading zeroes on the module id and section id without changing to octal - support for
this quirk is not plannedUseelf2rel --old-fork [-x]to match the old spm-rel-loader fork (elf2rel-24-6-2021)Notably, this includes support for theoffset:symbol?moduleId,sectionIdsyntaxLike in the old fork, fixed linking is unsafe for rels produced by thisSupport for the modern LST syntax isn't disabled while using thisBoth modes are supersets of the original ttyd-tools elf2rel, and should match the behaviour of it
on projects which used it.Licensepyelf2relis distributed under the terms of theMITlicense.
Package: pyelfwrapper
Elf wrapperThis tool use thepyelftoolsto parse the elf file, and provide a interface
for user to get the global variable address informations.InstallationInstall use pip.$pipinstallpyelfwrapperHow to use itfromelfwrapper.elf_wrapperimportElfAddrObjelf=ElfAddrObj(r"example/test.elf")var_addr=elf.get_var_addrs('TestStructVar1')print(var_addr)enum_info=self.get_enum_info('TestEnumAType')Supported variable typesstructurestructure arraystructure array filedarrayTodosto add support for bit filed membersLicenseMIT
Package: pyEliasFano
pyEliasFanopyEliasFano offersquasi-succinctrepresentations for monotone non-decreasing sequences of n integers from
a universe [0 . . . m).We currently support the following variants of Elias-Fano indexing:pyEliasFano.EliasFano: the classical Elias-Fano representation occupying occupying 2n+nceil(log2(m)/n) bitspyEliasFano.UniformlyPartitionedEliasFano: an uniformly-partitioned Elias-Fano representationAll variants support the following operations:select(i): fast access to thei-th element of the integer sequence,rank(x): queries the index position ofxiff stored within the given Elias-Fano structurenextGEQ(x): fast access to the smallest integer of the sequence that is greater or equal thanxnextLEQ(x): fast access to the largest integer of the sequence that is smaller or equal thanxInstallationInstall from PyPi usingpipinstallpyEliasFanoUsagefrompyEliasFanoimportEliasFano,UniformlyPartitionedEliasFanoimports the module.integers=sorted([123,1343,2141,35312,4343434])ef0=EliasFano(integers)ef1=UniformlyPartitionedEliasFano(integers)creates a classical Elias-Fano structureef0as well as an uniformly-partitioned Elias-Fano structureef1for thesortedintegerssequence.AccessTheith element from the originalintegerssequence can be retrieved from an Elias-Fano structureefusing itsselect(i)methodef0.select(3)>>>35312ef0.select(0)>>>123or using subscript operatoref1[3]>>>35312An Elias-Fano structureefis also iterable.You can easily loop through the stored elements storedef_iter=iter(ef0)next(ef_iter)>>>123next(ef_iter)>>>1343or return all stored elements at oncelist(iter(ef0))>>>[123,1343,2141,35312,4343434]As a side note, the following assertion will always hold:assert[ef.select(ef.rank(v))forvinintegers]==integersRankGiven an integerx, we can query the index position ofxwithin an Elias-Fano structureefusing itsrank(x)method.For example,ef0.rank(4343434)>>>4ef1.rank(123)>>>0As a side note, the following assertion will always hold:assert[ef.rank(ef.select(i))foriinrange(len(integers))]nextGEQGiven an integerx, we can query the smallest integer stored within an Elias-Fano structureefthat is larger than or equal toxusing thenextGEQ(x)method.For example,ef0.nextGEQ(1345)>>>2141ef0.nextGEQ(4343434)>>>4343434ef1.nextGEQ(2)>>>123nextLEQGiven an integerx, we can query the largest integer stored within an Elias-Fano structureefthat is smaller than or equal toxusing thenextLEQ(x)method.For example,ef0.nextLEQ(4343420)>>>35312ef0.nextLEQ(123)>>>123Citation@misc{rmrschub_2021_pyEliasFano,author={René Schubotz},title={{pyEliasFano: Quasi-succinct represenations for monotone non-decreasing sequences of integers.}},month=may,year=2021,doi={10.5281/zenodo.4774741},version={0.0.6},publisher={Zenodo},url={https://github.com/rmrschub/pyEliasFano}}LicenseThis work is licensed under aCreative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Package: pyElizaChatbotClient
======================Eliza Chatbot Client======================This package is released in the context of Re-WoChat: Workshop on Collectingand Generating Resources for Chatbots and Conversational Agents - Developmentand Evaluation as part of the shared task.link: http://workshop.colips.org/re-wochat/shared.htmlThe goal of the shared task is to collect data and annotations fromhuman-machine and human-human dialogues annotated by the participants.Human-machine dialogues will be generated by using different onlineand offline chat engines, and annotations are to be generated following aprovided set of guidelines. The collected dataset will be made publiclyavailable to the research community for further research and experimentationin future editions of the workshop.In this context, the organizing committee releases this chatbot which worksas a stand-alone application and generates a log file with the interactionswith the users. The generated log is finally converted into a XML file that,participants must submit, together with the log file, to the organizers.Installation=========There are several options to install this program; the simplest one is to runfrom a command line the following instruction (for Linux):> pip install pyElizaChatbotClient --upgradeThis will download the program from http://pypy.org together with all therequired packages.If you want to do a manual installation, then you can do:> pip install pyElizaChatbotClient-[VERSION]-py2.py3-none-any.whlOr if you want to do it from the source files, then you will need to do:> tar -xvzf pyElizaChatbotClient-[VERSION].tar.gz> cd pyElizaChatbotClient-[VERSION]> python setup.py installFor Windows users, the easiest way is to run (replace the path with the onein your current Python installation):> C:\Python2.7\Scripts\pip.exe pyElizaChatbotClient --upgradeThis program has been tested using Python 2.7.6 and Python 3.4.3 on Ubuntu Linux and Windows 7Usage=========Typical usage as stand-alone application will be:> python -m pyElizaChatbotClientor> python test/pyElizaChatbotClient.pyAlternatively, you can use it from another python program using:from pyElizaChatbotClient.pyEliza import pyElizaChatbotclient = pyElizaChatbot(name='Eliza', log_file='pyEliza.log')client.start()
Package: pyElli
pyElliPyElli is an open source numerical solver for spectral ellipsometry employing well-known 2x2 and 4x4 algorithms.
It is intended for a broad case of problems including simple fitting of layered structures, anisotropic layers and any other light interaction with layered 1D structures.
It serves as a system for the day to day ellipsometry task at hand and is easily extendable with your own dispersion models, EMAs or solvers.
Our goal is to provide a reproducible and flexible tool for the needs
of scientists working with spectral ellipsometry.FeaturesA multitude of models to approximate the dielectric function of your material.Use the vast library of materials from refractiveindex.info as reference materials.Build up your structure easily from materials and layers.Simulate reflection and transmission spectra, ellipsometric parameters and Mueller matrices.Utilities to quickly convert, plot and fit your measurement data.Powerful when necessary, editable and expandable.Got a question?If you have questions using pyElli please feel free to open a discussion in theQ&Aor join ourdiscord channel.How to get itThe installers for all releases are available at thePython Package Index (PyPI).To install run:pipinstallpyElli[fitting]This installs pyElli with the additional fitting capabilities and interactive widgets.
If don't want to have this functionality just drop the[fitting]in the end.A complete environment for pyElli is also available as aDocker Container.
To pull and run it directly just executedockerrun-p8888:8888domna/pyellifrom your local docker install. After startup a link should
appear in your console. Click it and you will be directed
to a jupyter server with the latest release of pyElli available.To install the latest development version use:pipinstall"pyElli[fitting] @ git+https://github.com/PyEllips/pyElli.git"The source code is hosted onGitHub, to manually install from source, clone the repository and runpip install -e .in
the folder to install it in development mode:gitclonehttps://github.com/PyEllips/pyEllicdpyElli
pipinstall-e".[fitting]"AcknowledgementsBased on Olivier Castany'sBerreman4x4Solver2x2 based on Steve Byrnes'tmmMikhail Polyanskiy'srefractiveindex.info databaseand Pavel Dmitriev'spyTMMfor his importer script for the database@MarJMuerecieves financial support by the Deutsche Forschungsgemeinschaft (DFG, German Research Foundation), grant No. 398143140 (FOR 2824).