Saravanan666/pypi-org huggingface dataset:
Package: pyencrypto
Python EncrypterUse this python package to help encrypt and decrypt files/messages/objects with a key.Explore the docs »View Demo·Report Bug·Request FeatureTable of ContentsAbout The ProjectBuilt WithGetting StartedPrerequisitesInstallationUsageRoadmapContributingLicenseContactAcknowledgementsAbout The ProjectThis python package allows for ease of use to encrypt/decrypt files/objects/messages.Built WithSeleniumPython3Getting StartedTo get a local copy up and running follow these simple steps.PrerequisitesThis is an example of how to list things you need to use the software and how to install them.bashsudoaptinstall-ypython3python3-pip
pip3installcryptographyInstallationClone the repogitclonehttps://github.com/taosdevops/pyencrypto.gitInstall PIP packagepip3install-epyencrypto
or
pythonsetup.pyinstallUsageUse this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.# pyencrypto#!/usr/bin/env python3frompyencrypto.crypterimportCrypterimportpathlibfromtimeimportsleepdefmain():cwd=pathlib.Path.cwd().joinpath("testing.txt")crypter=Crypter('EF2Gtyt3XWsD1mk8gYWn-hJzjljA2dJCqeYnmIYET_E=')crypter.set_key_session()crypter.encrypt(cwd)sleep(1)crypter.decrypt(cwd)if__name__=='__main__':main()RoadmapSee theopen issuesfor a list of proposed features (and known issues).ContributingContributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make aregreatly appreciated.Fork the ProjectCreate your Feature Branch (git checkout -b feature/AmazingFeature)Commit your Changes (git commit -m 'Add some AmazingFeature')Push to the Branch (git push origin feature/AmazingFeature)Open a Pull RequestLicenseDistributed under the MIT License. SeeLICENSEfor more information.ContactProject Link:https://github.com/koltenfluckiger/pyencrypto
Package: pyenerginetpowerrightnow
pyenerginetpowerrightnowA small python library to access electrical energy statistics for Denmark - as provided byhttps://energinet.dk/energisystemet-lige-nu/How to useSee test.py for an example of how to use this endpoint.DisclaimerThis project has no affiliation with Energinet. The purpose of this project is to increase the value of publicly available information, by making it available through more channels.
If any of this is a problem for you, please get in touch.(This disclaimer is hopefully not really necessary.)
Package: pyenergydiagrams
pyEnergyDiagramsInstallationpip install pyenergydiagramsUsagefrompyenergydiagramsimportState,Diagramimportmatplotlib.pyplotaspltstates=[State((-1)**i)foriinrange(20)]states[5]=State(-3)states[13]=State(-5)my_diagram=Diagram(states)plt.plot(my_diagram.x,my_diagram.y)my_diagram.add_dotted_line(states[-2],dx_right=2)my_diagram.add_arrow(states[14],states[13],"$E_1$")my_diagram.add_arrow(states[-1],states[-2],"$E_2$")plt.show()
Package: pyenergyplus-lbnl
# pyenergyplus (LBNL)pyenergyplus is a direct port of the pyenergyplus inside regular EnergyPlus
distribution into a standalone Python pacakge. Nothing is changed.
No additional code written. The purpose of the port is a have a standalone
Python pacakge so that regular Python users can access EnergyPlus through
pyenergyplus API without having to separately install EnergyPlus and manage
environment manually.
Package: pyenergyx
PyEnergyXPyEnergyX is a robust Python library aimed at professionals in the energy industry. It provides a reliable and accurate method for converting between various energy units.OverviewWith PyEnergyX, you can conveniently convert between common units as well as less conventional ones like Tonne of Coal Equivalent, Barrel of Aviation Gasoline, BTU, tons of coal, barrels of oil, joules, and many more.The main source for the conversion factors used in this library is the Energy Information Administration (eia.gov) and the American Physical Society (aps.org), which ensures high accuracy and reliability of the conversions.InstallationTo install PyEnergyX, you can use pip to install directly from the GitHub repository:pip install git+https://github.com/mariodgr/pyenergyx.gitUsageHere's how to use PyEnergyX:First, import the EnergyConverter class and create an instance:from pyenergyx import EnergyConverter

converter = EnergyConverter()You can get a list of all available energy units:units = converter.get_units()
# Returns a list of dictionaries with 'abbreviation' and 'name' of a unitTo convert from one energy unit to another, use the convert() method:result = converter.convert(1000, 'J', 'kWh')
# Converts 1000 Joules to Kilowatt HoursError HandlingThe ConversionError exception will be raised if there are any issues during the conversion process, such as unknown units or invalid values.## Contributing
Contributions to PyEnergyX are very welcome! Feel free to fork the repository and submit pull requests.LicenseThis project is open source, provided under the MIT License. Feel free to use, modify, and distribute PyEnergyX as you see fit.
Package: pyenest
pynest is a python interface for the Nest Thermostat
by Scott M Baker,smbaker@gmail.com,http://www.smbaker.com/pyenest is the above, Edited
by Eugene Efremov,eaefremov@gmail.comUsage:‘nest.py’ can be imported and used programmatically by passing
parameters identifying specific structures and devices, meant for setups where
you have multiples or want to be agnostic.Installation:pip install pyenest will do you right.Licensing:This is distributed unider the Creative Commons 3.0 Non-commecrial,
Attribution, Share-Alike license. You can use the code for noncommercial
purposes. You may NOT sell it. If you do use it, then you must make an
attribution to me (i.e. Include my name and thank me for the hours I spent
on this)Acknowledgements:Chris Burris’s Siri Nest Proxy was very helpful to learn the nest’sauthentication and some bits of the protocol.Scott Baker’s nest.py, which I (Eugene Efremov) shamelessly bastardized, was irreplaceableand without it I likely wouldn’t have done any of this.
Package: pyenet
pyenet is a python wrapper for the ENet library by Lee Salzman,http://enet.bespin.orgIt was originally written by Scott Robinsonscott@tranzoa.comand is
currently maintained by Andrew Reschandrewresch@gmail.comThis fork is being maintained by the piqueserver team for purposes of
including patches for bugs found while developing piqueserver, and to
provide a package on pypi.Licensepyenet is licensed under the BSD license, see LICENSE for details. enet
is licensed under the MIT license, seehttp://enet.bespin.org/License.htmlDependenciesBuilding pyenet requires all the same dependencies as enet plus Cython
and, obviously, Python.InstallationFrom pypipip install pyenetManually from gitRun the setup.py build:$ python setup.py buildOnce that is complete, install the new pyenet module:# python setup.py installPackaging notesupdate package version insetup.pycreate a virtualenv
(python3-mvenv venv && source venv/bin/activate)install the requirements:pip install-rdev-requirements.txtbuild the source dist:python setup.py sdistmake sure docker is installed and running and you re on a 64bit linux
machinebuild the binary dists:./scripts/build_packages.shupload to pypi:twine upload dist/* wheelhouse/pyenet*commit, tag, push to githubUsageOnce you have installed pyenet, you only need to import the enet module
to start using enet in your project.Example server:>>> import enet
>>> host = enet.Host(enet.Address("localhost", 33333), 1, 0, 0)
>>> event = host.service(0)Example client:>>> import enet
>>> host = enet.Host(None, 1, 0, 0)
>>> peer = host.connect(enet.Address("localhost", 33333), 1)More information on usage can be obtained from:http://enet.bespin.org/Tutorial.html
Package: pyenet311
pyenet is a python wrapper for the ENet library by Lee Salzman,http://enet.bespin.orgIt was originally written by Scott Robinsonscott@tranzoa.comand is
currently maintained by Andrew Reschandrewresch@gmail.comThis fork is being maintained by the piqueserver team for purposes of
including patches for bugs found while developing piqueserver, and to
provide a package on pypi.Licensepyenet is licensed under the BSD license, see LICENSE for details. enet
is licensed under the MIT license, seehttp://enet.bespin.org/License.htmlDependenciesBuilding pyenet requires all the same dependencies as enet plus Cython
and, obviously, Python.InstallationFrom pypipip install pyenetManually from gitRun the setup.py build:$ python setup.py buildOnce that is complete, install the new pyenet module:# python setup.py installPackaging notesupdate package version insetup.pycreate a virtualenv
(python3-mvenv venv && source venv/bin/activate)install the requirements:pip install-rdev-requirements.txtbuild the source dist:python setup.py sdistmake sure docker is installed and running and you re on a 64bit linux
machinebuild the binary dists:./scripts/build_packages.shupload to pypi:twine upload dist/* wheelhouse/pyenet*commit, tag, push to githubUsageOnce you have installed pyenet, you only need to import the enet module
to start using enet in your project.Example server:>>> import enet
>>> host = enet.Host(enet.Address("localhost", 33333), 1, 0, 0)
>>> event = host.service(0)Example client:>>> import enet
>>> host = enet.Host(None, 1, 0, 0)
>>> peer = host.connect(enet.Address("localhost", 33333), 1)More information on usage can be obtained from:http://enet.bespin.org/Tutorial.html
Package: pyEnFace
PyEnFace is a package used to interface with the Enphase Developer APIIt supports returning raw strings, dicts via json, pandas dataframes and
pandas dataframes that are cached via any engine supportable by sqlalchemy.Currently it is only supported with python 3.4, I intend to support all versions of python3 but I’m not sure it will be back ported to python 2 at this point in time.Originally the project was going to be called the lame name EnphaseInterface, but I soon realized how how much I didn’t like the anti-open source Enphase products are so I… picked the first syllable of the first word and the last syllable of the last word mashed them together and added the letters py.  Why add py, because it is the proverbial python package extension.  PyEnFace kind of has a nice ring to it…
Package: pyengine
#                       使用指南1、pip install pyengine2、运行命令 pyengine run -d 缓存目录 -p 端口号 -n 可同时处理的请求数量3、接口/run/body 体为一个FuncClass的子类```pythonfrom pyengine import FuncClassimport timeclass My2(FuncClass):def run(self):print('MY is Running')time.sleep(1)return "你好啊！"```返回结果为```json{"res": "你好啊!"}```/add/增加n的个数/reduce/减少n的个数4、新增一个异步装饰器```pythonfrom pyengine import async_work_res,async_workdef deal_res(res):print('res')@async_work_res(deal_res)def work():return '大家好！'@async_workdef work():return '大家好！'```可以使被装饰的函数启动一个进程或者线程去执行（在win下启动线程，在linux下启动进程）,该装饰器的参数是一个可以处理被装饰的函数的结果5 、异步方法改进​	0.0.4​	进程开启方法改进，进程退出方法改进​        僵尸进程处理
Package: pyEngine2D-ddd
pyEngine2D_dddA game engine built using pygame based off of the Unity game engine.Installation1: Use the package managerpipto install pygame.pipinstallpygame2: Go to variables.py and make ascreen objectgo below to see examples of how to do this

Save the screen as "screen"3: Initialize all thegame objectsyou want underneath the screen in variables.pyTo set attributes for user-made scripts call the game object from the dictionary then follow the path to the attribute4: Load all media(images, sound, etc) into the "data" folder5: Write the main game code into ".py" files in the "scripts/user" folderthere are two folders in scripts; "user" and "builtins" you only need to look at usera sample file is provided in the script/user folder alreadymake sure to load all the packages you want by naming the file and class name at the end of the game object declaration6: Finally run the "main.py" file to run the gameThe following should appear:Code Samplesvariables.pyfromgame_objectimportGameObjectasGOfromscreen_initimportScreenInit# Creates a screen to run the game on# screen = Init(width, height, fps, ffps, icon, name_window)screen=Init(300,280,60,100,"test.png","myGame")# initializes a game object onto the game screen#loads in the script "Transform" to allow the go to be rendered on the screen and moved#"origin" is the default parentGameObject(name,screen,sprite,parent,packages)GameObject("test_object",screen.screen,"test.png","origin","Transform.transform")#setting the attributesGO.GAME_OBJECTS["test_object"].Transform.transform=[0,0]GO.GAME_OBJECTS["test_object"].Transform.rotation=0player_movement.pyfromgame_objectimportGameObjectclassPlayerMovement:def__init__(self,game_object):self.game_object=game_objectdeffixed_update(self):'''Every physics frame rotate the image by 1 degree and multiply the scale by 0.999'''self.game_object.Transform.rotation=self.game_object.Transform.rotation-1self.game_object.Transform.scale=[self.game_object.Transform.scale[0]*0.999,self.game_object.Transform.scale[1]*0.999]#notice there is no update you do not need all the methods overriden in the player made scripts for it to run properlyif__name__=='__main__':passContributingPull 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.
Package: pyenigma
pyEnigmapyEnigmais a  Python Enigma cypher machine
simulator.For reporting issues, visit the tracker here:https://todo.sr.ht/~cedric/pyenigmaUsageAs a Python libraryYou can install pyEnigma with Poetry.$poetryinstallpyenigmaThen you can use it in your program:$poetryshell(pyenigma-py3.12)$(pyenigma-py3.12)$pythonPython3.12.1(main,Dec312023,00:21:59)[GCC12.2.0]onlinuxType"help","copyright","credits"or"license"formoreinformation.>>>frompyenigmaimportenigma>>>frompyenigmaimportrotor>>>print(rotor.ROTOR_GR_III)Name:IIIModel:GermanRailway(Rocket)Date:7February1941Wiring:JVIUBHTCDYAKEQZPOSGXNRMWFL>>>>>>engine=enigma.Enigma(rotor.ROTOR_Reflector_A,rotor.ROTOR_I,rotor.ROTOR_II,rotor.ROTOR_III,key="ABC",plugs="AV BS CG DL FU HZ IN KM OW RX")>>>print(engine)Reflector:Name:ReflectorAModel:NoneDate:NoneWiring:EJMZALYXVBWFCRQUONTSPIKHGDRotor1:Name:IModel:Enigma1Date:1930Wiring:EKMFLGDQVZNTOWYHXUSPAIBRCJState:ARotor2:Name:IIModel:Enigma1Date:1930Wiring:AJDKSIRUXBLHWTMCQGZNPYFVOEState:BRotor3:Name:IIIModel:Enigma1Date:1930Wiring:BDFHJLCPRTXVZNYEIWGAKMUSQOState:C>>>secret=engine.encipher("Hello World")>>>print(secret)QgqopVyzxpAs a programInstall pyEnigma system wide with pipx:$pipxinstallpyenigmaThen you can use the command line interface:$echo"Hello World"|enigmaABCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"QgqopVyzxp

$echo"Qgqop Vyzxp"|enigmaABCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"HelloWorldIf you want to display the rotor output state:$echo"Hello World"|enigmaABCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"--verbose
QgqopVyzxp
KBCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"The state is returned onstderr, so you can still use the Unix pipe mechanism:$echo"Hello World"|enigmaABCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"--verbose|enigmaABCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"KBCAIIIIII"AV BS CG DL FU HZ IN KM OW RX"HelloWorldLicensepyEnigma is licensed underGNU General Public License version 3AuthorChristophe Goessen(initial author)Cédric Bonhomme
Package: pyenlone
pyenlonePython3 wrapper of enl.one REST APIs:https://v.enl.onehttps://tasks.enl.onehttps://status.enl.one(Not very soon, but soon)
For more info:https://wiki.enl.one/doku.php?id=startTo install:pip3 install pyenloneHave a look at the /examples !/tasks/party_op.py shows an integral example of organizing an operation/tasks/ops_you_helped.py shows how to use both APIs with VOAuthYou'll need to have an apikey from:https://v.enl.one/apikeyOr to set up oauth from:https://v.enl.one/oauth/clientsFor Tasks api you can also use Google API, Rocks, enl.io or Firebase for OAuth
(not really tested though)Documentation for V Api can be foundherehttps://v.enl.one/apikeyand herehttps://v.enl.one/oauth/clientsAnd documentation for Tasks API isherehttps://wiki.enl.one/doku.php?id=t_basic_documentationTODOAdd webhooks and sockets and other things I don't really understand to Tasks
Package: pyenopt
Pyenopt codeThis package contains code related to the pyenopt package for ensemble based
optimization.Currently it contains a plugin for the main pyenopt package to provide backwards
compatibility with a legacy sqlite database interface ot pyenopt.The main pyenopt optimizer code itself is currently an internal project, but
will be released as open-source in the near future. Until then, adding parts of
the code that can be released already, like this plugin, are added
incrementally.All files in this repository are released under the The GNU General Public
License v3.0 (a copy is provided in the LICENSE file).
Package: pyenphase
pyenphaseLibrary to control enphase envoyInstallationInstall this via pip (or your favourite package manager):pip install pyenphaseContributors ✨Thanks goes to these wonderful people (emoji key):This project follows theall-contributorsspecification. Contributions of any kind welcome!CreditsThis package was created withCopierand thebrowniebroke/pypackage-templateproject template.
Package: pyensae
pyensae: hide complexity for teachingsThis project contains helpers used at theENSAEfor teachings available atENSAE - Programmation - Xavier Dupré.
It was the first module created for that usage.
It does not have a clear purpose except hiding
some annoying logic and shorten notebooks.
It can:retrieve data for practical lessonsimport a tsv file into a databaseretrieve stock prices from Yahoo FinanceIt implements a couple of magic commands to play withSQLite3in a notebook and easily show the head or tail
of a text file. It can fill missing values in timeseries
withadd_missing_indicesor download data from a website,
a helper to change the size offoliummaps or some grammar
to parse language such asRorSQL. It also implements a basic
way to convert aRscript into nastyPython.Links:GitHub/pyensaedocumentationBlog
Package: pyensign
PyEnsignPyEnsign is the official Python SDK forEnsign, a distributed event store and stream-processing platform. This library allows you to interact with the Ensign API directly from Python in order to createpublishersandsubscribers.Installationpip install pyensignUsageCreate a client from a client ID and client secret. If not provided, these will be obtained from theENSIGN_CLIENT_IDandENSIGN_CLIENT_SECRETvariables.frompyensign.ensignimportEnsignclient=Ensign(client_id=<yourclientID>,client_secret=<yourclientsecret>)TheEventclass can be used to create events from the raw data and mimetype.frompyensign.eventsimportEventevent=Event(b'{"temp": 72, "units": "fahrenheit"}',"application/json")Publish events to a topic. This coroutine accepts one or more events, so the following uses are all valid.awaitclient.publish("weather",event)awaitclient.publish("weather",event1,event2)awaitclient.publish("weather",[event1,event2])Publish is asynchronous. You should generally callflush()before your program exits to ensure that all events are published to the server.# Wait for events to be published with a default timeout of 2 seconds.awaitclient.flush()For more precision, you can wait for individual events to be acked by the server.ack=awaitevent.wait_for_ack()print(ack)Subscribe to one or more topics by providing the topic name(s) or ID(s).asyncforeventinclient.subscribe("weather"):print("Received event with data:{}".format(event.data))awaitevent.ack()Advanced UsageThepublishcoroutine accepts asynchronous callbacks so the client can distinguish between committed and uncommitted events. Callbacks are invoked when acks and nacks are received from the server and the first argument passed to the callback is theAckorNackitself. AnAckcontains a committed timestamp. ANackis returned if the event couldn't be committed and contains the ID of the event along with an error describing what went wrong.asyncdefhandle_ack(self,ack):ts=datetime.fromtimestamp(ack.committed.seconds+ack.committed.nanos/1e9)print(f"Event committed at{ts}")asyncdefhandle_nack(self,nack):print(f"Could not commit event{nack.id}with error{nack.code}:{nack.error}")awaitclient.publish("weather",event,on_ack=handle_ack,on_nack=handle_nack)
Package: pyensure
pyensureAn odd solution to auto-download missing imports.This is more of a proof-of-concept than a good idea.Installationpip install pyensureUsagefrom pyensure import hook, ensure_package

pytest = ensure_package('pytest') # will install pytest via pip to a temp location of missing

# or if you want to do something a bit more scary

hook()

import requests # will install requests via pip to a temp location of missing

# Note that hook() will actually overwrite the base __import__() method to ensure the package exists

# or if you just want to run a .py script and not worry  (as much) about depends
python -m pyensure <script> <args to script... >LicenseMIT License - Charles Machalow
Package: pyentity
py-entity========Basic Python Entities----------------------An entity is useful for preparing models for an API or view.Allows view or API UI specific logic to be removed from models.### ExampleWe have some object..```pythonclass GeorgeWashington(object):id = 1776first_name = 'George'last_name = 'Washington'phone_number = '(202) 456-1111'phone_number_private = Trueemail = 'prez1@whouse.gov'accomplishments = ['president', 'general', 'quarter model', 'woodworking']birthday = datetime.datetime(1732, 2, 22, 0, 0)```Converting this object to json would take a bit of work. We need to writesome kind of `to_dictionary` method, or a custom encoder. There will stilprobably be an issue with the `datetime` (not JSON-encodable) as well asthe fact that we want to conditionally include the `phone_number`, as longas `phone_number_private` is not `True`.Using an `Entity`:```pythonclass UserEntity(pyentity.Entity):_FIELDS_ = ['id','name','phone_number','email','accomplishments','birthday',]_ALIAS_ = 'user'def name(self):return "%s %s" % (self.user.first_name, self.user.last_name)def birthday(self):return self.user.birthday.isoformat()def phone_number(self):if self.user.phone_number_private:raise pyentity.SuppressFieldreturn self.user.phone_number```Then,```pythongeorge_entity = UserEntity(GeorgeWashington())print json.dumps(george_entity(), indent=2)``````javascript{"email": "prez1@whouse.gov","accomplishments": ["president","general","quarter model","woodworking"],"id": 1776,"birthday": "1732-02-22T00:00:00","name": "George Washington"}```Somtimes, we want to have different views over the same data. One may be a detaileddescription of an object, but some other may just be a summary. Entity inheritance helps here.```pythonclass SummaryEntity(UserEntity):_FIELDS_ = ['name', 'email']```Then,```pythonsummary_entity = SummaryEntity(GeorgeWashington())print json.dumps(summary_entity(), indent=2)``````javascript{"name": "George Washington","email": "prez1@whouse.gov"}```