Saravanan666/pypi-org huggingface dataset:
Package: eAlarm
eAlarm is a simple, easy (thus the ‘e’) alarm that does what any alarm should do.  It’s used from the command-line, because ‘ctrl-c’ is still perfectly accessible in the dark.:----------
ON *NIX
----------

$ eAlarm

OR

$ python /path/to/eAlarm.py /optional/absolute/path/to/directory

OR

$ python /path/to/eAlarm.py
>>> Enter a directory you'd like to sort: absolute/path/to/directory

-----------
ON WINDOWS:
-----------

Open a command prompt and type:

C:\path\to\python.exe C:\path\to\eAlarmgui.py

OR

C:\path\to\python.exe C:\path\to\eAlarm.py

(Or just double-click on whichever script)Requirements:Python 2.6 or later (2.6 recommended on Windows)Pyglet (http://pyglet.org)AVbin (http://code.google.com/p/avbin)Installation:In Unix:  Unpack the tarball, open a terminal, navigate to the directory in which you unpacked the tarball, and type (as admin, i.e., “su” or “sudo”)python setup.py installIn Windows, just run the .exe as normal.  The script will be installed to C:\Pythondir\Lib\site-packagesUsageThis program can be used interactively, or quickly.For the former, simply execute the program with no arguments.  You’ll be brought to the intro page and presented with a few options.  You can just ‘go’, you can set the time (or any one of the nine preset times), or you can quit.For the latter, you can pass the program a time straight from the command-line.  To do so, you’d pass a time argument while invoking it.  For example, to immediately set the clock for 4:00 PM, you can type ‘ealarm 16:00’, ‘ealarm 4pm’, ‘ealarm 16’, etc.  It will also accept ‘noon’ or ‘midnight’ as a time argument.One other possibly important option is the ‘test’ option, to see whether or not the alarm will actually function on your system.  Better safe than sorry, right?  You can enter ‘T’ at the main (interactive) screen, or just type ‘ealarm t’ from the command line.  If after several seconds you still  don’t hear anything, then you may want not want to use this program.There isn’t much more to it than that, honestly.  It’s a simple little alarm.After installation and running the program for the first time (or just running
the script itself from wherever you’ve extracted it to), a configuration file
will be created in the ealarm directory, located in one of the following
directories:GNU/Linux:  ~/.ealarmWindows XP:  My Documents\ealarmWindows 7 or Vista:  Documents\ealarmYou can edit the configuration file if you’d like (named ‘ealarm.cfg’) with any
plain text editor.  You can set the ring sound, current time and preset times
inside this cfg file.Authorx.seeks (x -dot- seeks _at_ gmail -dot- com)LicenseGPL version 3.  See LICENSE.txt for more info.
Package: eals
eALS - Element-wise Alternating Least SquaresA Python implementation of the element-wise alternating least squares (eALS) for fast online matrix factorization proposed byarXiv:1708.05024.PrerequisitesPython >= 3.8, < 3.11InstallationpipinstallealsUsageimportnumpyasnpimportscipy.sparseasspsfromealsimportElementwiseAlternatingLeastSquares,load_model# batch traininguser_items=sps.csr_matrix([[1,2,0,0],[0,3,1,0],[0,4,0,4]],dtype=np.float32)model=ElementwiseAlternatingLeastSquares(factors=2)model.fit(user_items)# learned latent vectorsmodel.user_factorsmodel.item_factors# online training for new data (user_id, item_id)model.update_model(1,0)# rating matrix and latent vectors will be expanded for a new user or itemmodel.update_model(0,5)# current rating matrixmodel.user_items# save and load the modelmodel.save("model.joblib")model=load_model("model.joblib")See theexamplesdirectory for complete examples.DevelopmentSetup development environmentgitclonehttps://github.com/newspicks/eals.gitcdeals
poetryrunpipinstall-Upip
poetryinstallTestspoetryrunpytestSetUSE_NUMBA=0for faster testing without numba JIT overhead.USE_NUMBA=0poetryrunpytestTo run tests against all supported Python versions, usetox.
You may need to add the Python versions in thetox.inifile.poetryruntox
Package: eamcsv2json
EAM CSV to JSON=================Example script for converting data from EAM, i.e. splunk, CSV files to json.This provides a useful example of how to export and use data.usage: eamcsv2json [-h] -i INPUT [-o OUTPUT] [-e ERRORS] [-l LOG] [-c CONFIG][-t TYPE_COLUMN]EAM (Splunk) CSV to JSON conversion script meant to handle larger files withpotential errors. New lines and quotes are handled gracefully when datafields are quoted in double quotes (") and escaped with backslash (\).This is outside RFC-4180 specificationoptional arguments:-h, --help            show this help message and exit-i INPUT, --input INPUTCSV file name to be read-o OUTPUT, --output OUTPUT(optional) Output file name; else stdout-e ERRORS, --errors ERRORS(optional) Error file name; when provided CSV 3 linesof context will be printed. Default is content to logfile only-l LOG, --log LOG     (optional) Log file name; when provided log messagewill go to file. Default is stderr-c CONFIG, --config CONFIG(optional) Configuration for type mappings; else firstrow is considered for labels. When provided typecolumn setting is used-t TYPE_COLUMN, --type-column TYPE_COLUMN(optional) When config set use this column to expecttype mapping. Default 4Install-------pip install eamcsv2jsonLibrary-------Available for usage as libraryfrom eamcsv2json.eamcsv2dict import EamCsv2Dicttype_mappings = {'TypeA': ['field1', 'field2'],'TypeB': ['fieldA', 'fieldB'],}converter = EamCsv2Dict('input.csv', 'error.csv', type_mappings, 2)for a_dict in converter.covert():print(a_dict)Examples-------Convert data with first row as columnseamcsv2json --input ./data/20180629_test2.csv -e ./errors.txtConvert data with a type mapping and CSV error lines going to a fileeamcsv2json \--input ./data/main10M.csv \--errors ./data/main10M-errors.txt \--config ./data/transforms.conf \--output ./data/main10M.json
Package: eam-data-tools
Tool to define random variables in a table. The main purpose is to support the EAM framework.Free software: Apache Software License 2.0Installationpip install eam-data-toolsYou can also install the in-development version with:pip install https://github.com/dschien/eam-data-tools/archive/master.zipDocumentationhttps://eam-data-tools.readthedocs.io/Usage# Example
Given an excel file with rows similar to the belowvariablescenariotyperef valueparaminitial_value_proportional_variationunitmean growthvariability growthref datelabelcommentsourceaexp100.4kg-0.200.1001/01/2009test var 1binterp{“2010-01-01”:1, “2010-03-01”:100 , “2010-12-01”:110}linear0.4kg-0.200.1001/01/2009test var 1Write code that references these variables and generates random distributions in pandas dataframes withpint-pandasunits.:repository = ParameterRepository()
TableParameterLoader(filename='./test_v2.xlsx', excel_handler='xlrd').load_into_repo(sheet_name='Sheet1',
                                                                                     repository=repository)
p = repository.get_parameter('a')

settings = {'sample_size': 3, 'times': pd.date_range('2016-01-01', '2017-01-01', freq='MS'),
            'sample_mean_value': False, 'use_time_series': True}
val = p(settings)
series = val.pint.mChangelog0.0.0 (2020-04-04)First release on PyPI.
Package: eanalytics-api-py
eanalytics_api_pyA python 3 module to retrieve data from Eulerian Technologies APIGetting StartedThese instructions will get you a copy of the project up and running on your local machine for development and testing purposes.PrerequisitesHaving a python 3 environmentInstallingpip3 install eanalytics_api_pyUpgradingpip3 install eanalytics_api_py --upgradeRunningSeesample notebooksEulerian datamining api docto customize your payload object:Eulerian Datawarehouse api docNotesThe file downloaded is gzippedExplore your data using jupyter-notebook along with pandas and seaborn for plug'n'play data cleaning/visualisationSamples jupyter notebooks featuring different use-cases will be uploaded in the near futureA docker image containing jupyter and our librairy is availablehereAuthorFlorian Dauphin-https://github.com/Afilnor
Package: eandb
EAN-DB Python clientThis is a Python client for EAN-DB API.EAN-DBis an online API for product info lookups by EAN / UPC / ISBN.
Product info includes titles in various languages, categories, manufacturer, images and additional metadata.For more information, please seeAPI docsandDatabase stats.Installationpip install eandbUsageAsynchronous client>>>fromeandb.clients.v2importEandbV2AsyncClient>>>eandb_client=EandbV2AsyncClient(jwt='YOUR_JWT_GOES_HERE')>>>response=awaiteandb_client.get_product('0016065024615')Synchronous client>>>fromeandb.clients.v2importEandbV2SyncClient>>>eandb_client=EandbV2SyncClient(jwt='YOUR_JWT_GOES_HERE')>>>response=eandb_client.get_product('0016065024615')>>>responseProductResponse(balance=100, error=None,product=Product(barcode='0016065024615',titles={'en': 'Pretty Tied Up'},categories=[Category(id='855', titles={'en': 'Music & Sound Recordings', ...})],manufacturer=Manufacturer(id=None, titles={'de': 'Geffen'}, wikidataId=None),relatedBrands=[],images=[Image(url='...')],metadata=Metadata(externalIds=None,generic=Generic(weight=None,manufacturerCode=None,color=None,ingredients=None,contributors=[Contributor(names={'en': "Guns N' Roses"}, type='artist')]),food=None,printBook=None,musicCD=None)))
Package: eansearch
EANSearchA Python class for EAN and ISBN name lookup and validation using the API onhttps://www.ean-search.orgCompatible with Python 2.xand3.xfromeansearchimportEANSearch# get a token from https://www.ean-search.org/ean-database-api.htmlapiToken="secret"ean="5099750442227"# Thrillereansearch=EANSearch(apiToken)name=eansearch.barcodeLookup(ean)print(ean," is ",name)# more detailed result, preferrably in English (1)product=eansearch.barcodeSearch(ean,1)print(ean," is ",product["name"].encode("utf-8")," from category ",product["categoryName"]," issued in ",product["issuingCountry"])ok=eansearch.verifyChecksum(ean)print(ean," is ","OK"ifokelse"Not OK")eanList=eansearch.productSearch('iPod');forproductineanList:print(product["ean"]," is ",product["name"].encode("utf-8"))eanList=eansearch.categorySearch(45,'thriller');forproductineanList:print(product["ean"]," is ",product["name"].encode("utf-8"))eanList=eansearch.barcodePrefixSearch('4007249146');forproductineanList:print(product["ean"]," is ",product["name"].encode("utf-8"))
Package: eaopack
The Energy Asset Optimization (EAO) packageThe EAO package is a modular Python framework, designed to enable practitioners to use, build and optimize energy and commodity trading portfolios using linear or mixed integer programming as well as stochastic linear programming. It provides an implementation ofstandard assets such as contracts, transport and storagesaddition of new asset typestheir combination to complex portfolios using network structures(de-) serialization to JSONbasic input & output functionalityWe found that the approach is useful for modeling very different problem settings, such as decentral and renewable power generation, green power supply and PPAs and sector coupling in ad-hoc analysis, market modeling or daily operation.You can find the documentation along with several sample notebooks here:EAO documentationAnd an extensive technical report here:ReportTo install:
pip install eaopack
Package: eaot
Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt OptimizersAgora's open source implementation of the paper: Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt OptimizersPAPER LINKInstallationYou can install the package using pipCitation@misc{2309.08532,Author={Qingyan Guo and Rui Wang and Junliang Guo and Bei Li and Kaitao Song and Xu Tan and Guoqing Liu and Jiang Bian and Yujiu Yang},Title={Connecting Large Language Models with Evolutionary Algorithms Yields Powerful Prompt Optimizers},Year={2023},Eprint={arXiv:2309.08532},}
Package: ea-psu-controller
SOMANET Test Suite - Controller for EA PSUsLinuxRecommended stepMove99-ea-psu.rulesto/etc/udev/rules.d/and restartudevwithsudo service udev restart.
This rule will create devices, that look likeea-ps-20xx-xx-0orea-ps-23xx-xx-0with an increasing counter for every
connected device.Before startTo usettyACMxdevices without sudo, add your user to the groupdialout:sudo adduser your_user dialoutWindowsWhen connecting the power supply, Windows will install automatically the correct drivers.Installing modulepip3 install ea_psu_controllerImport moduleimport ea_psu_controllerCreate objectTo connect to a particular PSU, you can callLinux:psu = PsuEA(comport='ttyACM0')Windows:psu = PsuEA(comport='COM1')or as com port description:psu = PsuEA(comport='PS 2000 B')If you added the device rule and you connected only one PSU, there is no need to provide a device name:psu = PsuEA()Also possible is:psu = PsuEA(comport='ea-ps-20xx-xx-0')| If there is more then one PSU connected to the host, the script will connect to the first device found.
| It is also possible to take the S/N written on the back of the PSU and call (dev rule on Linux needed):psu = PsuEA(sn='0123456789')or to use the device designator (dev rule on Linux needed):psu = PsuEA(desi='PS 2142-10B')Dis/connect to power supply for controllingpsu.remote_on()psu.remote_off()For multi output devices most functions provide a additional output argument:psu.remote_on(output_num=0)orpsu.remote_on(output_num=1)| It's only necessary to callremote_on(), when you want to control the PSU.
| If you just want to read device information, you don't need to.Power on and off outputpsu.output_on()psu.output_off()orpsu.output_on(output_num=1)psu.output_off(output_num=1)Set parametersArguments can be int or float.psu.set_voltage(24)psu.set_current(0.5)psu.set_ovp(30)psu.set_ocp(8)The script will always set the maximum possible values in dependency of the nominal power.| For example:
| Nominal power = 160 W
| If you set now the voltage to 40 V, it's not possible to set a higher current than 4 A (=160W/40V).
| If you want to set a higher current, you need to decrease first the voltage.Get parametersReturn argument: float.psu.get_voltage()psu.get_current()Maximum sampling rate is ~10 Hz.Get statusReturn argument: dictionarypsu.get_status()Dict contains following keys:'remote on''output on''controller state' (CV=0, CC=2)'tracking active''OVP activ''OCP activ''OPP activ''OTP activ'Get device descriptionReturn argument: tuple (name, SN)psu.get_device_description()Close connectionTo close the connection, call:psu.close(remote=False, output=False)Set both arguments to True to turn off the output and remote control
Package: eapy-pony
AboutPony ORM is easy to use and powerful object-relational mapper for Python.
Using Pony, developers can create and maintain database-oriented software applications
faster and with less effort. One of the most interesting features of Pony is
its ability to write queries to the database using generator expressions.
Pony then analyzes the abstract syntax tree of a generator and translates it
to its SQL equivalent.Following is an example of a query in Pony:select(p for p in Product if p.name.startswith('A') and p.cost <= 1000)Such approach simplify the code and allows a programmer to concentrate
on the business logic of the application.Pony translates queries to SQL using a specific database dialect.
Currently Pony works with SQLite, MySQL, PostgreSQL and Oracle databases.The packagepony.orm.examplescontains several examples.Installationpip install ponyEntity-Relationship Diagram EditorPony online ER Diagram Editoris a great tool for prototyping.
You can draw your ER diagram online, generate  Pony entity declarations or SQL script for
creating database schema based on the diagram and start working with the database in seconds.Pony ORM Links:Main site:https://ponyorm.comDocumentation:https://docs.ponyorm.comGitHub:https://github.com/ponyorm/ponyMailing list:http://ponyorm-list.ponyorm.comER Diagram Editor:https://editor.ponyorm.comBlog:https://blog.ponyorm.com
Package: earcut
earcut-pythonA pure Python port of the earcut JavaScript triangulation library.The latest version is based off of the earcut 2.1.1 release, and there have been following enhancements:ifdimensions == 2, project data into 2D instead of triangulating only first two coordinatesThe original project can be found here:https://github.com/mapbox/earcutPypiAvailable onpypi.orgpip install earcutUsagetriangles=earcut([10,0,0,50,60,60,70,10])# Returns [1,0,3, 3,2,1]Signature:earcut(vertices[, holes, dimensions = 2]).verticesis a flat array of vertex coordinates like[x0,y0, x1,y1, x2,y2, ...].holesis an array of holeindicesif any
(e.g.[5, 8]for a 12-vertex input would mean one hole with vertices 5–7 and another with 8–11).dimensionsis the number of coordinates per vertex in the input array (2by default).Each group of three vertex indices in the resulting array forms a triangle.# Triangulating a polygon with a holeearcut([0,0,100,0,100,100,0,100,20,20,80,20,80,80,20,80],[4])# [3,0,4, 5,4,0, 3,4,7, 5,0,1, 2,3,7, 6,5,1, 2,7,6, 6,1,2]# Triangulating a polygon with 3d coordsearcut([10,0,1,0,50,2,60,60,3,70,10,4],null,3)# [1,0,3, 3,2,1]If you pass a single vertex as a hole, Earcut treats it as a Steiner point.If your input is a multi-dimensional array, you can convert it to the format expected by Earcut withearcut.flatten:# The first sequence of vertices is treated as the outer hull, the following sequneces are treated as holes.data=earcut.flatten([[(0,0),(100,0),(100,100),(0,100)],[(20,20),(80,20),(80,80),(20,80)]])triangles=earcut(data['vertices'],data['holes'],data['dimensions'])After getting a triangulation, you can verify its correctness withearcut.deviation:deviation=earcut.deviation(vertices,holes,dimensions,triangles)Returns the relative difference between the total area of triangles and the area of the input polygon.0means the triangulation is fully correct.
Package: earcut-py
earcut-pyA pure Python port of theearcutpolygon triangulation library.Based on the earcut 2.2.4 release.An additional utilityearcut.utils_3dcan be used to project polygons from 3D to 2D space before triangulation, instead of just ignoring z components. (requires NumPy)License: ISCThis project is a fork ofjoshuaskelly/earcut-python.UsageTODO
Package: earendil-mail
EärendilEärendil is a Markdown-based HTML email API written in Python. It allows users to draft an email message in Markdown
and send it as a rich email viewable as both HTML and plaintext.My primary motivation for creating this library was the lack of good options for sending rich emails with an alternative
plaintext message for recipients who may be using a dated email service. I think that providing a faithful
alternative message is important, and that simply using the Markdown used to generate the HTML message as the
alternative is insufficient. Markdown, while fairly human-readable compared to most markup languages, still contains
redundant or unhelpful syntax that is better expressed differently in plaintext. For example, escape characters
should be removed, as should heading and emphasis symbols.FeaturesRenders Common Markdown messages into HTML.Renders a subset of Markdown into plaintext.Sends Markdown emails from either strings or files.Planned FeaturesBulk mailing functionality.Support for rendering a greater subset of Markdown as plaintext.Support for attachments.UsageTo send Markdown-formatted emails using Eärendil, use either thesend_markdown_emailorsend_markdown_email_from_filefunctions. Here is an example that uses each:frompathlibimportPathfromsmtplibimportSMTPfromearendilimportsend_markdown_email,send_markdown_email_from_filesender_email="sender@gmail.com"password="password"recipient="receiver@example.com"subject="Example Subject"message_path=Path("/path/to/markdown.md")withmessage_path.open("r")asfile:message=file.read()withSMTP("smtp.gmail.com",587)asserver:server.starttls()server.login(sender_email,password)# Here, you can either use:send_markdown_email(server,sender_email,recipient,subject,message)# or, alternatively:send_markdown_email_from_file(server,sender_email,recipient,subject,message_path)InstallationRequirementsEärendil can run on any version of Python since3.6.2(inclusive). It also depends on themarkdownlibrary.From PyPIThe easiest way to install Eärendil is to simply run the commandpip3 install earendil-mail.From SourceAlternatively, Eärendil can be installed from source by cloning this repository. To do so, run the following commands:git clone https://github.com/ADSteele916/earendil
cd earendil
pip3 install .UninstallationTo uninstall, simply run the commandpip3 uninstall earendil-mail
Package: earfcn
earfcnConvert downlink EARFCN to frequency and vice versa.
EARFCN -> frequency converts to MHz.
frequency -> EARFCN can take Hz or MHz as input.Multiple EARFCNs map to the same downlink frequency, so freq2earfcn returns a list of possible (band, EARFCN) values.Examplesfromearfcn.convertimportearfcn2freq,earfcn2band,freq2earfcnearfcn2freq(3350)# 2680.0earfcn2band(3350)# 7freq2earfcn(2680)# [(7, 3350), (41, 41490)]Command Line ToolsInstalling this package also installs two command line utilitiesearfcn2freqandfreq2earfcn.
Each takes one argument and outputs to stdout.earfcn2freq33502680.0freq2earfcn2680band=7, earfcn=3350
band=41, earfcn=41490
Package: eark
Emulating Astronautical Reactor KineticsTheearkmodule is a compilation of utilities for analyzing reactor kinetics, with
a bias towards astronautical engineering applications.InstallationTheearkpackage is pip-installable and is tested against python 3.6 and 3.7.pipinstallearkUsingearkInhour Equation SolverTheeark.inhourmodule contains utilities for solving the Inhour equations, for example:>>>importnumpyasnp>>>fromearkimportinhour# Setup initial state>>>beta=0.0075>>>beta_vector=np.array([0.033,0.219,0.196,0.395,0.115,0.042])>>>n_initial=4000>>>period=6.0e-5>>>precursor_constants=np.array([0.0124,0.0305,0.1110,0.3011,1.1400,3.0100])>>>precursor_density=np.array([5000,6000,5600,4700,7800,6578])>>>rho=0.5*beta# Solve>>>inhour.solve(n_initial=n_initial,precursor_density_initial=precursor_density,beta_vector=beta_vector,precursor_constants=precursor_constants,rho=rho,total_beta=beta,period=period,t_max=1,num_iters=3)[[4.000e+03,5.000e+03,6.000e+03,5.600e+03,4.700e+03,7.800e+03,6.578e+03],[1.881e+15,1.856e+16,1.231e+17,1.100e+17,2.210e+17,6.338e+16,2.241e+16],[2.397e+27,2.364e+28,1.568e+29,1.402e+29,2.815e+29,8.076e+28,2.856e+28]]Running the test suiteThe simplest usage ofearkis to run the test suite. This can ensure the installation was successful.>>>importeark>>>eark.test()
Package: earlgrey
EarlgreyEarlgrey is a python library which provides a convenient way to publish and consume messages between processes using RabbitMQ. It is abstracted to RPC pattern.How to use# RPC methodsclassTask:@message_queue_taskasyncdefecho(self,value):returnvalue# Client stubclassStub(MessageQueueStub[Task]):TaskType=Task# Server serviceclassService(MessageQueueService[Task]):TaskType=Taskasyncdefrun():route_key='any same string between processes'client=Stub('localhost',route_key)server=Service('localhost',route_key)awaitclient.connect()awaitserver.connect()result=awaitclient.async_task().echo('any value')print(result)# 'any value'loop=asyncio.get_event_loop()loop.run_until_complete(run())CautionActuallyMessageQueueStubdoes not need exactTaskclass which has full implementation of methods. It just needs signature of methods.# client side.classTask:@message_queue_taskasyncdefecho(self,value):# Just signature. It is okay. Do not need implemetation.# But server must have its implementationpass