A tiny Event System for Python
Project description
A tiny Event System for Python
Example:
from event import Event, TypedEvent
my_event = Event()
my_typed_event = TypedEvent(str, float)
def receiver(arg1, arg2):
print(arg1, arg2)
def typed_receiver(arg1: str, arg2: float):
print(arg1, arg2)
if __name__ == "__main__":
my_event.connect(receiver)
my_event.emit("Hi", 8)
my_typed_event.connect(typed_receiver)
my_typed_event.emit("Bye", 9.0)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
piney_event-0.0.3.tar.gz
(3.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file piney_event-0.0.3.tar.gz.
File metadata
- Download URL: piney_event-0.0.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6785e3c503439e979bda348b635c61e4abd83572ec1b4261134ca3913061143a
|
|
| MD5 |
04083479f543719d66c330f7eed4ac91
|
|
| BLAKE2b-256 |
fb019690db0c659f455d8c5b79ac24ed7bd5b388804f396fa0c59156009a92a7
|
File details
Details for the file piney_event-0.0.3-py3-none-any.whl.
File metadata
- Download URL: piney_event-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a05ff504743c98a2e1b696747226d2ef0f1100780c3fb74b90a389a1debb08f0
|
|
| MD5 |
4d945695f44ea0b61d088cd0ccba1df9
|
|
| BLAKE2b-256 |
c21cd226f686a02bf7bca100cb6c43b0932deda3e34be969af8e442299390a32
|