Saravanan666/pypi-org huggingface dataset:
Package: ewatercycle-pcrglobwb
eWaterCycle plugin for PCRGlobWB hydrological modeleWatercycleplugin for PCRGlobWB model.PCRGLOBWB (PCRaster Global Water Balance) is a large-scale hydrological model with documentation athttps://globalhydrology.nl/research/models/pcr-globwb-1-0/.InstallationeWaterCycle must be installed in amambaenvironment. The environment can be created withwget https://raw.githubusercontent.com/eWaterCycle/ewatercycle/main/environment.ymlmamba env create --name ewatercycle-pcrglobwb --file environment.ymlconda activate ewatercycle-pcrglobwbInstall this package alongside your eWaterCycle installationpip install ewatercycle-pcrglobwbThen PCRGlobWB becomes available as one of the eWaterCycle modelsfromewatercycle.modelsimportPCRGlobWBUsageUsage of PCRGlobWB forcing generation and model execution is shown indocs/generate_forcing.ipynbanddocs/model.ipynbrespectively.Irrigation example atdocs/Irrigation.ipynb.Licenseewatercycle-pcrglobwbis distributed under the terms of theApache-2.0license.
Package: ewatercycle-wflow
eWaterCycle plugin for wflow hydrological modelwflow plugin foreWatercycle.wflow documentation athttps://wflow.readthedocs.io/.InstallationeWaterCycle must be installed in amambaenvironment. The environment can be created withwget https://raw.githubusercontent.com/eWaterCycle/ewatercycle/main/environment.ymlmamba env create --name ewatercycle-wflow --file environment.ymlconda activate ewatercycle-wflowInstall this package alongside your eWaterCycle installationpip install ewatercycle-wflowThen Wflow becomes available as one of the eWaterCycle modelsfromewatercycle.modelsimportWflowUsageUsage of wflow forcing generation and model execution is shown indocs/generate_forcing.ipynbanddocs/model.ipynbrespectively.Licenseewatercycle-wflowis distributed under the terms of theApache-2.0license.
Package: ewatercycle-wflowjl
eWaterCycle plugin for the Wflow.jl hydrological modelWflow.jl plugin foreWatercycle.The Wflow.jl documentation is available athttps://deltares.github.io/Wflow.jl/dev/.InstallationeWaterCycle must be installed in amambaenvironment. The environment can be created withwget https://raw.githubusercontent.com/eWaterCycle/ewatercycle/main/environment.ymlmamba env create --name ewatercycle-wflowjl --file environment.ymlconda activate ewatercycle-wflowjlInstall this package alongside your eWaterCycle installationpip install ewatercycle-wflowjlThen Wflow becomes available as one of the eWaterCycle modelsfromewatercycle.modelsimportWflowJlNote that unlike other plugins, the WflowJl eWaterCycle model does not run in a container.This is due to limitations of the Julia language.UsageUsage of Wflow.jl forcing generation and model execution is shown indocs/generate_era5_forcing.ipynbanddocs/wflowjl_local.ipynbrespectively.Licenseewatercycle-wflowjlis distributed under the terms of theApache-2.0license.
Package: ewave
Pure python support for reading and writing extended WAVE formats.The wave module in Python’s standard library doesn’t support a number of
useful formats and encodings, notably IEEE floats. Ewave is a small,
simple solution written in pure Python that provides a number of
enhanced features:Floating point formatsExtensible formats (> 2 channels, larger bit depths)Read and write using memory mapping for simple, speedy access to
large filesRead directly to numpy arraysData appended to existing files in read/write modes can be
immediately accessedRescaling of data for different encodings and bit depthsSupports Python context managers for cleaner resource semanticsRequirements and installationThe current version of ewave requires Python 3.7+ and numpy 1.19+.To install, runpip install .in the source directory, orpip install ewave.UsageThere are some notable differences between the ewave interface and the
standard library wave module. There’s only a single class that manages
both reading and writing, and a number of the properties have changed
names and behaviors. Importantly, the read method by default returns a
numpy memmap to the data in the file. This provides faster access to
large files and allows writing data in place.For example, to write a second of stereo white noise in floating point
format and then rescale it in place:importewavefromnumpyimportrandomdata=random.randn(48000,2)withewave.open("myfile.wav","w+",sampling_rate=48000,dtype='f',nchannels=2)asfp:fp.write(data)# rescale the data by 50%fp.read(memmap='r+')*=0.5TestingEwave has been tested on a large number of different WAVE formats and
comes with a fairly extensive unit test suite. To run unit tests on
files, place them in the ‘test’ subdirectory and runpytest. You can
also place unsupported or invalid files in the ‘unsupported’ directory
to test whether ewave rejects them correctly. Bug reports are always
appreciated.Limitations and related projects‘Exotic’ encodings like A-law and mu-law are not supported. Formats in
which the container size (the bit depth) does not align with a native
data type, including some 24-bit formats, are not supported. Data cannot
be appended to files that terminate in something other than a data
chunk, and multiple data chunks are not supported.Users interested in access to more complex WAVE and non-WAVE files and
who do not mind external library dependencies should consider one of
these wrappers to libsndfile:http://code.google.com/p/libsndfile-python/http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/audiolab/Licence and acknowledgementsEwave is based heavily on the original wave module in the Python
standard library and is released under the same Python Software
Foundation Licence (http://opensource.org/licenses/python-2.0)Information about the WAVE formats supported by this module was
extensively gleaned fromhttp://www-mmsp.ece.mcgill.ca/documents/audioformats/wave/wave.html.
Package: ewc-commons
EWC Commons LibraryA collection of common & useful things to make other things easier.InstallingUse pip to install theEWC Commons Library, which can also be used from the command line to trigger certain inbuilt functionality.$pipinstallewc-commons[dev]Veryfy the library installed and check the version or help.$ewccommons-v
...
$ewccommons-hGetting StartedSophie ModuleDice ModuleDice Rolls ModuleCard Deck ModuleHow do I get set up?Summary of set upConfigurationDependenciesDatabase configurationHow to run testsDeployment instructionsSophie ModuleThesophiemodule is used to provide convenient CLI script launcher frameworkDice ModuleThedicemodule provides an OOP solution for creating various sided die simulators and a conveniant way of rolling multiple (varying) Dice objectsDice Rolls ModuleThedicerollsmodule can be used in multiple ways, firstly it can be used in the standard way of being imported into python scripts.dicerollscan also be invoked as a module script and will output the dice rolls for the dice specified. The same dice rolling functionality can also be invoked via the mainewccommonspackage executable.Card Deck ModuleThecarddeckmodule provides a convenient means of creating card deck list which can be used as a basis for card based games.Contribution guidelinesWriting testsCode reviewOther guidelinesWho do I talk to?Repo owner or adminOther community or team contact
Package: ew-der-modbus-sim-py
EnergyWeb DER Modbus SimulatorIntroductionThis repository hosts the EnergyWeb's Decentralized-Energy-Resouce Modbus Simulator.Primary featuresTCP/RTU modbus support.Sunspec interface support.Supply custom DER model.Model-map library available.Prerequisitespip>=20.3.4pipenv>=2020.8.13Quick startInstallation steps# Clone demo repository
git clone https://github.com/energywebfoundation/ew_der_modbus_sim_py.git

# Acces project folder
cd ew_der_modbus_sim_py

# Installs pipenv
pip install pipenv --upgrade

# Creates a python3 virtual environment
pipenv --three

# Installs all demo dependencies
pipenv install '.[all]'Preset environment variables# Modbus Mode [TCP or RTU]
SLAVE_MODE=TCP
# A slave unique ID [int]
SLAVE_ID=1

# Slave TCP address and port. Defaults to 'localhost:8502'
SLAVE_TCP_ADDRESS=localhost
SLAVE_TCP_PORT=8502

# Slave RTU port 
SLAVE_RTU_PORT=/dev/ptyp5

# DER model-map name 
MODEL_MAP_NAME=STP8-10-3AV-40Virtual environment# Access pipenv's virtual environment in order to run the examples below
pipenv shellDocumentationDER Simulator# Running Simulator
python3 ./src/ew_der_modbus_sim_py/der_simulator.pyAvailable model-map listSMASTP8-10-3AV-40 - PV InverterSUNNY-ISLAND-4.4-M-13 - Battery InverterActive ContributorsIoannis Vlachos (@iovlachos)Mahir Şentürk (@mhrsntrk)Bacem Ben Achour (@Aresguerre)Pablo Buitrago (@ChangoBuitrago)LicenseThis project is licensed under GNU General Public License Version 3 (GPLv3)
Package: eweb
ewebeweb(easy web) is a fast and simple micro-framework for small web applications. Its goal is to enable you to develop
web applications in a simple and understandable way.With it, you don't need to know the HTTP protocol, or how Python communicates with JavaScript.UsageStep1Create a file, such asmain.py:fromewebimportServerdefhello(name):return'hello%s!'%nameif__name__=='__main__':server=Server(port=5000)server.services['hello']=helloserver.run()Step2Create a folder namedstaticCreate a HTML file in thestaticfolder, such asindex.html:<!DOCTYPE html><html><head><metacharset="UTF-8"><title>index</title><scriptsrc="/service.js"></script></head><body><script>//say helloservice.call('hello',{'name':'eweb'},function(data){alert(data);/**...Anything you want to do...*/});</script></body></html>Step3Run themain.py. Then, visithttp://localhost:5000/index.htmlin your browser.
You will get alert message "hello eweb!".It's also easy if you want to develop desktop applications witheweb. At this point, usually, you need a callback function and a random port to start the server.
What you need to do will be like this:fromewebimportServerdefhello(name):return'hello%s!'%namedefcallback():print('Server startup completed!')importwebbrowserwebbrowser.open('http://localhost:%s/index.html'%server.port)if__name__=='__main__':server=Server(port=None)server.services['hello']=helloserver.run()Runmain.py, then, after the server is started, theindex.htmlpage will open automatically in the browser.NoteThestaticfolder is a resource folder, and files under this folder can be accessed directly. So, usually, HTML, CSS, and JavaScript files should be placed in this folder, and other private files should not be placed in this folder.
Package: ewechat
ewechat以前有很多基于 Web 微信的库，比如itchat等，在微信限制 web 微信该协议后这些库就无法使用了。现在如果想 hook 微信出接口，基本都要使用一些付费的服务，比如wechaty PadLocal，这也是我一直在用的服务，但是 wechaty 一直没有实现朋友圈等功能。这个E 云管家也是基于微信 iPad 协议，价格和 PadLoacal 一样（每个微信号每月 200 元）。由于已经实现了我需要的朋友圈功能，所以最近把自己的服务迁移到了这里。⚠️ 提示我在使用这家服务，但并不作为推荐。与微信的 web 协议不同，如果使用这个服务，服务商可以获取你微信的全部隐私。而且这是对微信协议的破解，账号有被封禁的风险，请慎重使用。开发进度这个服务商的 API 接口非常简单，官方文档接口数量不多。为了方便我自己日常使用，我打算把官方 API 接口封装成 python SDK。代码比较简单，有时间的话我尽快写完。使用方法该包是基于服务商 API 实现的，请在服务商处注册并购买相应资源后再进行配置。请先阅读服务商文档，否则可能不理解相关的参数。下载安装该包：python3-mpipinstallewechat登录fromewechatimportWechat# 实例化时请传入服务商提供的 url、账号和密码，# 目的是为了获得授权码my_wechat=Wechat(base_url=url,account="your_account",password="your_password")# 如果已经获得了授权码，可以直接传入授权码my_wechat=Wechat(base_url=url,auth=authorization)# 进行登录，在弹出二维码后请用手机扫码登录my_wechat.login()# 如果是在远程主机运行，无法弹出二维码，需要手动打开图片扫码后执行my_wechat.write_file()# 登录完成后会在当前目录创建文件 logged_in# 记录你的一些参数，参数的意义请参照服务商文档通讯录初始化通讯录列表my_wechat.init_address_list()获取通讯录列表my_wechat.get_address_list()获取联系人信息my_wechat.get_contact(wcId:str)消息发送发送文本消息my_wechat.send_text(wcId:str,content:str)发送文件消息my_wechat.send_file(wcId:str,path:str,fileName:str)发送图片消息my_wechat.send_image(wcId:str,content:str)发送视频消息my_wechat.send_video(path:str,thumbPath:str)发送 URL 消息my_wechat.send_url(wcId,title,url,description,thumbUrl)消息接收设置消息接收地址返回 None 即设置成功，如果设置失败会引发异常。my_wechat.set_http_callback_url(httpUrl:str,type:int)取消消息接收my_wechat.cancel_http_callback_url()下载图片type0 是常规图片，1 是高清图。my_wechat.get_msg_img(msgId:str,content:str,type:int=1)朋友圈获取指定好友朋友圈第一次使用firstPageMd5和maxId请留空。my_wechat.get_friend_circle(wcId:str,firstPageMd5:str="",maxId:int=0)发送文字朋友圈my_wechat.sns_send(content:str)发送图片朋友圈my_wechat.sns_send_image(content:str,paths:str,groupUser:str=None,blackList:str=None)
Package: ewer
Bottle is a fast and simple micro-framework for small web applications. It
offers request dispatching (Routes) with URL parameter support, templates,
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and
template engines - all in a single file and with no dependencies other than the
Python Standard Library.Homepage and documentation:http://bottlepy.org/Copyright (c) 2015, Marcel Hellkamp.
License: MIT (see LICENSE for details)
Package: ewmh
An implementation of EWMH (Extended Window Manager Hints) for python 2 and 3,
based on Xlib.  It allows EWMH-compliant window managers (most modern WMs) to
be queried and controlled.pyewmh is distributed under the GNU Lesser General Public License, version 3,
or, at your option, any later version. SeeLICENSE.txtfor more information.InstallationSimply run:pipinstallewmhDocumentationOnline documentation is available here:http://ewmh.readthedocs.org/en/latest/.ContributorsReuben Thomas <rrt@sc3d.org>Hugo Osvaldo Barrera <hugo@barrera.io>Thanks also toHolger WitschRussell SimChangelogSee theCHANGES.txtfile.
Package: ewmh-ext
ewmh-extewmh ext;installpip install ewmh-ext;licenseCopyright (c) 2018 Cyker WayThis program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.  See the GNU General Public License for more details.You should have received a copy of the GNU General Public License along with
this program.  If not, seehttps://www.gnu.org/licenses/.
Package: ewmh-m2m
📜Licence− 👥Authors− 📝ChangelogRationaleI love XFCE. I use it on almost all my computers.
However, in a multi head setup, it lacks a “move window to monitor” feature.
Some posts link to themove-to-next-monitorscript, which as many dependencies and is not very customizable
(move to bottom, to right, etc.)Hence, here it is ewmh_m2m.InstallJust install the package with pip:pip install ewmh-m2m  # Note the dash and not the underscore!You should now have amove-to-monitorcommand available.UsageYou should bind themove-to-monitorcommand to your desired keyboard shortcut.
This command also accepts some arguments to control where the window is moved.
Typemove-to-monitor--helpin a terminal for the list of accepted options.DevelopmentFeel free to ask some features onGitHub.
You can also develop your own features and open Pull Requests.
Take a look at thetechnical documentation.NoteThis project has been set up using PyScaffold 3.2.2. For details and usage
information on PyScaffold seehttps://pyscaffold.org/.
Package: ewoks
Ewoks: ESRF Workflow SystemManyworkflow management systemsexist to deal with data processing problems that can be expressed as a graph of tasks, also referred to as acomputational graphorworkflow. The main purpose of a workflow management system is to provide a framework for implementing tasks, creating graphs of tasks and executing these graphs.The purpose ofewoksis to provide an abstraction layer between graph representation and execution. This allows using the same tasks and graphs in different workflow management systems.ewoksitself isnota workflow management system.Installpipinstallewoks[orange,dask,ppf,test]Testpytest--pyargsewoks.testsGetting startedWorkflows can be executed from the command lineewoksexecute/path/to/graph.json[--enginedask]or for an installation with the system pythonpython3-mewoksexecute/path/to/graph.json[--enginedask]Workflows can also be executed from pythonfromewoksimportexecute_graphresult=execute_graph("/path/to/graph.json",engine="dask")When no engine is specified it will use sequential execution fromewokscore.Documentationhttps://ewoks.readthedocs.io/
Package: ewokscore
ewokscoreewokscoreprovides an API to define workflows and implement tasks inewoks.Installpipinstallewokscore[test]Testpytest--pyargsewokscore.testsGetting startedfromewokscoreimportTaskfromewokscoreimportexecute_graph# Implement a workflow taskclassSumTask(Task,input_names=["a"],optional_input_names=["b"],output_names=["result"]):defrun(self):result=self.inputs.aifself.inputs.b:result+=self.inputs.bself.outputs.result=result# Define a workflow with default inputsnodes=[{"id":"task1","task_type":"class","task_identifier":"__main__.SumTask","default_inputs":[{"name":"a","value":1}],},{"id":"task2","task_type":"class","task_identifier":"__main__.SumTask","default_inputs":[{"name":"b","value":1}],},{"id":"task3","task_type":"class","task_identifier":"__main__.SumTask","default_inputs":[{"name":"b","value":1}],},]links=[{"source":"task1","target":"task2","data_mapping":[{"source_output":"result","target_input":"a"}],},{"source":"task2","target":"task3","data_mapping":[{"source_output":"result","target_input":"a"}],},]workflow={"graph":{"id":"testworkflow"},"nodes":nodes,"links":links}# Define task inputsinputs=[{"id":"task1","name":"a","value":10}]# Execute a workflow (use a proper Ewoks task scheduler in production)varinfo={"root_uri":"/tmp/myresults"}# optionally save all task outputsresult=execute_graph(workflow,varinfo=varinfo,inputs=inputs)print(result)Documentationhttps://ewokscore.readthedocs.io/
Package: ewoksid22
ewoksid22Data processing workflows for ID22Getting startedExample of using the command line scripts directly (needs access to/data/id22/inhouse/):./examples/rebinsum.shExample of defining and executing an HDF5 to SPEC conversion workflow (needs access to/data/id22/inhouse/):ewoksexecuteexamples/convert.jsonExample of defining and executing a ROI collection rebin+sum workflow (needs access to/data/id22/inhouse/):ewoksexecuteexamples/rebinsum.jsonInstallationpipinstallmultianalyzer@git+https://github.com/kif/multianalyzer.git@main
pipinstallewoksid22The following command line scripts are installed:id22sumepy: python wrapper forid22sumeandid22sumalleid22sume: fortran programid22sumalle: fortran programzingit: awk programDocumentationhttps://ewoksid22.readthedocs.io/
Package: ewoksjob
ewoksjobUtilities for job scheduling ofewoksworkflows.Ewoksjob provides an ewoks interface for asynchronous and distributed scheduling ofewoksfrom python.Note thatewoksjobdistributes the execution of workflows whileewoksdaskdistributes the execution of tasks in a workflow. So in the context of workflows, job scheduling exists on two levels.The primary clients that need to schedule workflows areEwoksserver: web backend for ewoks.Bliss: the ESRF beamline control system.Daiquiri: web backend for Bliss.InstallationInstall on the client sidepipinstallewoksjobInstall on the worker sidepipinstallewoksjob[worker]Getting startedStart a worker pool that can execute ewoks graphsewoksjobworkerStart a workflow on the client sidefromewoksjob.clientimportsubmitworkflow={"graph":{"id":"mygraph"}}future=submit(args=(workflow,))result=future.get()Note that both environments need to be able to importceleryconfigwhich
contains celery configuration (mainly the message broker and result backend URL's).Hello world exampleClone the git repository and start a worker poolscripts/worker.sh--sqlSubmit workflowsscripts/runjobs.sh--sqlTestspytest--pyargsewoksjobTo run the redis tests you needredis-server(e.g.conda install redis-server).Documentationhttps://ewoksjob.readthedocs.io/
Package: ewoksorange
ewoksorangeewoksorangeprovides s desktop graphical interface forewoks.Installpipinstallewoksorange[test]When using Oasys instead of Orange3pipinstall--no-depsewoksorange
pipinstallewokscore
pipinstallAnyQt
pipinstalloasys1For the tests in an Oasys environmentpipinstallewokscore[test]pipinstallimportlib_resources# python_version < "3.7"Testpytest--pyargsewoksorange.testsGetting startedLaunch the Orange canvasewoks-canvas/path/to/orange_wf.owsor for an installation with the system pythonpython3-mewoksorange.canvasor when Orange3 is installedorange-canvas/path/to/orange_wf.ows--configorangewidget.workflow.config.Configor for an installation with the system pythonpython3-morangecanvas/path/to/orange_wf.ows--configorangewidget.workflow.config.ConfigLaunch the Orange canvas using the Ewoks CLIewoksexecute/path/to/ewoks_wf.json--engineorange
ewoksexecute/path/to/orange_wf.ows--engineorangeor for an installation with the system pythonpython3-mewoksexecute/path/to/ewoks_wf.json--engineorange
python3-mewoksexecute/path/to/orange_wf.ows--engineorangeLaunch the Orange canvas with the examples add-onewoks-canvas--with-examplesor alternatively install the example add-onspipinstallsrc/ewoksorange/tests/examples/ewoks_example_1_addon
pipinstallsrc/ewoksorange/tests/examples/ewoks_example_2_addonand launch the Orange canvas withewoks-canvas/path/to/orange_wf.owsor when Orange3 is installedorange-canvas/path/to/orange_wf.owsWhen removing an editable install, you may need to delete one file manually:pipinstall-esrc/ewoksorange/tests/examples/ewoks_example_1_addon
pipuninstallewoks-example-1-addon
python3-c"import site,os;os.unlink(os.path.join(site.getsitepackages()[0],'ewoks-example-1-addon-nspkg.pth'))"Documentationhttps://ewoksorange.readthedocs.io/
Package: ewoksserver
ewoksserverewoksserver is a REST server to manage and executeewoksworkflows.It serves as a backend forewoksweband emits ewoks execution events over Socket.IO.DevelopmentInstall from sourcepipinstall-e.[dev]Run testspytestLaunch the backendewoks-serveror for an installation with the system pythonpython3-mewoksserver.serverConfigurationThe configuration keys are uppercase variables in a python script:# /tmp/config.pyRESOURCE_DIRECTORY="/path/to/resource/directory/"EWOKS={"handlers":...}CELERY={"broker_url":...}Specify the configuration file through the CLIewoks-server--config/tmp/config.pyor using the environment variable EWOKSSERVER_SETTINGSexportEWOKSSERVER_SETTINGS=/tmp/config.py
ewoks-serverExampleimportos_SCRIPT_DIR=os.path.abspath(os.path.dirname(__file__))RESOURCE_DIRECTORY=os.path.join(_SCRIPT_DIR,"resources")EWOKS={"handlers":[{"class":"ewokscore.events.handlers.Sqlite3EwoksEventHandler","arguments":[{"name":"uri","value":"file:"+os.path.join(_SCRIPT_DIR,"ewoks_events.db"),}],}]}Documentationhttps://ewoksserver.readthedocs.io/
Package: ewoksweb
ewokswebewokswebis a frontend to create, visualize and executeewoksworkflows in the web.Demohttps://workflow.gitlab-pages.esrf.fr/ewoks/ewoksweb/Local installationInstall theewoksserverpython packagepipinstallewoksserver[frontend]Start the server and open the frontend in a web browserewoks-serverDocumentationhttps://ewoksweb.readthedocs.io/
Package: ewoksxrpd
ewoksxrpdData processing workflows for SAXS/WAXSGetting startedRun an example workflowpythonexamples/job.pyRun an example workflow with GUIewoksexecuteexamples/xrpd_workflow.json--engine=orange--data-root-uri=/tmp--data-schemenexusor for an installation with the system pythonpython3-mewoksexecuteexamples/xrpd_workflow.json--engine=orange--data-root-uri=/tmp--data-schemenexusProduce the example datapytest--examplesDocumentationhttps://ewoksxrpd.readthedocs.io/