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
EventListenerand defining an abstract function along the lines ofsetup_ConcreteComponent_listener. In its abstract function, this component listener must callsuper().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.
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| events-system-0.0.4.tar.gz | 3.0 kB | Without provenance | Details for events-system-0.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| events_system-0.0.4-py3-none-any.whl | Python 3 | none | any | Details for events_system-0.0.4-py3-none-any.whl |
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
|
Security for events-system 0.0.4
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.