Saravanan666/pypi-org huggingface dataset:
Package: pyellipsoid
PyEllipsoidis the package for drawing and analysis of ellipsoids in 3D volumetric images (3D arrays).InstallationThe easiest way to install the latest version is by using pip:$ pip install pyellipsoidYou may also use Git to clone the repository and install it manually:$ git clone https://github.com/ashkarin/pyellipsoid.git
$ cd pyellipsoid
$ python setup.py installHow to useTo draw an ellipsoid:importnumpyasnpfrompyellipsoidimportdrawing# Define an image shape, axis order is: Z, Y, Ximage_shape=(128,128,128)# Define an ellipsoid, axis order is: X, Y, Zell_center=(64,64,64)ell_radii=(5,50,30)ell_angles=np.deg2rad([80,30,20])# Order of rotations is X, Y, Z# Draw a 3D binary image containing the ellipsoidimage=drawing.make_ellipsoid_image(image_shape,ell_center,ell_radii,ell_angles)To compute inertia ellipsoid for given ellipsoid image:importnumpyasnpfrompyellipsoidimportdrawing,analysis# Draw a 3D binary image containing an ellipsoidimage_shape=(128,128,128)ell_center=(64,64,64)ell_radii=(5,50,30)ell_angles=np.deg2rad([80,30,20])image=drawing.make_ellipsoid_image(image_shape,ell_center,ell_radii,ell_angles)# Compute inertia ellipsoidpoints=analysis.sample_random_points(image)inertia_ellipsoid=analysis.compute_inertia_ellipsoid(points)To rotate axes and find relative rotation between the original and rotated axes:importnumpyasnpfrompyellipsoidimportgeometryoriginal_axes=np.array([[1,0,0],[0,1,0],[0,0,1]])rot_angles=np.deg2rad([0,0,45])# Rotate around Z-axis by 45 deg# Build rotation matrix and rotate the axesrotm=geometry.build_rotation_matrix(*rot_angles)rotated_axes=np.dot(rotm,np.transpose(original_axes)).T# Find relative rotationrel_rotm=geometry.find_relative_axes_rotation(original_axes,rotated_axes)# Validate relative rotation matrixrel_rotated_axes=np.dot(rel_rotm,np.transpose(original_axes)).Tassert(np.all(rotated_axes==rel_rotated_axes))# Compute rotation angles# Please note, that these angles might differ from rot_angles!rel_rot_angles=geometry.rotation_matrix_to_angles(rel_rotm)print(np.rad2deg(rel_rot_angles))
Package: pyELockAPI
pyELockAPI Lib - A simple API to interface Python with the ELock card from Elektor (April 2014)===============================================================================================This module include ELock object that permit to initiate a secure communication between the python script and theELock card. So basic function has been added to get the temperature value, or set the relay state.How to install:---------------python setup.py installHow to use :------------Before using you need to have the appropriate certificate and key. In the following code we make assumption that youhave the following files :* ISLclient-cert.pem : TLS Client certificate* ISLclient-key.pem  : Client KEY* cacert.pem         : CA CertificatePlease see the following documentation (Config Elock - Detailed steps.pdf) for more information on How togenerate and setup these certificates.Licence:--------DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSEVersion 2, December 2004Copyright (C) 2015 Yoann Darche <yoann d AT hot mail DOT com>Everyone is permitted to copy and distribute verbatim or modifiedcopies of this license document, and changing it is allowed as longas the name is changed.DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSETERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION0. You just DO WHAT THE FUCK YOU WANT TO.
Package: py-elog
OverviewThis Python module provides a native interfaceelectronic logbooks. It is compatible with Python versions 3.5 and higher.UsageFor accessing a logbook athttp[s]://<hostename>:<port>/[<subdir>/]<logbook>/[<msg_id>]a logbook handle must be retrieved.importelog# Open GFA SwissFEL test logbooklogbook=elog.open('https://elog-gfa.psi.ch/SwissFEL+test/')# Contstructor using detailed arguments# Open demo logbook on local host: http://localhost:8080/demo/logbook=elog.open('localhost','demo',port=8080,use_ssl=False)Once you have hold of the logbook handle one of its public methods can be used to read, create, reply to, edit or delete the message.Get Existing Message IdsGet all the existing message ids of a logbookmessage_ids=logbook.get_message_ids()To get if of the last inserted messagelast_message_id=logbook.get_last_message_id()Read Message# Read message with with message ID = 23message,attributes,attachments=logbook.read(23)Create Message# Create new message with some text, attributes (dict of attributes + kwargs) and attachmentsnew_msg_id=logbook.post('This is message text',attributes=dict_of_attributes,attachments=list_of_attachments,attribute_as_param='value')What attributes are required is determined by the configuration of the elog server (keyworkRequired Attributes).
If the configuration looks like this:Required Attributes = Author, TypeYou have to provide author and type when posting a message.In case type need to be specified, the supported keywords can as well be found in the elog configuration with the keyOptions Type.If the config looks like this:Options Type = Routine, Software Installation, Problem Fixed, Configuration, OtherA working create call would look like this:new_msg_id=logbook.post('This is message text',author='me',type='Routine')Reply to Message# Reply to message with ID=23new_msg_id=logbook.post('This is a reply',msg_id=23,reply=True,attributes=dict_of_attributes,attachments=list_of_attachments,attribute_as_param='value')Edit Message# Edit message with ID=23. Changed message text, some attributes (dict of edited attributes + kwargs) and new attachmentsedited_msg_id=logbook.post('This is new message text',msg_id=23,attributes=dict_of_changed_attributes,attachments=list_of_new_attachments,attribute_as_param='new value')Search Messages# Search for text in messages or specify attributes for search, returns list of message idslogbook.search('Hello World')logbook.search('Hello World',n_results=20,scope='attribname')logbook.search({'attribname':'Hello World',...})Delete Message (and all its replies)# Delete message with ID=23. All its replies will also be deleted.logbook.delete(23)Note:Due to the way elog implements delete this function is only supported on english logbooks.InstallationThe Elog module and only depends on thepasslibandrequestslibrary used for password encryption and http(s) communication. It is packed asanaconda packageand can be installed as follows:condainstall-cpaulscherrerinstituteelog
Package: pyeloqua
# pyeloquaPython wrapper functions for Eloqua APIs, tested with Python 2.7 and Python 3.3 - 3.6.Documentation is your friend (http://docs.oracle.com/cloud/latest/marketingcs_gs/OMCAC/index.html) - if you can't do it in the API, you can't do it with this module.**NOTICE** I'm in the middle of a rebuild that will result in breaking changes to existing uses. This is to facilitate better unit testing and meet coding standards and best practices. Right now, if you upgrade to the latest version (release v0.4.0), you will receive warnings when attempting to use the old methods. After a few minor version releases, when the new code is stabilized, the deprecated code will be removed entirely. Please continue using release v0.3.5 until you have updated your code.Please feel free to let me know of any problems by filing an issue on Github.**What can the API do?** The Eloqua APIs are for the import and export of data from an existing Eloqua instance.# Examples##Getting startedYou need an Eloqua user account with at least *Advanced Marketing User* or *API User* permissions.To work with the bulk API, we start with the `Bulk` class:```pythonfrom pyeloqua import Bulkbulk = Bulk(company='mycompany', username='myusername', password='mypassword')```We can even view some basic information about our Eloqua instance:```pythonbulk.site_id # Eloqua site IDbulk.user_display # Your displayed username```To work with small batches of form data, use the `Form` class*NOTE: for large batches of form data that do not need to be close to realtime,use Bulk for an Activity export*```pythonfrom pyeloqua import Formform = Form(company='mycompany', username='myusername', password='mypassword',form_id=1234)```## More examplesThere are examples in the `/examples` directory:- Export a segment of contacts (Walkthrough, Code)- Import a set of contacts (Walkthrough, Code )- Export a set of event data records- Import a set of event data records- Export a set of custom object data records- Import a set of custom object data records- Export a set of activity data- Export form submission data via REST API (with the `Form` class)## Youtube tutorials*Coming soon!*# Feature requestsTo request a new feature in this package, please open a new issue on the Github repo.To report problems, please open a new issue on the Github repo.# ContributionPull requests are welcomed! All pull requests must have the following:- OK global score from pylint using PEP8 standards- This one is a bit loose for now given that the old code is still a mess; once the renovation is complete, we will implement a minimum passing pylint score- Passing unit tests (`nosetests`) that cover the included use cases and pass the current `tox` config
Package: pyeloverblik
pyeloverblikPython wrapper for eloverblik.dk api.It can read the following data from eloverblik.Hourly dataMonthy dataFeesInstallationInstall the library from PyPI:pip install pyeloverblik.UsageAfter installation either call the library directly withpython -m pyeloverblikor integrate the library in your code like below.client=Eloverblik(REFRESH_TOKEN)data=client.get_latest(METERING_POINT)orclient=Eloverblik(REFRESH_TOKEN)data=client.get_time_series(METERING_POINT,from_date=datetime.now()-timedelta(days=2),to_date=datetime.now(),aggregation='Hour')# In above example from_date and to_date is datetime objects.
Package: pyElphel
Control Elphel camera 353 from python using RTSP protocol and from imgsrv access for full resoltion images.
See the GitHub Page:https://github.com/hchauvet/pyElphelRequirementPython OpenCvhttp://docs.opencv.org/trunk/doc/py_tutorials/py_setup/py_table_of_contents_setup/py_table_of_contents_setup.html#py-table-of-content-setupInstallationFrom file:python setup.py installFrom pip:pip install pyElphelExamplesVideo at full resolution (2592x1936) is impossible using RTSP. For this resolution usegrab_image_slow(), which relies on imgsrv access through http.Set parameters:from pyElphel import Elphel

cam = Elphel()

cam.params['WOI_WIDTH'] = 1280
cam.params['WOI_HEIGHT'] = 720
cam.params['COLOR'] = 1
cam.params['EXPOS'] = 10000

cam.set_params()Live display:from pyElphel import Elphel

with Elphel() as cam:
    cam.display()Get single image:from pyElphel import Elphel

with Elphel() as cam:
    cam.init_live()

    img = cam.grab_image()Get single image at full resolution:from pyElphel import Elphel

cam = Elphel()

img = cam.grab_image_slow()
Package: pyElsHelp
pyElsHelp LibraryWhat is this?The module allows you to authenticate and get information from ELSCHOOL diary with your login and passwordQuick GuideThe module is based on the following structure:from pyElsHelp import ElsUser

user = ElsUser(login='login', password='pass')

print(user.auth())
print(user.get_class())
print(user.get_marks(subject='math', period='1'))DeveloperMy GitHub profilehere
Package: pyelucidate
=============================PyElucidate=============================.. image:: https://badge.fury.io/py/pyelucidate.png:target: http://badge.fury.io/py/pyelucidate.. image:: https://travis-ci.com/digirati-co-uk/pyelucidate.svg?token=SQeW1amdJpFZbNJ175sQ&branch=master:target: https://travis-ci.com/digirati-co-uk/pyelucidateOpen Source Python Tools for the Elucidate Annotation Server.Introduction------------Simple Python helpers for working with Elucidate_, an Open Annotation and W3C Web Annotation annotation server... _Elucidate: https://github.com/dlcs/elucidate-serverElucidate uses the `W3C Web Annotation Protocol`__ but also has some useful additional service APIs. See Elucidate'susage_ documentation for further information... _W3CA:  https://www.w3.org/TR/annotation-protocol/__ W3CA_.. _usage: https://github.com/dlcs/elucidate-server/blob/master/USAGE.mdFull documentation at Readthedocs_... _Readthedocs: https://pyelucidate.readthedocs.ioRequirements------------Python 3.5+Required python packages are listed in `requirements.txt`... include:: installation.rstUsage-----Placeholder.. include:: CONTRIBUTING.rstPyElucidate uses Python 3.x. No backwards compatibility with Python 2.x is provided.Feel free to raise Github issues.If you find an issue you are interested in fixing you can:* make sure the issue is small and atomic* Fork the repository* Clone the repository to your local machine* Create a new branch for your fix using `git checkout -b branch-name-here`.* Fix the issue.* Commit and push the code to your remote repository.* Submit a pull request to the `pyelucidate` repository, with a description of your fix and the issue number.* The PR will be reviewed by the maintainer_ and either merge the PR or response with comments... _maintainer: http://github.com/mattmcgrattanLicense-------MIT LicenseCopyright Digirati Ltd. (c) 2018Permission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in allcopies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHERLIABILITY, 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 THESOFTWARE.Documentation-------------The full documentation is at https://pyelucidate.readthedocs.io.History-------0.1.0 (2018-10-12)++++++++++++++++++* First release on PyPI.
Package: py-elvis
Electric Vehicle Charging Infrastructure Simulator (ELVIS)This repository contains the source code for Elvis, a planning and management tool for electric vehicles charging infrastructure.InstallationInstall using pipTo install the package simply runpipinstallpy-elvisThis installs the package locally using pip and installs required packages, if not available.Manually download and locally install the elvis packageThis may be useful if you want to add changes to the package. Then download or checkout this repository and in the top level that contains thesetup.pyfile, runpipinstall-rrequirements.txt
pythonsetup.pyinstallThis installs the package locally using pip and installs required packages, if not available.UsageFollowing, a simple example using one of the pre-defined scenario configurationsfromelvisimportScenarioConfig,simulate,num_time_stepsimportyamlwithopen("elvis/data/config_builder/office.yaml",'r')asf:yaml_str=yaml.safe_load(f)config_from_yaml=ScenarioConfig.from_yaml(yaml_str)results=simulate(config_from_yaml,start_date='2020-01-01 00:00:00',end_date='2020-12-31 23:00:00',resolution='01:00:00')load_profile=results.aggregate_load_profile(8760)importmatplotlib.pyplotaspltplt.plot(load_profile)Applications in the wild and acknowledgementsELVIS was developed at theDAI-Laboratorysupported in part by Stromnetz Berlin, as well as the Federal Minister for Environment, Nature Conservation and Nuclear Safety (BMU) through the research projectFlexNet4E-Mobility(funding reference 16EM3147-2) and the Federal Ministry for Economic Affairs and Energy (BMWi) throught the projectNeue Berliner Luft(funding reference 01MZ18013E).It's conceputally based on earlier similar simulations tools that have been peer-reviewed and published in:Draz, Mahmoud, Marcus Voß, Daniel Freund, and Sahin Albayrak "The impact of electric vehicles on low voltage grids: A case study of berlin." 2018 Power Systems Computation Conference (PSCC). IEEE, 2018.Draz, Mahmoud, and Sahin Albayrak. "A Power Demand Estimator for Electric Vehicle Charging Infrastructure." 2019 IEEE Milan PowerTech. IEEE, 2019.An earlier tool has been presented at the poster sesssion at the 10th European openmod Workshop in Berlin (15.-17.1.2020).ELVIS has been completely re-implemented as a software tool to be used with a web-basedGraphical User Interface(contact izgh.hadachi[at]dai-labor.de if you want to get test user access) and to be integrated prototypically as a load in DIgSILENT PowerFactory for Stromnetz Berlin. It's conceptually related to the earlier simulation tools and was further conceputally inspired by similar tools such as:https://github.com/RAMP-project/RAMP-mobilityhttps://github.com/TUMFTM/urbanevhttps://github.com/rl-institut/spice_evhttps://gitlab.com/diw-evu/emobpy/emobpyELVIS has been used to simulate data in the peer-reviewed paper:Hadachi, Izgh, Marcus Voss, and Sahin Albayrak. "Sector-Coupled District Energy Management with Heating and Bi-Directional EV-Charging." 2021 IEEE Madrid PowerTech. IEEE, 2021.This talkat the Berliner Energietage presents some example results of the tool.
Package: pyEMA
Experimental and operational modal analysisCheck out thedocumentation.New in version 0.26include (or exclude) upper and lower residualsdriving point implementation (scaling modal constants to modal shapes)implementation of the LSFD method that assumes proportional damping (modal constants are real-valued)FRF type implementation (enables the use of accelerance, mobility or receptance)Basic usageMake an instance ofModelclass:a=pyema.Model(frf_matrix,frequency_array,lower=50,upper=10000,pol_order_high=60)Compute poles:a.get_poles()Determine correct poles:The stable poles can be determined in two ways:Displaystability charta.select_poles()The stability chart displayes calculated poles and the user can hand-pick the stable ones.If the approximate values of natural frequencies are already known, it is not necessary to display the stability chart:approx_nat_freq=[314,864]a.select_closest_poles(approx_nat_freq)After the stable poles are selected, the natural frequencies and damping coefficients can now be accessed:a.nat_freq# natrual frequenciesa.nat_xi# damping coefficientsReconstruction:There are two types of reconstruction possible:Reconstruction usingownpoles (the default option):H,A=a.get_constants(whose_poles='own')whereHis reconstructed FRF matrix andAis a matrix of modal constants.Reconstruction oncusing poles froma:c=pyema.Model(frf_matrix,frequency_array,lower=50,upper=10000,pol_order_high=60)H,A=c.get_constants(whose_poles=a)
Package: pyemailnator
Library for working with the servicehttps://www.emailnator.com/importasynciofrompyemailnatorimportCreateClientasyncdefmain()->str:client:CreateClient=CreateClient()random_email:str=awaitclient.get_email()last_message:dict=awaitclient.get_last_message_data(email=random_email)message_id:str=last_message['messageID']message_text:str=awaitclient.get_message(email=random_email,message_id=message_id)returnmessage_textif__name__=='__main__':print(asyncio.run(main()))DONATE (any evm) - 0xDEADf12DE9A24b47Da0a43E1bA70B8972F5296F2
Package: py-emailprotections
py-emailprotectionsThis is a simple library designed to assist people with finding email protections.Installingpipinstallpy-emailprotectionsUsageThe simplest use of this library is to find and process SPF and DMARC records for domains. This is easiest with theSpfRecord.from_domain(domain)andDmarcRecord.from_domain(domain)factory methods.Example:import emailprotectionslib.spf as spf
import emailprotectionslib.dmarc as dmarc

spf_record = spf.SpfRecord.from_domain("google.com")
dmarc_record = dmarc.DmarcRecord.from_domain("google.com")

print spf_record.record
print dmarc_record.policy
Package: py-emails
py-emailsSimple wrapper aroundemailandsmtplibfor composing and sending email messages in an intuitive, simple interface.
Pure python, no dependencies outside of the standard libraryInstallation and useInstall with pip or your favorite package manager:pip install py-emailsEmails can be created declaratively:fromemailsimportEmailsmtp_config={'sender':'you@example.com','host':'smtp.example.com'}first_attachment={'filename':'example.png','content':open('example.png','rb').read()}other_attachment={'filename':'example.csv','content':open('example.csv','rb').read()}my_email=Email(smtp_config,subject='How are you?',body='Long time no see, we should get together!',attachments=[first_attachment,other_attachment])Or using a template dictionary:fromemailsimportfrom_templatesmtp_config={'sender':'you@example.com','host':'smtp.example.com','port':587,'password':'<secret password>'}template={'smtp_config':smtp_config,'subject':'How are you?','body':'Long time no see, we should get together!'}my_email=from_template(template)Once you have the email object, sending it is as simple as specifying one or more recipients:importemailssmtp_config={'sender':'you@example.com','host':'smtp.example.com'}my_email=emails.Email(smtp_config)my_email.send('person1@example.com')my_email.send(['person2@example.com','person3@example.com'])Seeexamples.pyfor more in depth use cases
Package: pyemailval
pyemailval is a package for Python that check if an email is valid, properly formatted and really exists.INSTALLATIONYou can install the package with pip:pip install pyemailvalUSAGEBasic usage:from pyemailval import validate_email
is_valid = validate_email('example@example.com', check_regex=True, check_mx=True)check_regex will check will the email address has a valid structure and defaults to True
check_mx will check the mx-records and check whether the email actually existsTODOs and BUGSSee:http://github.com/Ben-Baert/pyemailval/issues
Package: py_email_validation
This module provides a single method, valid_email_address(), which returnsTrue or False to indicate whether a given address is valid according to the
‘addr-spec’ part of the specification given in [RFC 2822]
(http://www.ietf.org/rfc/rfc2822.txt).  Ideally, we would like to find this
in some other library, already thoroughly tested and well- maintained.  The
standard Python library email.utils contains a parse_addr() function, but
it is not sufficient to detect many malformed addresses.This implementation aims to be faithful to the RFC, with the exception of a
circular definition (see comments inline), and with the omission of the
pattern components marked as “obsolete”.Yes, all this really does is build a big regular expression.  But it builds
it in nice pieces that correspond to the RFC, and there’s a big bunch of
unit tests that try to ensure each little piece of the regexp works as
intended.  (See test_email_validation.py.)
Package: pyemap
PyeMap (pronounced Pie-Map) is a python package for automatic identification and visualization of electron and hole transfer pathways in proteins. For single PDB structures, PyeMap identifies and visualizes possible efficient pathways from a specified source residue to the surface or to a specified target residue. For a group of proteins, PyeMap identifies common pathways/motifs which are shared among the PDB structures by mining for common patterns in the set of protein graphs. These shared pathways are then clustered into groups based on their similarity.PyeMap serves as the back end foreMap, an online platform for identification and visualization of electron and hole transfer pathways in proteins.