A simple event signaling system
Project description
SignalSemaphore
A lightweight Python event signaling system.
Installation
pip install signalsemaphore
Usage
from SignalSemaphore import Semaphore
semaphore = Semaphore()
def handler(data):
print(f"Received: {data}")
semaphore.connect("event", handler)
semaphore.emit("event", "Hello")
semaphore.disconnect("event", handler)
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
signalsemaphore-0.0.3.tar.gz
(2.7 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 signalsemaphore-0.0.3.tar.gz.
File metadata
- Download URL: signalsemaphore-0.0.3.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9fd35b91f95828fba0e7ba46cc44d71a7544849ca7f5c9e6e64f1ac763e66f6a
|
|
| MD5 |
3d6dce972112e0b5eeaea87f557a0766
|
|
| BLAKE2b-256 |
d1b4e0ca5768d92483405a97d4f67e102e15b3c40fe7219f3acad95eb82d018f
|
File details
Details for the file signalsemaphore-0.0.3-py3-none-any.whl.
File metadata
- Download URL: signalsemaphore-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1d08366f6cca6db4c39e9d820eb0764a723a6c0a9b2461f0cb597520a01ab202
|
|
| MD5 |
1c9f6e4217c2fa7e76cc3dc3ce68154f
|
|
| BLAKE2b-256 |
ebd688e21ce7fc29b2a5eb707791b57cb95b81eeeebcd308823ec0e9711c85f2
|