Saravanan666/pypi-org huggingface dataset:
Package: eventos-euskadi
ImplementaciÃ³n y publicaciÃ³n de librerÃ­a en PyPiObtenciÃ³n de datos de eventos mediante apiLa librerÃ­a se ha desarrollado en base a los datos de eventos facilitados mediante la api de Open Data Euskadi. Se han creado diversas funciones con el fin de facilitar a los usuarios la interpretaciÃ³n de los datos. Las variables con las que se ha trabajado son las siguientes:Tipo de eventoNombre de eventoMunicipioEstablecimientoHorarioPrecioUrlFuncionesSe han creado diversas funciones con el fin de facilitar a los usuarios la interpretaciÃ³n de los datos.FunciÃ³nDescripciÃ³nInputsdatos_apiUtilizada por el resto de las funciones para descargar los datos deseados de la nubeUrl de la apiinfo_eventosObtiene los datos sobre los eventos de Euskadi en un mes determinadoMes, aÃ±o e idioma (euskera o castellano)datos_aÃ±oMuestra dos grÃ¡ficos de barrasUn aÃ±o y un valor booleano (verdadero o falso)descargarDescarga los datosMes, aÃ±o y un formato (csv o json)Estructura de archivosejemplosdatos_aÃ±o.JPGeventos_euskadieventos_euskadi.py__init__.pyLICENSE.txtREADME.mdsetup.cfgsetup.pyDependenciasPandas- Proporciona herramientas que permiten trabajar datos en diferentes formatos.Matplotlib- CreaciÃ³n de grÃ¡ficos en dos dimensiones.Request- Obtener respuestas que se realizan en el protocolo HTTP de una plataforma web que se haya establecido con anterioridad con una API.Seaborn- Visualizaciones de datos.Usoimporteventos_euskadiasev# Se obtiene informaciÃ³n sobre eventos en un mesev.info_eventos(2021,1,'eus')# Se descargan datos de eventos en un mesev.descargar(2021,5,'es','csv')# Se muestran dos grÃ¡ficos con informaciÃ³n sobre eventos en un aÃ±oev.datos_aÃ±o(2021,True)LicenciaMITAutoresMikel Madariaga & Naroa Barrutia
Package: event-processing
Event ProcessingWelcome to EventProcessing, a lightweight, Python-based event handling system designed for efficient and straightforward event management and processing. This system allows for decoupled components, making it easier to develop and maintain complex applications with event-driven architectures.FeaturesSimple API: Easy to use for subscribing to events, publishing events, and handling them.Decoupled Design: Promotes loose coupling between components for better modularity.Efficient Event Handling: Queue-based event processing ensuring order and reliability.PrerequisitesPython 3.6+Installationpipinstallevent_processingUsageQuick start guide and examples on how to subscribe to events, publish them, and handle them in your application.Creating an Engine# Create an engine for event handlingengine=Engine()Subscribing to an Event# Create a subscriber and subscribe to a topicsubscriber=Subscriber()engine.subscribe(subscriber,"topic_name")Publishing an Event# Publish an event to a topicevent=Event(topic="topic_name",partition="partition_name",value="Hello, World!")engine.inject(event)# Or with the subscriber itselfsubscriber.send(event)Handling an EventImplement the receive method in your Subscriber class.defreceive(self,event:Event):print(f"Received event:{event.value}")ContributingContributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.LicenseDistributed under the MIT License. See LICENSE for more information.ContactProject Link:https://github.com/raulikeda/EventProcessing
Package: event-processor
Process Events In StyleThis library aims to simplify the common pattern of event processing. It simplifies the process of filtering,
dispatching and pre-processing events as well as injecting dependencies in event processors.The only requirement is that your events are regular python dictionaries.Take a look at the following examples to get an overview of the features available! Of course, you can mix and combine
them in any way you like to create more complex scenarios.fromevent_processorimportEventProcessor,Eventfromevent_processor.filtersimportEqevent_processor=EventProcessor()@event_processor.processor(Eq("service.type","service_a"))defprocess_service_a(event:Event):returnevent["service"]["status"]=="up"@event_processor.processor(Eq("service.type","service_b"))defprocess_service_b(event:Event):returnevent["authorized"]service_a_event={"service":{"type":"service_a","status":"down"}}service_b_event={"service":{"type":"service_b","authorized":False}}event_processor.invoke(service_a_event)# Falseevent_processor.invoke(service_b_event)# FalseDocumentationFind the full documentation onRead the Docs.
Package: eventpy
eventpy -- Python library for event dispatcher and callback listeventpy is a Python event library that provides tools that enable your application components to communicate with each other by dispatching events and listening for them. With eventpy you can easily implement signal/slot mechanism, or observer pattern.This library is the Python version rewritten from the C++ libraryeventpp, both are developed by the same developer.Facts and featuresPowerfulSupports synchronous event dispatching and asynchronous event queue.Configurable and extensible with policies.RobustSupports nested event. During the process of handling an event, a listener can safely dispatch event and append/prepend/insert/remove other listeners.Thread safety. Supports multi-threading.Well tested. Backed by unit tests.Flexible and easy to useListeners and events can be of any type and do not need to be inherited from any base class.Requires Python 3. Tested with Python 3.7 and Cython.LicenseApache License, Version 2.0Version 0.0.1eventpy is currently usable and stable.Source codehttps://github.com/wqking/eventpyQuick startInstallpip install eventpyPackageeventpyUsing CallbackList# create a CallbackListcallbackList=CallbackList()callbackList.append(lambdas,b:print("Got callback 1, s is%sb is%d"%(s,b)))defanotherCallback(s,b):print("Got callback 2, s is%sb is%d"%(s,b))callbackList.append(anotherCallback)# Invoke the callback listcallbackList("Hello world",True)Using EventDispatcher# create an EventDispatcherdispatcher=EventDispatcher()dispatcher.appendListener(3,lambdas,b:print("Got event 3, s is%sb is%d"%(s,b)))dispatcher.appendListener(5,lambdas,b:print("Got event 5, s is%sb is%d"%(s,b)))dispatcher.appendListener(5,lambdas,b:print("Got another event 5, s is%sb is%d"%(s,b)))# Dispatch the events, the first argument is always the event type.dispatcher.dispatch(3,"Hello",True)dispatcher.dispatch(5,"World",False)Using EventQueue# create an EventQueuequeue=eventqueue.EventQueue()queue.appendListener(3,lambdas,n:print("Got event 3, s is%sn is%d"%(s,n)))queue.appendListener(5,lambdas,n:print("Got event 5, s is%sn is%d"%(s,n)))queue.appendListener(5,lambdas,n:print("Got another event 5, s is%sn is%d"%(s,n)))# Enqueue the events, the first argument is always the event type.# The listeners are not triggered during enqueue.queue.enqueue(3,"Hello",38)queue.enqueue(5,"World",58)# Process the event queue, dispatch all queued events.queue.process();DocumentationsOverviewTutorials of CallbackListTutorials of EventDispatcherTutorials of EventQueueClass CallbackListClass EventDispatcherClass EventQueuePolicies -- configure eventpyThere are runnable tutorials in the unit tests.Run the unit testsGo to the root folder of eventpy, runpython -m pytest
Package: event-reporter
event-reporterA Python wrapper for backend reporting via a worker/queue system.System flow:Store event quickly on webserver [e.g. within a flask endpoint]:from event_reporter import EventReporter
from redis import StrictRedis

er = EventReporter(conn=StrictRedis())

er.store('ga', 'event', '<uuid4 clientid>', category='event_category', action='action_name', aip='1', uip='1.2.3.4', ds='web')Fetch event within worker and dispatch to final destination:from event_reporter import EventReporter
from redis import StrictRedis

er = EventReporter(conn=StrictRedis())

r = er.fetch()

er.dispatch(r)Env vars usedEVENTREPORTER_QUEUE_NAME(redis key)UA_ID(GA UA ID)EVENTREPORTER_TTL(int: controls whether to set expire time for redis keys)HONEYCOMB_WRITEKEY(optional)Testingexport UA_ID='My_UA_ID'

nosetests -sDispatch Typesga: GAhoney: honeycomb.ioslack: slackExample slack event: Simple messageer.store('slack', 'event', '<uuid4>', webhook='<slack_webhook_uri>', message='text')Example slack event: Blocks messageer.store('slack', 'event', '<uuid4>', webhook='<slack_webhook_uri>', blocks=<list_of_dicts>)Example slack blocks format[
	{
		"type": "section",
		"text": {
			"type": "mrkdwn",
			"text": "Hello
			}
	}
].. and check your GA property, honeycomb dash, or slack channel to see the data.
Package: event-routing-backends
TheREADME.rstfile should start with a brief description of the repository,
which sets it in the context of other repositories under theedxorganization. It should make clear where this fits in to the overall edX
codebase.Various backends for receiving edX LMS events.Overview (please modify)TheREADME.rstfile should then provide an overview of the code in this
repository, including the main components and useful entry points for starting
to understand the code in more detail.Documentation(TODO:Set up documentation)LicenseThe code in this repository is licensed under the AGPL 3.0 unless
otherwise noted.Please seeLICENSE.txtfor details.How To ContributeContributions are very welcome.
Please readHow To Contributefor details.
Even though they were written withedx-platformin mind, the guidelines
should be followed for all Open edX projects.The pull request description template should be automatically applied if you are creating a pull request from GitHub. Otherwise you
can find it atPULL_REQUEST_TEMPLATE.md.The issue report template should be automatically applied if you are creating an issue on GitHub as well. Otherwise you
can find it atISSUE_TEMPLATE.md.Reporting Security IssuesPlease do not report security issues in public. Please emailsecurity@edx.org.Getting HelpIf you’re having trouble, we have discussion forums athttps://discuss.openedx.orgwhere you can connect with others in the community.Our real-time conversations are on Slack. You can request aSlack invitation, then join ourcommunity Slack workspace.For more information about these options, see theGetting Helppage.Change LogUnreleased[0.1.0] - 2020-09-22AddedFirst release on PyPI.
Package: event-ruler
py-event-rulerOriginI love EventBridge and their pattern matching.The AWS SDK has anAPI for testing event patternwith EventBridge sandbox. The problem is that you have to initialize AWS SDK client and make an API call for each test.In my case, I want to do lots of pattern matching test without being afraid of hitting API rate limit from AWS.AWS also releases anopen-source version of this pattern matching library in Javabut in my case, I want to use Python because that's what my teammates are familiar with.Installpipinstallevent-rulerUsage>>>importevent_ruler>>>event_ruler.test_event_pattern('{"foo":true}','{"foo":[true]}')TrueLicenseMIT
Package: event-scheduler
Event SchedulerTable of ContentsOverviewInstallingDocumentationQuick StartExampleContactOverviewThe Event Scheduler uses an internal thread to allow the application to
schedule events to occur either ASAP or at a specified time in the future.
Instead of blocking your application's main thread, you can concurrently run
some lightweight tasks. We took some inspiration for the API design from the
python library'sscheduler. Unlike
the native sched module, the Event Scheduler is always on and ready to accept
events. Event Scheduler is completely thread-safe too!InstallingYou should already have pip installed if you're using python > 3.4. If you
don't, please visit thislinkto
install it.To install event scheduler, type the following command in the terminal:pip install event-schedulerTo import the module, add the following lines in your Python file.from event_scheduler import EventSchedulerTo download directly visitPyPior
theGitHub repository.DocumentationFull documentation can be foundhere.Quick Startevent_scheduler.start()Enable the event scheduler to start taking eventsevent_scheduler.stop(hard_stop=False)Stop the event scheduler and its internal thread. Sethard_stoptoTrueto stop the scheduler right away and discard all pending events. Sethard_stoptoFalseto wait for all events to finish executing at their
scheduled times.event_scheduler.enter(delay, priority, action, arguments=(), kwargs={})Schedule an event with a callableactionto be executed after thedelay.
Events will be executed according to theirdelayandpriority(lower
number = higher priority).argumentsholds positional arguments andkwargshold keyword arguments for the action. Returns an event object which
can be used to cancel the event.event_scheduler.cancel(event)Cancel the event if it has not yet been executed.event_scheduler.cancel_recurring(event_id)Cancel the recurring event and all future occurrences.fromevent_schedulerimportEventSchedulerevent_scheduler=EventScheduler()# Starts the schedulerevent_scheduler.start()# Schedule an event that prints a message after 5 secondsevent_scheduler.enter(5,0,print,('5 seconds has passed since this event was entered!',))# Schedule a recurring event that prints a message every 10 secondsevent_scheduler.enter_recurring(10,0,print,('10 second interval has passed!',))Output:5 seconds has passed since this event was entered!10 second interval has passed!10 second interval has passed!...ExamplePlease referherefor the example.ContactPlease emailphluentmed@gmail.comor open an issue if you need any help using
the module, have any questions, or even have some feature suggestions.Recommended Email format:Subject: EventScheduler - [Issue]Steps to reproduce: (Please include code snippets or stack trace where possible)Device used:Platform:Actual result:Expected result:Comments:
Package: event-schema-profcomff
Библиотека для хранения общих JSON-схемИспользованиеfromevent_schema.authimportUserLogin,UserLoginKeyfromconfluent_kafkaimportProducersome_data={}## insert your data herekafka_config={}producer=Producer(**kafka_config)new=UserLogin(**some_data)new_key=UserLoginKey(user_id=42)producer.produce(topic="topic_name",key=new_key.model_dump_json(),value=new.model_dump_json())producer.flush()
Package: eventsender
eventsenderThis is a simple event sender that publishes JSON-serialisable messages to an AMQP server exchange. It can also be optionally installed as a Django application.Installation and configurationThe following settings should be supplied either as environment variables or via Django settings module:EVENT_QUEUE_URL=os.environ.get('EVENT_QUEUE_URL')EVENT_QUEUE_EXCHANGE=os.environ.get('EVENT_QUEUE_EXCHANGE')EVENT_QUEUE_ROUTING_KEY=os.environ.get('EVENT_QUEUE_ROUTING_KEY','')EVENT_QUEUE_ROUTING_KEYis optional and can be omitted (it will be assumed blank by default).UsageExample:fromeventsenderimportsend_eventsend_event({'type':'user.subscribed','username':'john_doe'})OrEVENT_QUEUE_EXCHANGE=some_exchangeEVENT_QUEUE_URL=amqp://guest:guest@localhost:5672/hostpython-c\"import eventsender; eventsender.send_event({'type': 'event_type', 'somedata': {'key': 'value'}})"Running testsJust runnoseteststo run tests against your current setup.AboutThis software is brought to you by Byte, a webhosting provider based in Amsterdam, The Netherlands. We specialize in
fast and secure Magento hosting and scalable cluster hosting.Check out ourGithub pagefor more open source software orour siteto learn about our products and technologies. Looks interesting? Reach out aboutjoining the team.
Or just drop by for a cup of excellent coffee if you’re in town!
Package: eventsflow
# eventsflow[![Build Status](https://travis-ci.org/eventsflow/eventsflow.svg?branch=master)](https://travis-ci.org/eventsflow/eventsflow)Simple library and console tool for building data processing pipelines,https://eventsflow.github.io/eventsflow/## DevelopmentFor local testing please be sure that [drone-cli](https://github.com/drone/drone-cli) installed
Package: event-simulate
模块名称: event (切勿使用import event_simulate) !简介event-simulate是一个模拟键盘,鼠标事件的Python包, 可以模拟鼠标单击、双击, 键盘按下等各种操作,打包成PyInstaller等exe文件时体积小巧。可用于编写自动化程序 (如游戏外挂等)。所包含模块 Included modules:event.key - 模拟键盘事件包含的函数 Functions:keydown(keycode_or_keyname):模拟键按下。
keycode_or_keyname:按键名称或该按键的键码值keypress(keycode_or_keyname, delay=0.05):模拟按键。
keycode_or_keyname:按键名称或该按键的键码值
delay:键按下与释放之间的的间隔时间,间隔时间越小,按键速度越快。keyup(keycode_or_keyname):模拟键释放。
keycode_or_keyname:按键名称或该按键的键码值event.mouse - 模拟鼠标事件包含的函数 Functions:click():模拟鼠标左键单击dblclick(delay=0.25):模拟鼠标左键双击get_screensize():获取当前屏幕分辨率。getpos():获取当前鼠标位置。
返回值为一个元组,以(x,y)形式表示。move(x, y):模拟移动鼠标。
与goto不同,move()产生一个鼠标事件。right_click():模拟鼠标右键单击。wheel(delta):模拟滚动鼠标滚轮。
    delta: 滚动的距离, 正值为向上滚动, 负值为向下滚动。新增: leftdown(),leftup(),rightdown(),rightup(),middledown(),middleup()模拟鼠标按下和释放。示例代码1:#模拟按键Alt+F4关闭当前窗口fromevent.keyimport*keydown("Alt")keydown("f4")keyup("f4")keyup("alt")示例代码2:#使用Aero Peek预览桌面。(Win7及以上系统)fromeventimportmousex,y=mouse.get_screensize()mouse.move(x,y)#将鼠标移至屏幕右下角mouse.click()#模拟鼠标点击新增功能 New Features:1.1.2: event.key模块新增了按键名, 兼容PyWinHook库。完善了示例:录制键鼠事件(包目录\examples\录制键鼠事件.py)说明: 使用示例”录制键鼠事件.py” 需安装pywinhook库。1.0.3:修复了调用API函数时出现ValueError的bug。1.0.2:增加了示例:鼠标控制器(包目录\examples\mouseController.py)源代码 Source:https://github.com/qfcy/Python/tree/main/event作者 Author:qfcy qq:3076711200 百度贴吧账号:qfcy_作者CSDN主页:https://blog.csdn.net/qfcy_/
Package: events-jimobama
messagingA simple event handling package.Almost all application are event driven, for instead , when a serial port is open you want to notify other objects that want to use it.
The module provide a clear interface like C# event handlers.from events.event import Event;
from events.eventhandler import EventHandler;
def OnClicked(event):
    print(event.Type);
    
handler  = EventHandler();
handler += OnClicked;
handler(Event('SERIAL_OPEN');
Package: eventsocket
Info:Seethe FreeSWITCH Event Socket documentationfor more information. Seegithubfor the latest source.Author:Alexandre Fiori <fiorix@gmail.com>Author:Arnaldo M. Pereira <egghunt@gmail.com>Abouteventsocketis a Twisted protocol for the FreeSWITCH’s Event Socket. This protocol provides support for both Inbound and Outbound methods of the Event Socket in a single-file class.It may be used for a wide variety of purposes. It aims to be simple and extensible, and to export all the functionality of the FreeSWITCH to Twisted-based applications.Moreover, it’s totally event-driven and allows easy implementation of complex applications aiming at controlling the FreeSWITCH through the Event Socket.This code is part of the core of theNuswit Telephony API, a full featured web-based dialer currently operating in Brazil and Colombia.ExamplesExamples are available in theexamples/directory.CreditsThanks to (in no particular order):Nuswit Telephony APIGranting permission for this code to be published and sponsoring
Package: eventsourcing-axonserver
Event Sourcing with Axon ServerThis package supports using the Pythoneventsourcinglibrary
withAxon Server.InstallationUse pip to install the stable distribution from the Python Package Index.$ pip install eventsourcing-axonserverPlease note, it is recommended to install Python packages into a Python virtual environment.Getting startedDefine aggregates and applications in the usual way. Please note, aggregate
sequences  in Axon Server are expected to start from position0, whereas
the default for the library'sAggregateclass is to start from1. So we
need to set theINITIAL_VERSIONattribute on the aggregate class to0.fromtypingimportAny,DictfromuuidimportUUIDfromeventsourcing.applicationimportApplicationfromeventsourcing.domainimportAggregate,eventclassTrainingSchool(Application):defregister(self,name:str)->UUID:dog=Dog(name)self.save(dog)returndog.iddefadd_trick(self,dog_id:UUID,trick:str)->None:dog=self.repository.get(dog_id)dog.add_trick(trick)self.save(dog)defget_dog(self,dog_id)->Dict[str,Any]:dog=self.repository.get(dog_id)return{'name':dog.name,'tricks':tuple(dog.tricks)}classDog(Aggregate):INITIAL_VERSION=0@event('Registered')def__init__(self,name:str)->None:self.name=nameself.tricks=[]@event('TrickAdded')defadd_trick(self,trick:str)->None:self.tricks.append(trick)Configure the application to use Axon Server. Set environment variablePERSISTENCE_MODULEto'eventsourcing_axonserver', and setAXONSERVER_URIto the host and port of your Axon Server.school=TrainingSchool(env={"PERSISTENCE_MODULE":"eventsourcing_axonserver","AXONSERVER_URI":"localhost:8124",})The application's methods may be then called, from tests and
user interfaces.# Register dog.dog_id=school.register('Fido')# Add tricks.school.add_trick(dog_id,'roll over')school.add_trick(dog_id,'play dead')# Get details.dog=school.get_dog(dog_id)assertdog["name"]=='Fido'assertdog["tricks"]==('roll over','play dead')For more information, please refer to the Pythoneventsourcinglibrary
and theAxon Serverproject.DevelopersClone theproject repository,
set up a virtual environment, and install dependencies.Use your IDE (e.g. PyCharm) to open the project repository. Create a
Poetry virtual environment, and then update packages.$ make update-packagesAlternatively, use themake installcommand to create a dedicated
Python virtual environment for this project.$ make installStart Axon Server.$ make start-axon-serverRun tests.$ make testAdd tests in./tests. Add code in./eventsourcing_axonserver.Check the formatting of the code.$ make lintReformat the code.$ make fmtAdd dependencies inpyproject.tomland then update installed packages.$ make update-packagesStop Axon Server.$ make stop-axon-server