Saravanan666/pypi-org huggingface dataset:
Package: elapsed
Installation$[sudo]pipinstallelapsedFeaturesacceptsdatetimeor pid.os.getcwd()by defaultExamplesdatetimeelapsed time>>>dt=datetime.datetime.now()>>>time.sleep(2)>>>elapsed.get(dt)'00:02'process  elapsed time by pid (os.getpid()by default)>>>importelapsed>>>e=elapsed.get(1)'02-16:30:38'>>>e.days,e.hours,e.minutes,e.seconds(2,64,3870,232238)elapsed.seconds(),elapsed.minutes(),elapsed.hours(),elapsed.days()>>>elapsed.seconds(1)232238>>>elapsed.minutes(1)3870>>>elapsed.hours(1)64>>>elapsed.days(1)2readme42.com
Package: elapsedtimer
elapsedtimerPython elapsed time utilities.The main interface to this package is anElapsedTimerclass. This class will use the highest
resolution timer available to Python depending on the OS, eithertime.time()ortime.clock(). Its purpose is easily to measure and print the duration of a task, and is
normally meant to be used as a context manager.Basic example:>>> with ElapsedTimer('say hello'):
...     print 'hi there!'
hi there!
13.113 µs: say helloElapsedTimerThe constructor forElapsedTimertakes an optional string describing the operation being
performed. It also optionally accepts a file object to change where the resulting duration
message will be printed. The output file defaults to sys.stdout.The constructor can also take a logger instance and log level via the optionalloggerandloglevelkeyword parameters. If a logger is provided, it takes precedence over a file object
and the duration message will be output via the logger. The log level defaults toDEBUG.You can control anElapsedTimerinstance directly instead of using it as a context manager.
It hasstart()andstop()methods. Thestop()method will not print the duration for
you like exiting a context manager instance does.There is anelapsedproperty that returns the elapsed time sincestart()was called or the
context manager entered. Atimedeltaproperty is also available that returns the elapsed
time as a datetime.timedelta object instead of a float, though note that this class this only has
microsecond resolution.There is a module-levelenablevariable that acts as a global enable switch for all printing
of results byElapsedTimer. It defaults to True.TimeoutAnother class in the module isTimeout. It adds a few methods to make it easy to check for
timeouts. You can use this class as a context manager. The constructor takes the same parameters
as forElapsedTimer, except for a new first param of the timeout in seconds.There are two methods to check the timeout,check()andcheck_and_raise(). The former
compares the elapsed time against the timeout and returned True if a timeout occurred. The latter
will raiseTimeoutErrorif a timeout happens. You can use thetimed_outproperty to
as another way to check, equivalent to callingcheck().LicenseThis package is licensed under the BSD three-clause license. See the LICENSE file for details.Copyright © 2014-2022 Chris Reed.
Package: elapse-secrets
Elapse Secrets FiltersElapse Secrets Filters is a Python package designed to help you search and mask sensitive information in a body of text using pre-defined regular expressions. This package includes filters for common secrets like AWS keys, Github tokens, API keys, and much more.The package provides two main functions:filter_elapse_secrets(text: str) -> str- Uses the predefined regex filters to search and mask (with asterisks) any matching sensitive information in the input text.find_error_in_regex(yaml_file: str) -> None- Checks the YAML file containing regex rules for any incorrect patterns and logs the error if any are found.Getting StartedInstall elapse-secretspipinstallelapse-secretsUsageThis is a basic usage example.fromelapse_secretsimportfilter_elapse_secretstext_with_secrets="My AWS Access Key is AKIAYOURACCESSKEYHERE"filtered_text=filter_elapse_secrets(text_with_secrets)print(filtered_text)# Output: My AWS Access Key is ********Documentationfilter_elapse_secrets(text: str) -> strThis function takes a string as input and returns the string with sensitive information replaced by asterisks.Parameterstext (str): The text to filter.Returnsstr: The filtered text.find_error_in_regex(yaml_file: str) -> NoneThis function checks a YAML file for incorrect regular expression patterns. If an error is found, it is logged.Parametersyaml_file (str): The YAML file to check.ReturnsNoneContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.LicenseThis project is licensed under the terms of the MIT license.ContactPlease feel free to contact the maintainers of this project if you have any questions.AcknowledgmentsWe would like to thank all the contributors who have been part of this project.
Package: elarian
Elarian Python SDKThe wrapper provides convenient access to the Elarian APIs.Project Status: Still under ACTIVE DEVELOPMENT, APIs are unstable and may change at any time until release of v1.0.0.DocumentationTake a look at theAPI docs here.InstallYou can install the package frompypiby running:$pipinstallelarianUsagefromelarianimportElarian,Customerelarian=Elarian(api_key="test_api_key",org_id="test_org",app_id="test_app_id")customer=Customer(client=elarian,number="+254709759881")awaitelarian.connect()# get customer stateresp=awaitcustomer.get_state()print(resp)Development$gitclonehttps://github.com/ElarianLtd/python-sdk.git
$cdpython-sdk
$pythonsetup.pyRun all tests:Update the values in yourtests/.env$cdtests
$pytestIssuesIf you find a bug, please file an issue onour issue tracker on GitHub.
Package: elaspic
IntroductionWelcome to the ELASPIC code repository!Complete documentation is availible onReadTheDocs.For a small number of mutations, you can try running ELASPIC using ourwebserver.ReferencesWitvliet D, Strokach A, Giraldo-Forero AF, Teyra J, Colak R, and Kim PM
(2016)ELASPIC web-server: proteome-wide structure based prediction of
mutation effects on protein stability and binding affinity.Bioinformatics (2016) 32 (10): 1589-1591. doi:10.1093/bioinformatics/btw031.Berliner N, Teyra J, Çolak R, Garcia Lopez S, Kim PM (2014)Combining
Structural Modeling with Ensemble Machine Learning to Accurately Predict
Protein Fold Stability and Binding Affinity Effects upon Mutation.PLoS
ONE 9(9): e107353. doi:10.1371/journal.pone.0107353.
Package: elast
ElastElast is part of the Rayse library for hp-FEA.InstallationUse the package managerpipto install Elast:pipinstallelastLicenseElast is licensed underGNU LGPLv3.This software relies on thePyO3library undertheApache-2.0license for ffi and ontherayoncrate under theMITandApache-2.0licenses for parallelism.
Package: elastalert2
ElastAlert 2ElastAlert 2 is a standalone software tool for alerting on anomalies, spikes, or other patterns of interest from data inElasticsearchandOpenSearch.ElastAlert 2 is backwards compatible with the originalElastAlertrules.Docker and KubernetesElastAlert 2 is well-suited to being run as a microservice, and is available
as an image onDocker Huband onGitHub Container Registry. For more instructions on how to
configure and run ElastAlert 2 using Docker, seehere.AHelm chartis also included for easy configuration as a Kubernetes deployment.DocumentationDocumentation, including an FAQ, for ElastAlert 2 can be found onreadthedocs.com. This is the place to start if you're not familiar with ElastAlert 2 at all.Elasticsearch 8 support is documented in theFAQ.The full list of platforms that ElastAlert 2 can fire alerts into can be foundin the documentation.ContributingPlease see ourcontributing guidelines.LicenseElastAlert 2 is licensed under theApache License, Version 2.0.
Package: elastalk
Simple Conveniences for Talking to ElasticsearchProject FeatureselastalkaClickcommand-line application that
you can use to generate hashesautomated unit tests you can run withpytestaSphinxdocumentation
projectGetting StartedThe project’s documentation contains a section to help youget
startedas a developer or user of the library.Development PrerequisitesIf you’re going to be working in the code (rather than just using the
library), you’ll want a few utilities.GNU MakePandocResourcesBelow are some handy resource links.Project DocumentationClickis a Python package for
creating beautiful command line interfaces in a composable way with
as little code as necessary.Sphinxis a tool that
makes it easy to create intelligent and beautiful documentation,
written by Geog Brandl and licnsed under the BSD license.pytesthelps you write
better programs.[GNU Make] is a tool which controls the generation of executables and
other non-source files of a program from the program’s source files.AuthorsPat Daburu-Initial work-githubSee also the list ofcontributorswho participated in this project.MIT LicenseCopyright (c) patdaburuPermission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the
“Software”), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:The above copyright notice and this permission notice shall be included
in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Package: elastic
ElasticElastic is a set of python routines for calculation of elastic
properties of crystals (elastic constants, equation of state, sound
velocities, etc.). It is a third version of the in-house code I have
written over few years and is implemented as a extension to theASEsystem. The code was a basis for
some of my publications and was described briefly in these papers. The
code was available to anyone, presented at theWorkshop on ab initio
Calculations in Geosciencesand used by some of my co-workers. This code is a re-implementation of
elastic as a module for the ASE.The on-line documentation is placed onReadTheDocsorElastic
website. You can obtain thedocumentation as a PDF
fileas
well.The docs are also published at:Elastic over
IPFSThe stable site hash is:
/ipns/QmSHUr59SLvWEZq7URTDGgouVaq7vFJYG7HqtBgL4s6M2u/InstallationThe installation is simple if you are using conda package menager:conda install -c conda-forge elasticIf you need a more elaborateinstallation
instructionfor computing environment to work with ASE - I have written just such a
document. It is a first in the series of tutorials of this subject and
you can find it under nbviewer link above.The project is open and I welcome patches, ideas and other feedback.AcknowledgmentsIn the past the project was partially supported by:Department of Computational Material Science, Institute of Nuclear
Physics, PAN, PolandDepartment of Engineering, University of Saskatchewan, Canada
Package: elastic2-doc-manager-transaction
The mongo-connector project originated as a MongoDB mongo-labs
project and is now community-maintained under the custody of YouGov, Plc.This is just a fork for the originalelastic2-doc-managerbut
it is attached tomongo-connector-transactionto fix the transaction sync
issueGetting StartedThis package is a document manager formongo-connector-transactionthat
targets Elasticsearch versions 2.x and 5.x – don’t let the name fool you!
For information on running mongo-connector with Elasticsearch, please see theMongoConnector Usage with Elasticsearchwiki page.InstallationThe installation of the elastic2-doc-manager depends on which version of
Elasticsearch you are targeting.Elasticsearch 2.xFor use with an Elasticsearch 2.x server, install withpip:pip install 'elastic2-doc-manager-transaction[elastic2]'Elasticsearch 5.xFor use with an Elasticsearch 5.x server, install with:pip install 'elastic2-doc-manager[elastic5]'NoteVersion 0.3.0 added support for Elasticsearch 5.x.Amazon Elasticsearch ServiceTo use with Amazon Elasticsearch Service, you must install the required AWS
dependencies along with the version of Elasticsearch:pip install 'elastic2-doc-manager[elastic2,aws]'DevelopmentYou can also install the development version of elastic2-doc-manager
manually:git clone https://github.com/AmrAdelKhalil/elastic2-doc-manager
pip install -e './elastic2-doc-manager[elastic2]'You may have to runpipwithsudo, depending on where you’re
installing and what privileges you have.note:: Please note that before mongo-connector version 2.2.2, the elastic
doc manager was packaged with mongo-connector and only supported
Elasticsearch 1.x.Running the testsRequirementsCopy of the Elastic 2.x Document Manager Github repositoryThe tests are not included in the package from PyPI and can only be acquired
by cloning this repository on Github:git clonehttps://github.com/AmrAdelKhalil/elastic2-doc-managerToxInstalltox.Environment variablesThere are a few influential environment variables that affect the tests. These are
defined in the tox.ini.All the tests live in thetestsdirectory.Running tests on the command-lineWhile the tests take care of setting up and tearing down MongoDB clusters on
their own, make sure to start Elasticsearch before doing a full test run!You can run all the tests with one command (this works in all supported Python versions):toxError messagesSome of the tests are meant to generate lots ofERROR-level log messages,
especially the rollback tests. mongo-connector logs exceptions it encounters
while iterating the cursor in the oplog, so we see these in the console output
while MongoDB clusters are being torn apart in the tests. As long as all the
tests pass with anOKmessage, all is well.
Package: elasticache-auto-discovery
Licensed under the Apache License, Version 2.0 (the “License”);
you may not use this file except in compliance with the License.
You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an “AS IS” BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.Description-Content-Type: UNKNOWN
Description: UNKNOWN
Keywords: memcached,elasticache,aws
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.6
Package: elasticache_pyclient
# do auto discovery for aws elasticache## introduce
Implement aws elasticache auto discovery, for detail about auto discovery, please reference to:http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/AutoDiscovery.htmlIt uses python-memcached implements memcache command, and use hash_ring implements consistent hash, below links have more detail about python-memcached and hash_ring:https://pypi.python.org/pypi/python-memcachedhttps://pypi.python.org/pypi/hash_ring/## installpip install elasticache_pyclient## usage>>> from elasticache_pyclient import MemcacheClient
>>> mc = MemcacheClient('test.lwgyhw.cfg.usw2.cache.amazonaws.com:11211')
>>> mc.set('foo', 'bar')
True
>>> mc.get('foo')
'bar'Besides set and get, it supports all the python-memcached methods, to examine all the python-memcached methods, you can run these commands in python interpreter:import memcache
help(memcache.Client)## stop atuo discovery timer
Every MemcacheClient will start a timer for auto discovery, if do not use MemcacheClient object anymore, please call this funciton to stop the timer, or the timer will run forever>>> mc.stop_timer()## version support
The elasticache_pyclient package is tested on python 2.7, 3.5 and 3.6.
Package: elastic-agent-setup
elastic-agent-setupA python package to install and enroll an Elastic Agent on multiple host operating systems.Getting StartedIn order to use this package you must configure general settings for your environment. Here is an example of the configuration options:fromelastic_agent_setupimportElasticAgentagent=ElasticAgent()agent.configure(username='admin',password='some_password'elasticsearch='https://elasticsearch:9200',kibana='https://kibana:5601',certificate_authority=None,verify_ssl=True)Once you have configured theelastic-agent-setuppackage you can eitherinstallorenrollyour elastic-agent.Please see Elatics documentation on the differences between enrolling and installing an agent.Here is an example of installing an Elastic Agent:fromelastic_agent_setupimportElasticAgentagent=ElasticAgent()agent.configure(username='admin',password='some_password'elasticsearch='https://elasticsearch:9200',kibana='https://kibana:5601',certificate_authority=None,verify_ssl=True)response=agent.install(version='7.12.1,preflight_check=True)print(response)Built Withcarcass- Python packaging templateContributingPlease readCONTRIBUTING.mdfor details on our code of conduct, and the process for submitting pull requests to us.VersioningWe useSemVerfor versioning.AuthorsJosh Rickard -Initial work-MSAdministratorSee also the list ofcontributorswho participated in this project.LicenseThis project is licensed under the MIT License - see theLICENSEfile for details
Package: elastica-pipelines
Elastica PipelinesFeaturesIOLazy loading of simulation time-series data generated byElastica++applicationsTrack a single, or a subset, or whole group of rods, over time using familiar slicing APIInstallationYou can installElastica PipelinesviapipfromPyPI:$pipinstallelastica-pipelinesUsagePlease see theCommand-line Referencefor details.IOfromelastica_pipelinesimportio# ...# Read only access to data written by Elastica++series=io.series(metadata="elastica_metadata.h5")# use series like a python Mappingfort,snapshotinseries.iterations():print("Iteration:{0}at time{1}".format(t.iterate,t.time))# Snapshot is a mapping contain system types such as CosseratRods & Spheres# Here we access only cosserat rodsforrod_id,rodinsnapshot.cosserat_rods().items():# snapshot['CosseratRod'] also works!ifrod_id==0:print("  Rod '{0}' attributes:".format(rod_id))# even rod is a Mapping, get its keysprint("{0}".format(list(rod.keys())))print("  Rod '{0}' position:".format(rod_id),rod['Position'])ContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theMIT license,Elastica Pipelinesis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.CreditsThis project was generated from@cjolowicz'sHypermodern Python Cookiecuttertemplate.
Package: elastic-apm
This is the official Python module for Elastic APM.It provides full out-of-the-box support for many of the popular frameworks,
including Django, and Flask. Elastic APM is also easy to adapt for most
WSGI-compatible web applications viacustom integrations.Your application doesn’t live on the web? No problem! Elastic APM is easy to use in
any Python application.Read thedocumentation, including instructions onrunning the tests locally.If you’re interested in contributing,start here!LicenseBSD-3-ClauseMade with ♥️ and ☕️ by Elastic and our community.
Package: elastic-apm-falcon
elastic-apm-falconMiddleware for tracking Falcon requests/responses with Elastic APM.This package provides a middleware for monitoringFalconapplications withElastic APM. The middleware hooks into Falcon's
request and response processing and maintains an Elastic APM client to track transactions and
metadata.InstallationYou can install the latest stable version fromPyPI:$ pip install elastic-apm-falconUsageYou can addelastic_apm_falconlike any other middleware to your Falcon application. However,
you should make sure to import and instrumentelasticapmas early as possible.# import and instrument elasticapm as early as possibleimportelasticapmelasticapm.instrument()# import remaining modulesimportfalconfromelastic_apm_falconimportElasticApmMiddleware# initialize Elastic APM middlewareelastic_apm_middleware=ElasticApmMiddleware(service_name="your_service")# initialize Falcon applicationapplication=falcon.App(middleware=elastic_apm_middleware)# add routes and resources to your application below...LicenseThis package is licensed under the terms of the MIT license.Made with ♥ atsnapADDY.
Package: elastic-appsearch
elastic-appsearchElastic App Search API ClientInstallationpip install elastic-appsearchUsagefromelastic_appsearchimportClientendpoint='app-search-api-endpoint'key='private-key'c=Client(endpoint,key)Searchc.search('engine-name','sunny')Create a synonymc.create_synonym('engine-name',['hi','hello','hiya'])List all synonymsc.get_synonyms('engine-name')
Package: elastica-rhino
PyElastica to RhinoThe package is in alpha-phase dev-stage.PyElastica extension and Rhino plugin for Cosserat Rod (+ Rigid Body) visualization.RequirementsThe Grasshopper plugin does not have any additional requirement, but we recommend usinganemonetogether. This plugin provide loop function that can be used to generate animated video.Grasshopper PluginPyElastica exportsnpzfile which can directly be imported usingNpzImportmodule.For now,NpzImport(Legacy)is used. More generalized version is still under development.ProvidesCosseratRodandCosseratRodPeriodicthat constructs rods directly.Shape of position:(num_rod, timesteps, 3, num_nodes)Shape of radius:(num_rod, timesteps, 3, num_elements)Ifperiodicis set to true, the trapazoidal averaging step is skipped for the radius.All modules includeC (switch)input. The purpose is to serialize the execution.All modules includeD (debug)output which returns the debugging text to inform progression or runtime error.Legacy Import ModeThe grasshopper module importnpzfile. In the legacy import module, we expect thenpzfile to have the key<group>_position_historyand<group>_radius_historyfor each group.<group>_position_historyshould have the shape<number of rod, timesteps, 3 (dimension), number of nodes>.<group>_radius_historyshould have the shape<number of rod, timesteps, number of elements>.Thenumber of nodesis expected to be one more than thenumber of elements. If the periodic is set toTrue, thenumber of nodescan be equal to thenumber of elements.For sphere, thenumber of elementsand thenumber of nodesare both1. In such case, asphere modulemust be used in grasshopper.PyElastica ExtensionWe provide a data collector extension to PyElastica to easily collect the batch of data.pipinstallelastica-rhinoExample Usageimportelasticaimportelastica_rhinoaser...<simulationsetup>data_collector=er.RhinoExportCollector(save_path="data",step_skip=int((1/fps)/dt)# Collect data every 'step_skip' iteration)forarminarm_list:simulation.collect_diagnostics(arm).using(er.ExportGeometry,data_collector,group="arm")formuscleinmuscle_list:simulation.collect_diagnostics(muscle).using(er.ExportGeometry,data_collector,group="muscle")...<simulationsetup>simulation.finalize()...<simulationrun>data_collector.save()In Rhino, objects in the same group will be collected by layers. We recommend setting the parametergroupfor the same material or color of the rods.Included CallbacksExportGeometryExportStrain (work in progress)ExportInternalStress (work in progress)ExportExternalStress (work in progress)