Saravanan666/pypi-org huggingface dataset:
Package: elm-kernel
This kernel adds support for Elm to [Jupyter](http://jupyter.org/) notebooks.While basic functionality is in place, this is still very much a work in
progress. I’m still figuring it all out. Any help, ideas, etc. would be great.# Requirements
- Python 3.6+# InstallationEither install from a repository usingpip:` pip install elm_kernel `or install the package from source:` pip install-e. `Then install the kernel spec:` python-melm_kernel.install `# UsageRunjupyter notebookand select the Elm kernel for a new notebook.## Multi-cell code examplesBy default, when you execute a code cell with the Elm kernel the code willnotbe compiled. Instead, the kernel simply queues up code cells. This way you can
break longer examples over multiple cells, interleaving the code cells with
supporting Markdown cells.In order to ask the kernel to actually compile your code, you need to terminate
a code cell with the line:`--compile-code`When the kernel sees a cell like this it contatenates, in cell-execution order,
all of the executed but uncompiled code cells (i.e. everything since the start
of the kernel or the last– compile-codecell). It then compiles the
concatenated code, returning the result to the notebook.For a concrete example of this, see
[examples/the-elm-architecture.ipynb](https://github.com/abingham/jupyter-elm-kernel/blob/master/examples/the-elm-architecture.ipynb).This is a bit hacky, and we’re actively searching for a better alternative.
Ideas are welcome!# ExamplesTheexamplesdirectory contains a few examples of how to use this kernel. Just
go to that directory and runjupyter notebookto see them.
Package: elm-lang
The Elm InstallerWe have a way to usenpm install elm, however it is often hard to use.
This is an attempt to create a pypi installer so that we can use:pip installelm-langinstead.Learn about the Elm programming language atelm-lang.org.Install$pipinstallelm-lang--no-cache-dir$elm--version0.19.0HelpIf you are stuck, ask around onthe Elm slack channel. Folks are friendly and happy to help with questions!ChangelogThis document describes changes in the installer between each past release.0.19.1.2 (2019-12-05)Set the elm file mode to be executable0.19.1 (2019-12-05)Upgrade to install 0.19.10.19.0.2 (2019-04-04)Create a setup.py that allow for install.ContributorsRémy Hubscher <remy@chefclub.tv>
Package: elm-license-finder
Elm License FinderPython EditionUsing Python CLI ScriptRequires Python 3Runpython3 -m pip install colorclass terminaltables semverIf you are running the python script from inside yourelm.jsondirectory:python3 find_licenses.pyIf you are running the python script from a different directory:python3 find_licenses.py relative/path/to/elm/projectUsing Python PackageRequires Python 3Install the package withpython3 -m pip install elm_license_finderImport the two needed functions and use them:import os
from elm_license_finder import get_project_dependencies, output_tables

dir = os.path.join("path", "to", "elm", "project")

# Parses elm.json and builds dependency and license data
deps = get_project_dependencies(dir)
# Outputs pretty tables with the information
output_tables(deps)
Package: elm-magic
=========Elm Magic=========:Author: Ali RathoreIntroduces a %%elm magic.Compile and display Elm code in IPython and Jupyter notebooks.. image:: https://raw.github.com/ali--/elm_magic/master/docs/screenshot1.png.. image:: https://img.shields.io/pypi/v/elm_magic.svg:target: https://pypi.python.org/pypi/elm_magic.. image:: https://img.shields.io/travis/ali--/elm_magic.svg:target: https://travis-ci.org/ali--/elm_magic.. image:: https://readthedocs.org/projects/elm-magic/badge/?version=latest:target: https://elm-magic.readthedocs.io/en/latest/?badge=latest:alt: Documentation Status.. image:: https://pyup.io/repos/github/ali--/elm_magic/shield.svg:target: https://pyup.io/repos/github/ali--/elm_magic/:alt: UpdatesElm Magic provides IPython magic commands that execute elm-lang codeSYNOPSYS--------.. code-block:: pythonIn [1]: %load_ext elm_magicIn [2]: %%elm...: import Html exposing (text)...: main =...:   text "Hello World"Out[2]:...: Hello WorldIn [3]: %%elm -i elm-lang/http elm-lang/mouse -w /tmp/myelmdir...: <elm source code>This magic will:(1) use working dir as /tmp/myelmdir (or a new temporary dir)(2) install elm-lang/http and elm-lang/mouse with elm-package install(3) compile the cell input with elm-make(4) display the cell output as htmlThe -r flag renders the cell contents with elm-static-htmlThe cell must look exactly like this:.. code-block:: pythonIn [4]: %%elm -r...: module Main exposing (..)...: import Html exposing (text)...: view =...:   text "Hello World"Out[4]:...: Hello WorldUSAGE-----Install using github::git clone git@github.com:ali--/elm_magic.gitcd elm_magicpip install -e ...If elm and nodejs are not installed, you can try::elm_magic install --target <install-dir>where <install-dir> is writable by the current user.and in the user's PATH (e.g /usr/local/ or /opt/conda)Load the magic extension in IPython or Jupyter::%load_ext elm_magicthen start using the %%elm magic::%%elm... elm-lang code ...CONFIGURATION-------------see or set configuration parameters::%config ElmMagicFeatures--------* provides %%elm magic that executes elm-lang and displayes the result* can be used with any jupyter kernel* directory used by elm-make is configurable* provides cli for installing nodejs and elmCredits---------This package was created with Cookiecutter_ and the `audreyr/cookiecutter-pypackage`_ project template.Started with the help of https://github.com/abingham/jupyter-elm-kernel.. _Cookiecutter: https://github.com/audreyr/cookiecutter.. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage* Free software: GNU General Public License v3* Documentation: https://elm-magic.readthedocs.io.=======History=======0.1.0 (2017-06-11)------------------* First release on PyPI.
Package: elmo
ElmoElmo is an API adapter used to control programmatically an Elmo alarm system.
Through a generic configuration, the client allows:Retrieving access tokens to make API callsObtaining/releasing the systemLock()to have exclusive control of the systemArm/disarm all the alarms registered in the systemThis project is aWork in Progressand the following functionalities are part
of the roadmap:Retrieve alarm status (armed/disarmed) via read-only APIArm/disarm a single alarm or a subsetREST stateless API on top of theElmoClientto expose these functionalities
viaGoogle Cloud FunctionsRequirementsPython 3.5+requestsGetting StartedElmo is not available on PyPI so installation from this repository is required:$pipinstallgit+https://github.com/palazzem/elmo-alerting.gitArm/disarm the Systemfromelmo.api.clientimportElmoClient# Initialize the client with an API endpoint and a vendor and# authenticate your connection to retrieve the access tokenclient=ElmoClient("https://example.com","vendor")client.auth("username","password")# To arm/disarm the system you must gain the exclusive Lock()withclient.lock("secret-code")asc:c.arm()# Arms all alarmsc.disarm()# Disarms all alarmsThe access token is valid for 10 minutes after that you need to authenticate again to
refresh the token. Obtaining the lock viaclient.lock("code")is mandatory to arm or
disarm the alert, otherwise the API returns403.Once the lock is obtained, other clients cannot connect to the alarm system and only a
manual override on the terminal is allowed. Outside the context manager, the lock is
automatically released.DevelopmentWe accept external contributions even though the project is mostly designed for personal
needs. If you think some parts can be exposed with a more generic interface, feel free
to open a GitHub issue and to discuss your suggestion.Coding GuidelinesWe useflake8as a style guide enforcement. Said that, we also useblackto
reformat our code, keeping a well defined style even for quotes, multi-lines blocks and other.
Before submitting your code, be sure to launchblackto reformat your PR.Testingtoxis used to execute the following test matrix:lint: launchesflake8andblack --checkto be sure the code honors our style guidelinepy{35,36,37}: launchespy.testto execute all tests under Python 3.5, 3.6 and 3.7.To launch the full test matrix, just:$tox
Package: elmsdk
========================
Elmware SDK: For Building Containers to Run on ElmwareHighlights:Compatible with Python 3Built on top of requests - the sole dependencyInstallable with pypiIncludes a full test suite able to interact with the serverFor use in any linux based docker container builds running on elmwareFor more information, please refer to the documentation in the docs directoryInstallation.. code-block:: bashpip install elmsdkUsage.. code-block:: pythonfrom elmsdk import ELMSDK

elm = ELMSDK(instance_key)
staus = elm.begin_run()For more information, please refer to the documentation in the docs directorySupportIf you need technical support, please reach out tosupport@elmware.com
Package: eln
elnA command-line tool for quick math computationselnRequirementsInstallationCommandsAzuracastDigitalOceanNews APIPlotStubWeatherTo DoPull requestsLicenseRequirementsCheck requirements.InstallationpipinstallelnCommandsAzuracastManage your Azuracast installation.DigitalOceanDigitalOcean API Wrapper.WeatherGet weather forecasts.News APINews powered byNewsAPI.orgPlotPlot numerical data with Pandas.StubStub out sample projects.IssuesCheck out issuesPull RequestsFound a bug? See a typo? Have an idea for new command?
Feel free to submit apull requestwith your contributions. They are much welcome.LicenseelnisBSD Licensed.
Package: elo
An implementation of the Elo algorithm for Python. Elo is a rating system among
game players and it is used on many chess tournaments to rank.>>>fromeloimportrate_1vs1>>>rate_1vs1(800,1200)(809.091, 1190.909)LinksGitHub repositorydevelopment versionSee AlsoMultiplayer Elo CalculatorTrueSkill for Python
Package: elody
elody SDK for PythonInstallationTo install the Python SDK library using pip:pip install elodyUsageBegin by importing theelodymodule:import elodyThen construct a client object with the url to the elody collection service and
JWT-token:client = elody.Client(elody_collection_url=collection_url, static_jwt=jwt_token)For production, you can specify theELODY_COLLECTION_URLandSTATIC_JWTenvironment variables instead of specifying the key and secret explicitly.ExamplesCreating an objectobject = {
    "identifiers": ["test"],
    "type": "asset",
    "metadata": [
        {
            "key": "title",
            "value": "test",
            "lang": "en",
        }
    ]
}

client.add_object("entities", object)Getting an objectobject = client.get_object("entities", "test")
print(object)Updating an objectobject_update = {
    "identifiers": ["test"],
    "type": "asset",
    "metadata": [
        {
            "key": "title",
            "value": "test UPDATE",
            "lang": "en",
        }
    ]
}

client.update_object("entities", "test", object_update)Deleting an objectclient.delete_object("entities", "test")
Package: eloger
eloguru: email for loguru带邮件功能的loguruinstallclone sourcegitclonehttps://github.com/425776024/eloger.gitpippipinstallelogerdesLoguru with mail function带邮件功能的logurusetting elogger.mail_config , then all operations are the same asloguruthen all thelogurulogs will be sent to the
mailbox:elogger.mail_config.receive_emailsconfig mail server网易邮箱qq 邮箱gmailusefromelogerimporteloggerelogger.mail_config.sender_email="Your email"elogger.mail_config.sender_email_passwd="Your email Authorization code"elogger.mail_config.sender_email_mailserver="Your email server, like: smtp.163.com"elogger.mail_config.sender_email_mailserver_port="Your email server's port , like : 25"elogger.mail_config.title="Your email message title , like : this is a log message title"elogger.mail_config.body="Your email message content template , like : <br/>#msg<br/> (#msg Will be replaced by log message)"elogger.mail_config.receive_emails=["Your email send to Email account 1","Your email send to Email account 2",]# All operations are the same as loguruelogger.add('a.log',rotation='50 MB')elogger.add('a.log')elogger.error('error',email=True)elogger.debug('debug')elogger.info('info')elogger.success('success',email=True)# then all the above logs will be sent to the mailbox:'elogger.mail_config.receive_emails'
Package: elog-thiago1080
Function Logger and TimerThis is a Python package that provides decorators for logging function execution and timing function execution.InstallationYou can install the package using pip:
'pip install log_exc_decorator'UsageLogging function executionTo log function execution, use the elog decorator. Here's an example:from log_exc_decorator import elog@elogdefmy_function():# your code herepassThis will log the start and end of my_function, as well as any exceptions that may occur.Timing function executionTo time function execution, use the timeit decorator. Here's an example:fromlog_exc_decoratorimporttimeit@timeitdefmy_function():# your code herepassThis will time how long it takes to execute my_function and log the elapsed time.ContributingPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.Please make sure to update tests as appropriate.LicenseApache
Package: eloguru
eloguru: email for loguru带邮件功能的loguruinstallclone sourcegitclonehttps://github.com/425776024/eloguru.gitpippipinstallelogurudesLoguru with mail function带邮件功能的logurusetting elogger.mail_config , then all operations are the same asloguruthen all thelogurulogs will be sent to the
mailbox:elogger.mail_config.receive_emailsconfig mail server网易邮箱qq 邮箱gmailusefromeloguruimportelogurueloguru.mail_config.sender_email="Your email"eloguru.mail_config.sender_email_passwd="Your email Authorization code"eloguru.mail_config.sender_email_mailserver="Your email server, like: smtp.163.com"eloguru.mail_config.sender_email_mailserver_port="Your email server's port , like : 25"eloguru.mail_config.title="Your email message title , like : this is a log message title"eloguru.mail_config.body="Your email message content template , like : <br/>#msg<br/> (#msg Will be replaced by log message)"eloguru.mail_config.receive_emails=["Your email send to Email account 1","Your email send to Email account 2",]# All operations are the same as logurueloguru.add('a.log',rotation='50 MB')eloguru.add('a.log')eloguru.error('error',email=True)eloguru.debug('debug')eloguru.info('info')eloguru.success('success',email=True)# then all the above logs will be sent to the mailbox:'eloguru.mail_config.receive_emails'
Package: elommr
A minimal, Python implementation of the Elo-MMR rating system as described inthis paper.InstallationTo install elommr, install it from pypi under the nameelommrwith
pip or your favorite package manager.pipinstallelommr--upgradeQuick ExampleYou can view the docstrings for theEloMMRandPlayerclasses for more information.fromelommrimportEloMMR,Playerfromdatetimeimportdatetime,timezonedefmain():elo_mmr=EloMMR()player1=Player()player2=Player()standings=[(player1,0,0# Range of players that got or tied for first),(player2,1,1# Range of players that got or tied for second),]# Note that the contest_time does not do anything in this example# because EloMMR.drift_per_sec defaults to 0, so contest_time# can be omitted from the round_update call, but it is included# here to show how it can be used.# Do note, though, that you should either always include# contest_time or never include it, because if you include it# in some competitions and not others, the ratings will be skewed# incorrectly.contest_time=round(datetime.now(timezone.utc).timestamp())elo_mmr.round_update(standings,contest_time)contest_time+=1000# Assumes the outcome of the next competition is the same as the# previous, so the standings aren't changed.elo_mmr.round_update(standings,contest_time)forplayerin[player1,player2]:print("\nrating_mu, rating_sig, perf_score, place")foreventinplayer.event_history:print(f"{event.mu},{event.sig},{event.perf_score},{event.place}")print(f"Final rating:{player.event_history[-1].display_rating()}")# >>># rating_mu, rating_sig, perf_score, place# 1629, 171, 1654, 0# 1645, 130, 1663, 0# Final rating: 1645 ± 100## rating_mu, rating_sig, perf_score, place# 1371, 171, 1346, 1# 1355, 130, 1337, 1# Final rating: 1355 ± 100if__name__=='__main__':main()
Package: elon
ElonElon is a lightweight async job queue backed by redis.Why the name?Because Elon Musk gets things done.What it does?Say you have a Django or Flask application that is heavily network- or IO-bound. Say in this app you have a view that makes a slow backend API call. When a user visits this view, your web worker gets tied up until the API responds, which severely limits your throughput. In some cases, you must wait for the API's response to generate your response (in which case I'd recommend Tornado), but in others you might not need the response right away, and in this case, Elon is perfect for your situation.ExampleHere is a long-running task - pretend that instead of waiting 10 seconds, it's actually hitting a backend API.importtimedeflong_api_request():time.sleep(10)We could rewrite it as an async task using elon:importasynciofromtasklibimporttask@taskasyncdeflong_api_request():awaitasyncio.sleep(10)When it comes to calling the task, before:@app.route('/enqueue_task')defenqueue_task():# Runs the task and returns once it is complete.long_running_process()return'Success!'After:@app.route('/enqueue_task')defenqueue_task():# Enqueue the task and return instantly.long_running_process.enqueue()return'Success!'When you callenqueue()on a task, you'll instantly receive a UUID, which you can use to query for the result and see job progress.Decorating classes:You can also decorate classes, as long as they inherit fromTask. Example:classComplexTask(Task):defexecute(self):passClasses that inherit from Task must define their ownexecutemethod - this is the method run to actually call the task.
Package: elongation-simulators
This package is composed of two high-performance simulators:A Ribosome simulator, that, given a codon and tRNA concentrations, simulates the internal reactions of the ribosome and their times. It can produce complete data about these reacions: The state of the ribosome, the time it took for each reaction to happen, their frequency, etc.The other simulator is an elongation simulator: it simulates ribosomes intiating, elongating and terminating a given mRNA. It simulates collisions, ribosome stalling, etc. This tool can also perform simulations in parallel and produce complete information about all ribosomes, and their positions in the mRNA contruct.Changes1.0.0 (unreleased)initial release
Package: eloope
Eloope事件循环引擎, 主要功能:1. 异步执行, 解决io密集型任务
2. 支持搭建多进程, 分布式运行
3. 支持断点续爬
4. 提供日志系统目录:安装使用单进程多进程分布式命令式日志settingAPIEngineManager下次更新内容安装pip install eloope --upgrade使用首行导入eloope模块单进程from eloope import engine, get_current_engine, logger

def task(code):
    logger.info(f'{get_current_engine().name} --- {code}')

engine.add_tasks(fn=task, param_groups=[[code] for code in range(100)])
engine.run()单进程 demo:spider_dili.py通过get_current_engine函数获得当前运行engine多进程开启服务from eloope import run_server

run_server(load_file=None, dump_path='.', log_path=None, host='localhost', port=6991)load_file: 加载任务文件dump_path: 任务文件保存路径log_path: 日志保存路径, 为None时将不保存日志文件运行客户端from eloope import Manager, get_current_engine, logger

def task(code):
    logger.info(f'{get_current_engine().name} --- {code}')

if __name__ == '__main__':
    # Manager 创建多进程
    manager = Manager(engine_names=['engine1', 'engine2'], host='localhost', port=6991)
    manager.add_tasks(fn=task, param_groups=[[code] for code in range(100)])
    manager.run()多进程客户端需要在if __name__ == '__main__':语句中启动多进程 demo:multi_progress.py分布式与多进程相同, 部署项目文件, 连接同一服务命令式>>> eloope <command> <host=localhost> <port=6991>command说明stop停止向客户端发送任务start开始向客户端发送任务save保存当前服务器上的任务quit强制退出服务和所有客户端task_total任务总数量task_count任务当前数量start_time服务开始时间connect连接服务日志from eloope import logger

logger.info('hello world!')
logger.debug('hello world!')
logger.result('hello world!')
logger.warning('hello world!')
logger.error('hello world!')
logger.system('hello world!')导入eloope模块将会屏蔽掉其他模块的日志系统settingfrom eloope import setting

# 客户端运行中连接失败回调函数
# 参数: engine(Engine 实例), repeat_count(重复连接次数)
# 返回: True(重新连接), False(断开连接退出程序)
setting.connection_interrupt_callback = connection_interrupt_callback

setting.send_interval = 1  # 客户端连接服务器间隔
setting.log_path = None  # 本地日志保存路径

# 日志级别过滤
setting.log_filter = ('info', 'debug', 'result', 'warning', 'error', 'system')APIEngine(name='engine', size=50)name: 名称标识size: 任务池大小Attribute说明name名称is_run运行状态task_count任务数量free_count任务池剩余空间task_pool任务池run()阻塞运行add_task(fn, *params)添加单个任务add_tasks(fn, param_groups)添加多个任务, 同一个函数不同参数Manager(engine_names=None, host='localhost', port=6991)engine_names: engine 名称标识列表 (每一个 engine 都为单独进程)host: 服务器地址post: 服务器端口Attribute说明create_engines(engine_names, size=50)创建多个 engineadd_task(fn, *params)添加单个任务add_tasks(fn, param_groups)添加多个任务, 同一个函数不同参数run()非阻塞运行下次更新内容1. 添加任务执行的优先级.
2. 可以指定 enigne 执行任务.
3. 添加任务执行失败自定义回调函数.
4. 可以选择同步或异步 engine 类型.
5. 重新设计日志系统
6. 添加 UI 控制面板
7. 添加测试文件
Package: elophant
A minimalistic wrapper around theElophantLeague of Legends statistics API.UsageTo start, you’ll need to sign up for anAPI key. Once you have that, here’s how you
use it.>>> from elophant import Elophant
>>> e = Elophant(key='IyDxAwvLhQbzEZPiVYJo', region='na')
>>> e.get_summoner('Elsydeon')
{u'data': {u'internalName': u'elsydeon', u'name': u'Elsydeon' ...
>>> e.find_team('clg')
{u'data': {u'status': u'RANKED', u'modifyDate': u'/Date(1358737198000)/', u'name': u'Counter Logic Gaming' ...InstallationIt’s easy and foolproof! Like tower diving!pip install elophant
Package: elopy
ElopyThis is a module to allow you to maintain state for teams as you progress them
through games played against opponents. This uses the the constants set out
from538's NBA Elo. But
you could inherit and overload the functions to work for any sport you wanted.To Install:pip install elopyCode Examples:from elopy.elo import Elo

team_a = Elo(start_elo=1600, k=20, hca = 100)
team_b = Elo(start_elo=1400, k=20, hca = 100)

#To get the win probability of team_a beating team_b at home

team_a_probs = team_a.win_probs(team_b, is_home=True)

#To get the win probability of team_b beating team_a at home

team_b_probs = team_b.win_probs(team_a, is_home=True)

#If you want to get away probabilities then set is_home to False

#To get the point spread of team_a vs. team_b. Positive represents an underdog
#negative represents a favorite

#at home
point_spread_home = team_a.point_spread(team_b, is_home=True)

#not at home. Will return a value
point_spread_away = team_a.point_spread(team_b, is_home=False)

#update elo's after a team has played the other. Let's say team a beat team b
#by 15 points as a visitor

team_a.play_game(team_b, 15, is_home=False)

#This will update both team a and team b's Elo ratings. If you run the same line
as above again it will be as if both teams are playing a second game

team_a.play_game(team_b, 15, is_home=False)

#This means that team a played team b again and beat them by 15 points again as
the visitor

#Then to get each team's Elo rating just access the elo attribute
print(team_a.elo)
print(team_b.elo)
Package: eloqua-formhandler
Validate and send Oracle Eloqua Forms.REST API for Oracle Eloqua Marketing Cloud ServiceQuickstartimportrequestsfromeloquaformhandler.handlerimportHandlerFactorysession=requests.Session()session.auth=(ELOQUA_USER,ELOQUA_PASSWORD)handler=HandlerFactory.get(session)(FORM_ID)# send form data# if everything went fine status_code is 201 and json_response is Nonejson_response,status_code=handler(form_data)ErrorsHandlerFactory.get raiseseloquaformhandler.exceptions.EloquaErrorif login endpoint returned an error.