Saravanan666/pypi-org huggingface dataset:
Package: pyevals
Table of ContentsAbout the ProjectInstallationUsageFuture WorkContactAbout The ProjectA very elegant and simple library to evaluate models.This module builds the BarPlot, BoxPlot, CountPlot, DistPlot, HeatMap, PairPlot and ViolinPlot only with one line of code. A folder is created 'Plots' where the pdf files of all the plots are stored. Along with this, a pdf file will be generated 'FinalPlots.pdf' which contains all the plots with which EDA can be performed easily.This module will evaulate the Classification problems and Regression problems with 12 and 6 algorithms respectively.The Classification algorithms are KNN,LogisticRegression,DecisionTreeClassifier, RandomForestClassifier, SupportVectorClassifier, QuadraticDiscriminantSnalysis, SGDClassifier, AdaBoost, CalibratedClassifier, MultinomialNB, BernoulliNB, GaussianNB.The Regression algorithms are LinearRegression, PolynomialRegression, RidgeRegression, LassoRegression, SupportVectorRegressor, GradientBoostingRegression.We also have implemented the Adjusted R Squared method as the Regression Metric Evaluation.In Classification , Highest Accuracy is Highlighted in Yellow colour.In Regression , Least Error is Highlighted in Yellow colour.InstallationClone the repogh repo clone Anand-gokul/pyevalsInstall using pip or pip3pip3 install pyevals

(or)

pip install pyevalsUsageimportpyevals# For Exploratory Data Analysis (or) For building the plotspyevals.BuildPlots(data,CategoricalFeatures,ContinuousFeatures)'''CategoricalFeatures and the ContinuousFeatures are the lists of the Categoricaland Continuous Features of the dataset respectively. '''# For ClassificationObject=pyevals.build(x_train,x_test,y_train,y_test,'classification')Object.evaluate()# For RegressionObject=pyevals.build(x_train,x_test,y_train,y_test,'regression')Object.evaluate()Future WorkIn this version we are only providing the reports and the plots as many as possible. We are working on improving the plots for better EDA.We will try to implement hyperparameter optimization techniques to get the better results. We will also try to implement other algorithms in classification and regression soon.ContactGithublink -https://github.com/Anand-gokul/pyevalsSai Gokul Krishna Reddy Talla -@Krish-gokulkrishna.talla@gmail.comAnanda Datta Sai Phanindra Tangirala -@Anand-tangiralaphanindra@gmail.comAnirudh Palaparthi -@Anirudh-aniruddhapnbb@gmail.com
Package: pyevaltool
pycvtoolsFunctionality of the pyevaltoolAutomated testing of the bot response deployed gptpip install pyevaltoolTo runfrom pyevaltool import *For GPT test -url = '' # Add the frontend url 
token = '' # add your token or key - Apim-Subscription-Key or Bearer token
# change the chat completion format if required. 
# This code will work only if the question asked is at chat_completion_format['messages'][0]["content"]
chat_completion_format = {'chatId': '', 'siteInfo': {'domain': ''}, 'messages': [{'role': 'user', 'content': ''}], 'model': '', 'stream': False} 
answer_loc = "['choices'][0]['messages'][0]['content']" #in string format
input_file = " " # Here you add your input file link
gpt_test(url,token,chat_completion_format,answer_loc,input_file,output_file = "output.csv" )
Package: pyeventbus
pyeventbus is a publish/subscribe event bus for Python 2.7.simplifies the communication between python classesdecouples event senders and receiversperforms well threads, greenlets, queues and concurrent processesavoids complex and error-prone dependencies and life cycle issuesmakes code simplerhas advanced features like delivery threads, workers and spawning different processes, etc.is tiny (3KB archive)pyeventbus in 3 steps:Define events:class MessageEvent:
    # Additional fields and methods if needed
    def __init__(self):
        passPrepare subscribers: Declare and annotate your subscribing method, optionally specify a thread mode:from pyeventbus import *

@subscribe(onEvent=MessageEvent)
def func(self, event):
    # Do something
    passRegister your subscriber. For example, if you want to register a class in Python:from pyeventbus import *

class MyClass:
    def __init__(self):
        pass

    def register(self, myclass):
        PyBus.Instance().register(myclass, self.__class__.__name__)

# then during initilization

myclass = MyClass()
myclass.register(myclass)Post events:from pyeventbus import *

class MyClass:
    def __init__(self):
        pass

    def register(self, myclass):
        PyBus.Instance().register(myclass, self.__class__.__name__)

    def postingAnEvent(self):
        PyBus.Instance().post(MessageEvent())

 myclass = MyClass()
 myclass.register(myclass)
 myclass.post()Modes: pyeventbus can run the subscribing methods in 5 different modesPOSTING:Runs the method in the same thread as posted. For example, if an event is posted from main thread, the subscribing method also runs in the main thread. If an event is posted in a seperate thread, the subscribing method runs in the same seperate method

This is the default mode, if no mode has been provided::

@subscribe(threadMode = Mode.POSTING, onEvent=MessageEvent)
def func(self, event):
    # Do something
    passPARALLEL:Runs the method in a seperate python thread::

@subscribe(threadMode = Mode.PARALLEL, onEvent=MessageEvent)
def func(self, event):
    # Do something
    passGREENLET:Runs the method in a greenlet using gevent library::

@subscribe(threadMode = Mode.GREENLET, onEvent=MessageEvent)
def func(self, event):
    # Do something
    passBACKGROUND:Adds the subscribing methods to a queue which is executed by workers::

@subscribe(threadMode = Mode.BACKGROUND, onEvent=MessageEvent)
def func(self, event):
    # Do something
    passCONCURRENT:Runs the method in a seperate python process::

@subscribe(threadMode = Mode.CONCURRENT, onEvent=MessageEvent)
def func(self, event):
    # Do something
    passAdding pyeventbus to your project:pip install pyeventbusExample:git clone https://github.com/n89nanda/pyeventbus.git

cd pyeventbus

virtualenv venv

source venv/bin/activate

pip install pyeventbus

python example.pyBenchmarks and Performance:Refer /pyeventbus/tests/benchmarks.txt for performance benchmarks on CPU, I/O and networks heavy tasks.

Run /pyeventbus/tests/test.sh to generate the same benchmarks.InspirationInspired by Eventbus from greenrobot:https://github.com/greenrobot/EventBus
Package: pyeventbus2
同时支持的同步和异步消息通知的eventbus，灵感来自与google guava eventbus用法：
1.定义接收消息类型：class IntMessage(int):
    pass

class DictMessage(dict):
    pass2.定义需要接收消息的Observer类，需继承subscriber.DefaultSubscriber，
并实现subscribe方法，subscribe方法的参数类型与自定义的消息类型保持一致class CConcreteObserver(DefaultSubscriber):

    def subscribe(self, msg: msg.IntMessage):
        time.sleep(2)
        print(f"{self.__class__.__name__}#{inspect.stack()[0][3]}: msg:{msg}")3.根据消息类型，添加接收者OBSERVER_REGISTRY = [
    {
        msg_type(msg.DictMessage()): [
            subscriber.AConcreteObserver()
        ]
    },
    {
        msg_type(msg.IntMessage()): [
            subscriber.BConcreteObserver(),
            subscriber.CConcreteObserver(),

        ]
    },
]4.在需要的地方引入eventbus，根据自己的需求选择支持同步的方式（eventbus.EventBus）或异步的方式（eventbus.AsyncEventBus）
在消息接收处，调用notify接口发送消息给对应的所有观察者sync_event_bus = eventbus.AsyncEventBus()
sync_event_bus.notify(msg.IntMessage(1211))
Package: pyEventHook
pyEventHookA Python event implementation similar to the C# implementation.ExamplesCreate an event and suscribe handlers.def wake_up(name):
    print(f"Wake up, {name}!")

def eat_breakfast(name):
    print(f"{name}, remember take your breakfast.")

morning_time = Event()

morning_time += wake_up
morning_time += eat_breakfast

morning_time("Ariel")

# Output
# >> Wake up, Ariel!
# >> Ariel, remember take your breakfast.Unsuscribe from eventdef wake_up(name):
    print(f"Wake up, {name}!")

def eat_breakfast(name):
    print(f"{name}, remember take your breakfast.")

morning_time = Event()

morning_time += wake_up
morning_time += eat_breakfast

morning_time("Ariel")

morning_time -= wake_up

morning_time("Ariel")

# Output
# >> Wake up, Ariel!
# >> Ariel, remember take your breakfast.
# >> Ariel, remember take your breakfast.
Package: pyeventlib
pyeventlibpyeventlib library is used to handle event in a simple way.Installpip install pyeventlibExamplesimportasynciofrompyeventlibimport*classCloseEventArgs(EventArgs):def__init__(self):self.accept=False# other option# CloseEventArgs = EventArgs.create(#     "CloseEventArgs",#     {"accept": False})event1=EventHandler()event2=EventHandler()asyncdefmain():awaitevent1(__name__)args=CloseEventArgs()awaitevent2(__name__,args)print(args.accept)# True@event1.registerdefevent_a(sender):print("Event A Sender: "+sender)asyncdefevent_b(sender):print("Event C Sender: "+sender)event1+=event_b@event2.registerdefclose_event(sender,e):e.accept=Trueasyncio.run(main())CopyrightCopyright 2023. DuelitDev all rights reserved.LicenseMIT License
Package: py-event-mocks
py-event-mocksPython implementation ofserverless / event-mocksA small library that includes details mocks of AWS Lambda event sources, same with original event-mocks.
Useful for use when unit testing your Lambda functions.
Supported Event Sources are:API GatewaySNSSQSDynamoDBS3ScheduledWebsocketAlexa SkillAlexa Smart HomeCloudWatchCloudWatch LogCognito PoolIoTAWS BatchThe library simply uses default event source mock templates and merge it with any overwrite you provide.Check out the JSON template filesto learn more about the data structure of each event source.Set uppipinstallpy-event-mocksUsagefrompy_event_mocksimportcreate_eventevent=create_event("aws:s3")# event would be#   {#     "Records": [#       {#         "eventVersion": "2.0",#         "eventSource": "aws:s3",#         "awsRegion": "us-east-1",#     ...#   }Allowed event_type (first parameter) is as follows:"aws:alexa-skill-event""aws:alexa-smart-home-event""aws:api-gateway-event""aws:cloud-watch-event""aws:cloud-watch-log-event""aws:cognito-user-pool-event""aws:dynamo-stream-event""aws:kinesis""aws:s3""aws:scheduled""aws:sns""aws:sqs"You can overwrite default template with "body" parameter.event=create_event(event_type="aws:s3",body={"Records":[{"eventName":"ObjectCreated:Put","s3":{"bucket":{"name":"my-bucket-name"},"object":{"key":"object-key"}}}]})
Package: py_eventsocket
Version:0.1.4Download:http://pypi.python.org/pypi/py_eventsocketSource:https://github.com/agoragames/py-eventsocketKeywords:python, mocking, testing, unittest, unittest2OverviewExamplesInstallationBug trackerLicenseOverviewEventSocket is a wrapper around standard Python sockets that provides a simple callback API for handling reading, accepting, closures and errors. It is built specifically for TCP sockets, though it may be compatible with any socket family that usessendandrecv(i.e. not UDP).ExamplesSee thescriptsdirectory for examples of how to use EventSocket.http_clientA client which runs simultaneous requests to an http server. Mimics behavior ofsiege, though it only supports a few options.proxyA simple proxy which forwards data from localhost to anotherhost:port. Shows examples of setting up a server socket, handling an incoming connection and socket closures.InstallationTo install usingpip,:$ pip install py-eventsocketIf installing from source:with development requirements (e.g. testing frameworks)pip install -r development.txtwithout development requirementspip install -r requirements.txtBug trackerIf you have any suggestions, bug reports or annoyances please report them
to our issue tracker athttps://github.com/agoragames/py-eventsocket/issuesLicenseThis software is licensed under theNew BSD License. See theLICENSE.txtfile in the top distribution directory for the full license text.
Package: pyeventsystem
.. image::https://travis-ci.org/CloudVE/pyeventsystem.svg?branch=master:target:https://travis-ci.org/CloudVE/pyeventsystem:alt: build status.. image::https://codecov.io/gh/CloudVE/pyeventsystem/branch/master/graph/badge.svg:target:https://codecov.io/gh/CloudVE/pyeventsystem:alt: coverage statuspyeventsystempyeventsystem is an event-driven middleware library for Python. In addition to
providing a mechanism for subscribing and listening to events, it also provides
a mechanism for intercepting functions, thus making it suitable for writing
middleware. By intercepting functions, middleware can be injected before, after
or even replacing the original function. It also provides capabilities for
grouping related event handlers into middleware classes, making it easier to
manage installable middleware.Simple Example.. code-block:: pythonfrom pyeventsystem.middleware import SimpleMiddlewareManager
from pyeventsystem.middleware import dispatch
from pyeventsystem.middleware import observe


class MyMiddleWare(object):

    def __init__(self, event_dispatcher):
        self.events = event_dispatcher

    @dispatch("a.series.of.unfortunate.events", priority=2500)
    def perform_villainy(self, name):
        return "Drop ACME Anvil on " + name

    @observe("a.series.of.unfortunate.events", priority=2400)
    def pre_log_villainy(self, event_args, name):
        print("Prepping for villainy: " + name)

    @observe("*.unfortunate.events", priority=2600)
    def post_log_villainy(self, event_args, name):
        print("Result of villainy: {0}".format(event_args['result']))


manager = SimpleMiddlewareManager()
myobj = MyMiddleWare(manager.events)
manager.add(myobj)
myobj.perform_villainy("RoadRunner")In this example, we have intercepted theperform_villainyfunction, and
observed the function both before and after execution.The output is:.. code-block:: consolePrepping for villainy: RoadRunner
Result of villainy: Drop ACME Anvil on RoadRunner
Package: pyevermizer
pyevermizerPython wrapper for Secret of Evermore Randomizer fromhttps://github.com/black-sliver/evermizerThis is used inArchipelago cross-game multiworld randomizer.Import from packageInstall from PyPI viapip install pyevermizerOr download areleaseandpip installitOr clone, build and install a wheel from source usinggit clone https://github.com/black-sliver/pyevermizer --recurse-submodules
python3 -m build --wheel
pip install dist/*.whlImport from sourceClone with submodules usinggit clone https://github.com/black-sliver/pyevermizer --recurse-submodulesSimply import the cloned repo, it will auto-compile or run through cppyy.
Either a C compiler orcppyyis required.APImain(src:Path,dst:Path,placement:Path,apseed:str,apslot:str,seed:int,flags:str,money:int,exp:int,switches:list[str])# create a randomized romget_locations()->List[Location]# returns a list of all locationsget_items()->List[Item]# returns a lost of all vanilla itemsget_extra_items()->List[Item]# returns all extra items that can be placed, but are not vanillaget_traps()->List[Item]# returns all traps that can be placedget_logic()->List[Location]# returns the logic as real and pseudo locationsP_...# some progression IDsclassLocation:name:strtype:int# location type, i.e. gourd, alchemy, bossindex:int# location index for each location type. (type, index) gives a unique IDdifficulty:int# difficulty 0..2 for bad/hidden spotsrequires:List[Tuple[int,int]]# list of (amount, progression) required to reach the spotprovides:List[Tuple[int,int]]# list of (amount, progression) provided by reaching the spotclassItem:name:strprogression:booluseful:booltype:int# vanilla location type or extra location type, i.e. gourd, alchemy, boss, trapindex:int# item index for each location type. (type, index) gives a unique IDprovides:List[Tuple[int,int]]# list of (amount, progression) provided by obtaining the itemSee Archipelago/worlds/soe for a complete example.
Package: py-everything
py_everythingA python module containing all the functions and classes from basic to advanced for Python. From simple calculations  to advanced file encryption.Everythingis included in this one package.It allows you to use all of its functions and classes without having to write huge complex code. It is a very simple and easy to use library.Downloads -PyPI -Status -GitHub -Got Queries? Join our Discord!Have questions? Or find docs boring to read through? Then join our discord to get help and chat with the devs!Installationpy_everything is available onPyPi, and you can install it as follows:$ python -m pip install py-everythingFeaturesYou can make use of the huge number of functions and classes available to you.Has an in-built CLI tool that generates a python package project structure for you. - setupPyGensetupPyGen now comes with support forfind_packages()Now come with a second CLI tool - gitIt for generating GitHub friendly project structuresGood and Consistent Naming Convention. - Camel CaseSimple and easy to use.You don't have to write all of that code yourself, just call the pre-made functions.Now comes with usefull classes.setupPyGenDetailed documentation can be found onReadTheDocsBasic Usage:$ls
package/new/old/
$cdpackage/
$ls-a
...
$setupPyGen-gTrue-tTrue--gitignoreTrue
<--Followtheprompts(packagesentered-new,old)-->
$ls-A
.gitignoreLICENSEREADME.mdsetup.py.git/new/old/tests/
$catsetup.py
fromsetuptoolsimportsetupreadme_file=open("README.md","r").read()setup(name="package-name",version="1.0.0",description="Given Project Description",long_description=readme_file,long_description_content_type="text/markdown",author="Author Name",author_email="name@example.com",packages=[new,old],install_requires=[],license="MIT License",url="https://github.com/play4Tutorials/py_everything/",python_requires='>=3.5')NOTE: Currently setupPyGen doesn't support classifiers. But support will be added soon.find_packages()support has been added.gitItDetailed documentation can be found onReadTheDocsBasic Usage:$ls
project1/project2/
$cdproject1/
$ls-a
...
$gitIt-gh-s-i-c--greet
<--Followtheprompts(packagesentered-new,old)-->
$ls-A
.github/.gitignoreLICENSEREADME.md.git/$cd.github/
$ls-A
SECURITY.mdworkflows/ISSUE_TEMPLATE/
$cdworkflows/
$ls-A
greet.yml
$cd..
$cdISSUE_TEMPLATE/
$ls
bug-report.mdfeature-or-enhancement-request.md
$cd../..
$echo"Note that all of these files also have data in it they are not empty!"Notethatallofthesefilesalsohavedatainittheyarenotempty!Documentation and UsageThe documentation can be found onReadTheDocsThe basic usage for this library is given below:>>>importpy_everything>>>frompy_everythingimportsearch>>>search.search_files('python','C:\Programming\\')C:\Programming\python.txtC:\Programming\python_project.pyC:\Programming\python_py_everything.docx>>>my_list=[2,4,5,3,7,5,6,3,12,9,6]>>>py_everything.maths.avg(my_list)5.636363636363637ContributingFor details, on how to contribute, please readCONTRIBUTING.md
Package: pyevilgenius
pyevilgeniusAsynchronous library to control devices by Evil Genius LabsRequires Python 3.8+ and uses asyncio and aiohttp.importasynciofrompprintimportpprintimportaiohttpfrompyevilgeniusimportEvilGeniusDeviceHOST="192.168.1.113"asyncdefmain():asyncwithaiohttp.ClientSession()assession:awaitrun(session)asyncdefrun(websession):device=pyevilgenius.EvilGeniusDevice(host,websession)data=awaitclient.get_data()pprint(device.details)awaitdevice.set_path_value('power','1')asyncio.run(main())Testing locallypython3example.py<host>TimeoutsPyevilgenius does not specify any timeouts for any requests. You will need to specify them in your own code. We recommend theasync_timeoutpackage:importasync_timeoutwithasync_timeout.timeout(10):devices=awaithub.get_device_list()Contribution guidelinesObject hierarchy and property/method names should match the Evil Genius Device APIs.
Package: py-evm
Python Implementation of the Ethereum protocolPy-EVMPy-EVM is an implementation of the Ethereum protocol in Python. It contains the low level
primitives for the original proof-of-work (POW), (formerly known as Ethereum 1.0) chain
as well as emerging support for the proof-of-stake (POS) (formerly known as Ethereum 2.0) spec.GoalsPy-EVM aims to eventually become the defacto Python implementation of the Ethereum protocol,
enabling a wide array of use cases for both public and private chains.In particular Py-EVM aims to:be a reference implementation of the Ethereum POW and POS implementations in one of the most widely used and understood languages, Python.be easy to understand and modifiablehave clear and simple APIscome with solid, friendly documentationdeliver the low level primitives to build various clients on top (includingfullandlightclients)be highly flexible to support both research as well as alternate use cases like private chains.Quickstartpython-mpipinstallpy-evmGet started in 5 minutesDocumentationCheck out thedocumentation on our official websiteDeveloper SetupIf you would like to hack on py-evm, please check out theSnake Charmers
Tactical Manualfor information on how we do:TestingPull RequestsDocumentationWe usepre-committo maintain consistent code style. Once
installed, it will run automatically with every commit. You can also run it manually
withmake lint. If you need to make a commit that skips thepre-commitchecks, you
can do so withgit commit --no-verify.Development Environment Setupgitclonegit@github.com:ethereum/py-evm.gitcdpy-evm
virtualenv-ppython3venv
.venv/bin/activate
python-mpipinstall-e".[dev]"pre-commitinstallRelease setupTo release a new version:makereleasebump=$$VERSION_PART_TO_BUMP$$To issue the next version in line, specify which part to bump,
likemake release bump=minorormake release bump=devnum. This is typically done from the
main branch, except when releasing a beta (in which case the beta is released from main,
and the previous stable branch is released from said branch).Want to help?Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our
guidelines forcontributingand then check out one of our issues that are labeledGood First Issue.
Package: pyevmdd
EVMDD Library for Python (pyevmdd)The purpose of this small project is to provide a lightweight, pure Python
EVMDD library. It is still in a very early stage of development.CopyrightCopyright (C) 2016 Robert MattmüllerThis 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, see <http://www.gnu.org/licenses/>
Package: pyevmosaddressconverter
Evmos address converterEvmos address converter frompython3+.InstallationpipinstallpyevmosaddressconverterUsage:frompyevmosaddressconverterimporteth_to_evmosfrompyevmosaddressconverterimportevmos_to_etheth_to_evmos('0xe7e3654bc1ea915e7216d8193ef8dd7d5dae987f')# 'evmos1ul3k2j7pa2g4uuskmqvna7xa04w6axrl85alz5'evmos_to_eth('evmos1ul3k2j7pa2g4uuskmqvna7xa04w6axrl85alz5')# '0xe7e3654bc1ea915e7216d8193ef8dd7d5dae987f'
Package: pyevolution
PyEvolutionPyEvolution is a deep reinforcement learning framework for evolution simulation environments. PyEvolution provides a high level API for training agents using standard Deep Reinforcement Learning Algorithms in environments with in-built neural networks for performing policy evaluation. Users can thus focus on the main problem - to observe interesting patterns amongst these artificial species in various simulated environments.Currently we have a single environment consisting of a single species called "Prima Vita" as a proof of concept. The details of this environment can be found below.Prima VitaPrima Vita is a species of artificially simulated beings created as part of Project DC. This repository holds a simulation environment created in pygame which is to be used with Deep Reinforcement Learning algorithms to find out the evolution of Prima Vita.