Skip to main content

Events System

  • EventsSystem
    • A singleton based thread-safe event system, which components can use to subscribe and post to other components.
    • install: pip install events-system
    • import: import EventsSystem
    • import EventListener: from events_system.event_listener import EventListener
    • subscribe: EventsSystem.subscribe("event_type", function)
    • post: EventsSystem.post(event_type)
    • example use: Create an abstract class as listener to a concrete component by subclassing EventListener and defining an abstract function along the lines of setup_ConcreteComponent_listener. In its abstract function, this component listener must call super().setup_event_handlers() to which the subscription dictionary {"event_type":function} is passed. Whatever other component needs to be informed about these events, can now implement that component listener and pass their subscription dictionary to the function.

Release files for events-system 0.0.4

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

Source distribution (sdist)

Source distribution for events-system 0.0.4
File Size Uploaded
events-system-0.0.4.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for events-system 0.0.4
File Interpreter ABI Platform
events_system-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.7 kB

Release files / events-system-0.0.4.tar.gz

Download URL events-system-0.0.4.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
fe052ff623c38e23a78f58afbfab88c4489226cbd086f2909a2046645eb81b48
BLAKE2b-256 checksum
How to use checksums
0621507b3eca3ba286c0d86ffb2f64f3758fa36112888a6a6de075caf0a56ee5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release files / events_system-0.0.4-py3-none-any.whl

Download URL events_system-0.0.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
67ca7e697b3b5ae1ceb3d53d0cfbf38809502aaeed5d881a56c1a328ec9316aa
BLAKE2b-256 checksum
How to use checksums
67b217fc567f1b477a7b528e7307de4e793f60db8fdb5970042edcf7413d7047
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.9

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

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