Skip to main content

Extremely Easy Event Emitter

Info:

Extremely Easy Event Emitter.

Author:

Paweł Zadrożny @pawelzny <pawel.zny@gmail.com>

CI Status Documentation Status PyPI Repository Status Release Status Project Status Supported python versions Supported interpreters License

Features

  • Asynchronous Event emitter based on asyncio

  • Subscribe any callable handler

  • Filter events by Publisher

  • Easy enable-disable events on runtime

  • Subscribe handlers using decorator

Installation

pip install eeee

Package: https://pypi.org/project/eeee/

Documentation

Read full documentation at http://eeee.readthedocs.io/en/stable/

Quick Example

from eeee import Event, Publisher

my_event = Event('MyEvent')

# Subscribe takes publisher instance or name as optional argument.
# If publisher is defined handler will be triggered only when that
# particular publisher send a message.
# Leave empty to listen to all publishers within this event.
@my_event.subscribe()
async def custom_handler(message, publisher, event):
    print(message, publisher, event)

result = await my_event.publish('New message arrived!', Publisher('global'))

Metadata

Release files for eeee 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for eeee 0.1.1
File Size Uploaded Provenance Actions
eeee-0.1.1.tar.gz 41.2 kB Without provenance Details for eeee-0.1.1.tar.gz

Release files / eeee-0.1.1.tar.gz

Download URL eeee-0.1.1.tar.gz
Size 41.2 kB
Tags Source
SHA-256 checksum
How to use checksums
7990253d505ea060d40a4c7a8b3c606b25194cff85348d8a17c4aac4bceb70b8
BLAKE2b-256 checksum
How to use checksums
7acb3adadaa9f46e0462de40eb4267bbbd146d1945f54cfdc107fc205a72f221
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for eeee 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page