Saravanan666/pypi-org huggingface dataset:
Package: pyecodevices
pyecodevices - Python GCE Eco-DevicesGet information from GCE Eco-DevicesParametershost: ip or hostnameport: (default: 80)username: if authentication enabled on Eco-Devicespassword: if authentication enabled on Eco-Devicesrequest_timeout: (default: 10)Propertieshost: return the hostversion: return the firmware versionmac_address: return the mac addressMethodsget_info: get properties from the APIglobal_get: return all data from the APIget_t1: return values of input T1get_t2: return values of input T2get_c1: return values of input C1get_c2: return values of input C2ExamplefrompyecodevicesimportEcoDevicesimportasyncioasyncdefmain():asyncwithEcoDevices('192.168.1.239','80',"username","password")asecodevices:awaitecodevices.get_info()print("firmware version:",ecodevices.version)data=awaitecodevices.global_get()print("all values:",data)data=awaitecodevices.get_t1()print("teleinfo 1:",data)print("current:",data["current"],"VA")if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: pyecoforest
pyecoforestPython library for ecoforest local device.InstallationInstall this via pip (or your favourite package manager):pip install pyecoforestContributors ✨Thanks goes to these wonderful people (emoji key):Pedro Januário💻🤔📖This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: pyeconet
pyeconetPython3 interface to the unofficial EcoNet API.NOTEThis isn't using an official EcoNet API therefore this library could stop working at any time, without warning.importasyncioimportloggingimporttimeimportgetpassfrompyeconetimportEcoNetApiInterfacefrompyeconet.equipmentimportEquipmentTypefrompyeconet.equipment.water_heaterimportWaterHeaterOperationModelogging.basicConfig()logging.getLogger().setLevel(logging.DEBUG)asyncdefmain():email=input("Enter your email: ").strip()password=""#getpass.getpass(prompt='Enter your password: ')api=awaitEcoNetApiInterface.login(email,password=password)all_equipment=awaitapi.get_equipment_by_type([EquipmentType.WATER_HEATER,EquipmentType.THERMOSTAT])#api.subscribe()#await asyncio.sleep(5)forequip_listinall_equipment.values():forequipmentinequip_list:print(f"Name:{equipment.device_name}")#        print(f"Set point: {equipment.set_point}")#        print(f"Supports modes: {equipment._supports_modes()}")#        print(f"Operation modes: {equipment.modes}")#        print(f"Operation mode: {equipment.mode}")#await equipment._get_energy_usage()#equipment.set_set_point(equipment.set_point + 1)#equipment.set_mode(OperationMode.ELECTRIC_MODE)#await asyncio.sleep(300000)#api.unsubscribe()if__name__=="__main__":loop=asyncio.get_event_loop()loop.run_until_complete(main())
Package: pyeconomy
py-economyA simple to use economy module.WARNING: This project is in alpha release and may be unstable and buggy.Developers: Konrad (@konradsic)Installpip install pyeconomyLinksPyPi - Python Package IndexHow it worksIt is very simple:Everything is stored in.jsonfilesDiscord async functions works same as normal, but it returns an embed object that you can send.Code example:importpyeconomyaseconomyinstance=economy.Economy(discord_mode=False)user=instance.get_user_by_id(id="1234567890")# enter user id hereifuserisNone:print("User not found!")else:print(f"{user.name}'s balance:{user.wallet}")This easy example will create an economy instance (economy.Economy) set discord mode toFalse.Then it searches for a user with id1234567890, checks if it exists and prints it's balance.Please note, that its an pre-alpha relase and it does not support discord yet.
Package: pyecospold
pyecospoldInstallationYou can installpyecospoldvia [pip] from [PyPI]:$pipinstallpyecospoldecospold1 Schema Updates1.1This library includes a new version of the schema definitions for ecospold1. Version 1.1 includes the following changes:Changed the length restriction onreferenceFunction.nameto 255Changed the length restriction onreferenceFunction.synonymto 255Changed the length restriction oncategoryandsubCategoryto 255Changed the length restriction onrepresentativeness.productionVolumeto 32.000MadetelephoneoptionalThese changes were based on how this schema was being used by LCA software.1.2Corrected the handling of CAS numbers based onthe official documentation:A fixed size isn't required, zero-padding is optional and in any case is not used consistently by LCA softwareMaximum length is 12, not 11The first element has a minimum size of 2 digits, not 1Usagefrompyecospoldimportparse_file_v1,save_ecopsold_file,Defaults# Override defaults if needed, else skip. Defaults are already set.Defaults.config_defaults("config.ini")# Replace with your own config file# Parse the required XML file to EcoSpold class.ecoSpold=parse_file_v1("data/v1/v1_1.xml")# Replace with your own XML fileecoSpold>><Element{http://www.EcoInvent.org/EcoSpold01}ecoSpoldat0x1e667f7dae0># Change whatever attributes you need changing.referenceFunction=ecoSpold.datasets[0].metaInformation.processInformation.referenceFunctionreferenceFunction.amount>>1.0referenceFunction.amount=2.0referenceFunction.amount>>2.0# Save final EcoSpold class as an XML file, make sure root directory exists.save_ecopsold_file(ecoSpold,"out/00001_new.xml")# Replace with your own pathConfig file[parameters]SCHEMA_V1_FILE=path/to/schemas/v1/EcoSpold01Dataset.xsdSCHEMA_V2_FILE=path/to/schemas/v2/EcoSpold02.xsd[Allocation]allocationMethod=-1[DataEntryBy]qualityNetwork=1[Dataset]validCompanyCodes=CompanyCodes.xmlvalidRegionalCodes=RegionalCodes.xmlvalidCategories=Categories.xmlvalidUnits=Units.xml[DataSetInformation]impactAssessmentResult=falseinternalVersion=1.0version=1.0[Exchange]uncertaintyType=1[ReferenceFunction]infrastructureProcess=trueContributingContributions are very welcome.
To learn more, see theContributor Guide.LicenseDistributed under the terms of theBSD license,pyecospoldis free and open source software.IssuesIf you encounter any problems,
pleasefile an issuealong with a detailed description.Credits
Package: pyecotaxa
pyecotaxaPython package to query EcoTaxa and process its output.pyecotaxa.archive: Read and write EcoTaxa archivesfrompyecotaxa.archiveimportread_tsv,write_tsv# Read a .tsv file into a pandas DataFrame# In contrast to pd.read_csv, this function transparently handles the type headerdf=read_tsv(path_to_file)# Write pandas DataFrame into a .tsv file# In contrast to df.to_csv, this function can generate the type headerwrite_tsv(df,path_to_file)pyecotaxa.remote: Interact with a remote EcoTaxa serverfrompyecotaxa.remoteimportRemoter=Remote()# Loginr.login(username,password)# Pull one or more project archives by project_idr.pull(project_ids)
Package: pyEcovent
# pyEcoventPython3 library for single-room energy recovery ventilators from Vents / Blauberg / Flexit## Installpip3 install pyEcovent## Example usagefrom ecovent import Fan
“”” Create a new fan with IP Address “””
“”” The Fan object takes ‘host’, ‘name’, ‘port’ as arguments “””
“”” ‘host’ (IP address) is the only mandatory argument “””
“”” ‘name’ is optional and will default to ecofan “””
“”” ‘port’ is also optional and will default to 4000 “”””
fan=Fan(“192.168.0.22”)“”” Optinally create a Fan with a name
fan=Fan(“192.168.0.22”, “Cellar Fan”)“”” Update the current values of the fan “””
fan.update()“”” Print the current configured values “””
print(fan.state)
print(fan.speed)
print(fan.man_speed)
print(fan.airflow)
print(fan.humidity)“”” Set speed to medium (low=1 / medium=2 / high=3) “””
fan.set_speed(2)
print(fan.speed)“”” Set fan state to off/on “””
fan.set_state_off()
fan.set_state_on()“”” Set manual speed to 123 (valid values 22 -> 255) “””
fan.set_man_speed(123)
print(fan.man_speed)“”” Set airflow to ‘Air Supply’ (ventilation=0 / heat recovery=1 / air supply=2)”””
fan.set_airflow(2)
print(fan.airflow)## Intended usage
The intended usage of this library is to include ventilation fans from Vents / Blauberg / Flexit in <https://www.home-assistant.io/>## Tested fans
This library has only been tested on [Twinfresh Expert RW1-50](http://vents-us.com/item/5262/VENTS_TwinFresh_Expert_RW1-50-2_Wi-Fi/)There are fans from Blauberg and Flexit that are identical and should work, but I have not verified that.
- [Single room ventilator Roomie Dual](https://www.flexit.no/en/products/single_room_ventilator/single_room_ventilator_roomie_dual/single_room_ventilator_roomie_dual/)
- [Blauberg VENTO Expert A50-1 W](https://blaubergventilatoren.de/en/product/vento-expert-a50-1-w)
Package: pyEcoventV2
# pyEcoventV2Python3 library for single-room energy recovery ventilators from Vents / Blauberg / Flexit## Installpip3 install pyEcoventV2## Example usagefrom ecovent import Fan
“”” Create a new fan with IP Address “””
“”” The Fan object takes ‘host’, ‘name’, ‘port’ as arguments “””
“”” ‘host’ (IP address) is the only mandatory argument “””
“”” ‘name’ is optional and will default to ecofan “””
“”” ‘port’ is also optional and will default to 4000 “”””
fan=Fan(“192.168.0.22”)“”” Optinally create a Fan with a name
fan=Fan(“192.168.0.22”, “Cellar Fan”)“”” Update the current values of the fan “””
fan.update()“”” Print the current configured values “””
print(fan.state)
print(fan.speed)
print(fan.man_speed)
print(fan.airflow)
print(fan.humidity)“”” Set speed to medium (low=1 / medium=2 / high=3) “””
fan.set_speed(2)
print(fan.speed)“”” Set fan state to off/on “””
fan.set_state_off()
fan.set_state_on()“”” Set manual speed to 123 (valid values 22 -> 255) “””
fan.set_man_speed(123)
print(fan.man_speed)“”” Set airflow to ‘Air Supply’ (ventilation=0 / heat recovery=1 / air supply=2)”””
fan.set_airflow(2)
print(fan.airflow)## Intended usage
The intended usage of this library is to include ventilation fans from Vents / Blauberg / Flexit in <https://www.home-assistant.io/>## Tested fans
This library has only been tested on the following fans:
- [Twinfresh Expert RW1-50](http://vents-us.com/item/5262/VENTS_TwinFresh_Expert_RW1-50-2_Wi-Fi/)
- [Blauberg VENTO Expert A50-1 W](https://blaubergventilatoren.de/en/product/vento-expert-a50-1-w)
- [Blauberg VENTO Expert A50-1 W](https://blaubergventilatoren.de/en/product/vento-expert-a50-1-w)
- [Blauberg VENTO EXPERT DUO A30-1 W](https://blaubergventilatoren.de/en/series/vento-expert-duo-a30-1-s10-w-v2)Fans from Flexit are identical and should work, but this is not yet tested:
- [Single room ventilator Roomie Dual](https://www.flexit.no/en/products/single_room_ventilator/single_room_ventilator_roomie_dual/single_room_ventilator_roomie_dual/)## Changelog
- v 0.9.9.
– initialize _battery_voltage with 0 not None
- v 0.9.16
– fix undocumented boost_status 2 (delay switching on state)
Package: py-ecp
pseudocode-interpreterCC BY-SA 2021 Alfred Taylor & Conqu3red(AQA) Exam Compatible Psuedocode V1 ALPHA  (A.E.C.P/E.C.P)PLEASE EXPECT LIMITED FUNCTIONALITY.Introduction:This is an adaptation of the pseudocode used by the AQA GCSE testing body (foundhere) that has had its syntax tweaked for use in a compiler and had some additional functionality added. The language will be fully Turing complete. Pseudocode found in tests is compatible with AECP/ECP. It is procedurally based, and shares similarities with python (It is programmed on python, after all.) It is intended as a scripting language, that is separate from python, but has the same basic functionality, whilst maintaining some resemblance of simplicity. Considering it is entirely written in python, it is not for use in situations where speed is a priority.InterpretersCurrently we only have a python based interpreter, altough we have a C++ based interpreter coming soon.How it worksAECP/ECP code is analysed and then parsed into a python AST (Abstract Syntax Tree). This can then be executed by the python interpreter. This allows near seamless integration with python and almost identical speed and behaviour.UsageCommand Line argumentsusage: python -m ecp [-h] [--debug] [--trace [TRACE [TRACE ...]]] [--tracecompact] [--pause] [--version] [inputfile]

ECP interpreter

positional arguments:
  inputfile

optional arguments:
  -h, --help            show this help message and exit
  --debug               show debug information like token list
  --trace [TRACE [TRACE ...]]
                        space seperated names of the variables to be traced
  --tracecompact        trace compactly
  --pause               pause on completion
  --version             show program's version number and exitInstallationpip install py-ecpRunningpython -m ecp path/to/ecp/file.ecpEmbedding ecp code in python filesfromecpimportecpecp("""SUBROUTINE TotalOut(a, b)c ← a + bWHILE a < ca ← a + 1b ← b - aENDWHILERETURN bENDSUBROUTINE""",scope=globals())print(TotalOut(3,4))Converting ECp to python source codepython -m ecp path/to/ecp/file.ecp --topythonor:fromecpimportto_py_sourcetext="""SUBROUTINE DoSomething(a, b)RETURN a + bENDSUBROUTINE"""print(to_py_source(text))MORE COMING SOON!
Package: pyecr
PyECRCommand line tool that helps handle interactively the workflow of pushing images to AWS ECR.Create or choose an AWS ECR RepositoryPull an docker image to your local DockerTag your docker image preparing it to upload to ECRPush the tagged docker image to ECR# To run it, just call it...$pyecrTroubleshootingError:TypeError:load_config()gotanunexpectedkeywordargument'config_dict'Solution:pipuninstalldocker-compose
pipuninstalldocker-py
pipuninstalldocker-compose
pipinstall--upgrade--force-reinstall--no-cache-dirdocker-compose
Package: pyecs
pyecsA simple implementation of the Entity-Component pattern.InstallThis project is available onPyPIso you can simply install it viapipinstallpyecsExamplefromdataclassesimportdataclassfromtypingimportTuplefrompyecsimportStore# 1. build your components@dataclassclassTransform:position:Tuple[float,float]=(0.0,0.0)@dataclassclassRigidbody:velocity:Tuple[float,float]=(0.0,0.0)acceleration:Tuple[float,float]=(0.0,0.0)if__name__=="__main__":# 2. intialize entity-component storestore=Store()# 3. add some entitiesscene=store.add_entity()scene.add_child(Transform(),Rigidbody(acceleration=(1.0,0.0)))scene.add_child(Transform(),Rigidbody(acceleration=(0.0,1.0)))scene.add_child(Transform(),Rigidbody(acceleration=(1.0,1.0)))# 4. run everythingwhileTrue:forentityinstore.get_entities_with(Transform,Rigidbody):transform,rigidbody=entity.get_components(Transform,Rigidbody)rigidbody.velocity=(rigidbody.velocity[0]+rigidbody.acceleration[0],rigidbody.velocity[1]+rigidbody.acceleration[1],)transform.position=(transform.position[0]+rigidbody.velocity[0],transform.position[1]+rigidbody.velocity[1],)print(f"{transform=}\t{rigidbody=}")Dev SetupSimply installpipenvand run the following line:pipenvinstall--dev
Package: pyecsca-codegen
pyecsca-codegenPythonEllipticCurve cryptographySide-ChannelAnalysis toolkit.Codegen package. See themain repofor more information.SeeINSTALLfor installation instructions.LicenseMIT License

Copyright (c) 2018-2023 Jan Jancar

Permission 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.Development is supported by the Masaryk University grantMUNI/C/1701/2018,
this support is very appreciated.
Package: pyecsim
PyECsim is a fast and general simulator of voltammetry experiments. Using the latest state-of-the-art algorithms, it simulatesany number of electrode processes, using Butler-Volmer charge transfer kinetics, coupled toany number of homogeneous reactions (first or second order), usinguser-defined voltammetry waveforms.A typical simulation, even with very large reaction rate constants (10e9 /s), takes around 10 ms to run. Because the simulations are fast, you can use them inside the target function of an optimization routine.In-depth documentation can be found onread the docs.# InstallInstalling PyECsim is easy:pip install --user pyecsim# Quick-startThe below example is a minimal piece of code that simulates a charge transfer step (ox + e <-> red) coupled to a chemical reaction (ox <-> prod).Import PyECsim into your Python code (and matplotlib to plot the voltammogram):importpyecsimasecsimportmatplotlib.pyplotaspltThen create a simulator and species, a charge transfer step and a chemical reaction:sim=ecs.Simulation(True)# or False to suppress outputred=ecs.Species('reduced species',1.0,1.0e-9)# name, concentration [mol/m3], diffusion coefficient [m2/s]ox=ecs.Species('oxidized species',0.0,1.0e-9)prod=ecs.Species('reaction product',0.0,1.0e-9)rdx1=ecs.Redox(ox,red,1,0.0,10.0,0.5).enable()# ox, red, n, E_0 [V], k_e [m/s], alphasim.sys.addRedox(rdx1)rxn1=ecs.Reaction(ox,None,prod,None,5.0,0.0).enable()# reactant1, reactant2, product1, product2, k_f, k_bsim.sys.addReaction(rxn1)Lastly, we set the electrode type and radius, the voltammograms initial/vertex/final potentials and the scan rate:sim.el.disk(1.0e-3)# radius [m]sim.exper.setScanPotentials(-0.5,[0.5],-0.5)# potentials [V]: initial, [0 or more vertices], finalsim.exper.setScanRate(1.0)# scan rate [V/s]And then we can run the simulation and plot the results:[potential,current]=sim.run()plt.plot(potential,current)Which gives:
Package: pyed
This package is yet another tool to help generate graph using Python +Yed.Pyed provide a set of tools to create a graphML instance from Python. For simple graph you can also use a .yaml file for convenienceDocumentation:https://pyed.readthedocs.io/en/latest/Source code:https://github.com/ccossou/PyedBug reports:https://github.com/ccossou/Pyed/issuesMy package focus on drawing simple graph to quickly visualise relations between informations. It's a crude subset of what graphs are capable of. My intent is to have a kind ofInkscape, but for graph.Yedis that, but I don't want to add and draw manually dozen of nodes when trying to understand a datastructure or a code.These pages are thought to provide quick documentation on what you can do with this package, especially the different types of nodes and the parameter and values available.Why another package?Other packages that exists (that took the best names):Pyyed(My package is loosely based on this one)PygraphmlNetworkXI wanted functionalities that do not exist in those packages. I wanted a way to create package with enhanced data visualisation, in particular node with list of information (GenericNode in Pyed) and node with table of data (TableNode in Pyed) and custom nodes with any .svg file as a shape (SvgNode in Pyed).PrincipleThis package will not create finalized graph on its own. You'll have to useYedor another GUI that support .graphml to render the graph correctly. By default, node size is not adapted to its content, and all nodes are on top of eachother.
Package: py-ed25519-bindings
py-ed25519-bindingsPython bindings for theed25519-dalek RUST crateDocumentationhttps://docs.rs/py-ed25519-bindingsInstallationInstall from PyPIpip install py-ed25519-bindingsCompile for local developmentpip install -r requirements.txt
maturin developBuild wheelhousespip install -r requirements.txt

# Build local OS wheelhouse
maturin build

# Build manylinux1 wheelhouse
docker build . --tag polkasource/maturin
docker run --rm -i -v $(pwd):/io konstin2/maturin buildUsageimportbip39imported25519_dalekmessage=b"test"# Get private and public key from seedseed=bip39.bip39_to_mini_secret('daughter song common combine misery cotton audit morning stuff weasel flee field','')private_key,public_key=ed25519_dalek.ed_from_seed(bytes(seed))# Generate signaturesignature=ed25519_dalek.ed_sign(public_key,private_key,message)print(signature.hex())# Verify message with signatureifed25519_dalek.ed_verify(signature,message,public_key):print('Verified')Licensehttps://github.com/polkascan/py-ed25519-bindings/blob/master/LICENSE
Package: py-ed25519-blake2b
A fork of python-ed25519 that uses BLAKE2b instead of SHA512 as a hash function
as used in the NANO cryptocurrency.
Original code written by @warner on GitHub:
github.com/warner/python-ed25519Python bindings to the Ed25519 public-key signature system.This offers a comfortable python interface to a C implementation of the
Ed25519 public-key signature system (http://ed25519.cr.yp.to/), using the
portable ‘ref’ code from the ‘SUPERCOP’ benchmarking suite.This system provides high (128-bit) security, short (32-byte) keys, short
(64-byte) signatures, and fast (2-6ms) operation. Please see the README for
more details.
Package: py-ed25519-zebra-bindings
py-ed25519-zebra-bindingsPython bindings for theed25519-zebra RUST crateDocumentationhttps://docs.rs/py-ed25519-zebra-bindingsInstallationInstall from PyPIpip install py-ed25519-zebra-bindingsCompile for local developmentpip install -r requirements.txt
maturin developBuild wheelspip install -r requirements.txt

# Build local OS wheel
maturin build --release

# Build manylinux1 wheel
docker run --rm -v $(pwd):/io ghcr.io/pyo3/maturin build --releaseUsageimportbip39imported25519_zebramessage=b"test"# Get private and public key from seedseed=bip39.bip39_to_mini_secret('daughter song common combine misery cotton audit morning stuff weasel flee field','')private_key,public_key=ed25519_zebra.ed_from_seed(bytes(seed))# Generate signaturesignature=ed25519_zebra.ed_sign(private_key,message)# Verify message with signatureifed25519_zebra.ed_verify(signature,message,public_key):print('Verified')Licensehttps://github.com/polkascan/py-ed25519-zebra-bindings/blob/master/LICENSE