Small library for observation mechanism
Project description
ntt-signal
Signal library by threezinedine
Example
def Callback() -> None:
print("Signal is emitted")
signal = Signal()
signal.Connect(Callback)
signal.Emit()
Example with type
def Callback(nValue: int) -> None:
print(f"Signal is emitted with value {nValue}")
signal = Signal(int)
signal.Connect(Callback)
signal.Emit(3)
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
ntt-signal-1.0.1.tar.gz
(3.2 kB
view details)
Built Distribution
File details
Details for the file ntt-signal-1.0.1.tar.gz
.
File metadata
- Download URL: ntt-signal-1.0.1.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87fe7d9173cd506e67751d688de4a248611684d266819a98b7828940f1ec7427 |
|
MD5 | ae091238bcb7d35b247c30e3655ce0c1 |
|
BLAKE2b-256 | b2ac45e5aa5970dfb5c97cfb365b66073c6f6aa07b4705898b10ea52a12ef635 |
File details
Details for the file ntt_signal-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: ntt_signal-1.0.1-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a1726bc7829afc83034d241c3570f5ddce55681ec661716aaab862ec619756eb |
|
MD5 | d1703c9d54c53d3944d20dd4cfb46bca |
|
BLAKE2b-256 | a32777d7053282ff35c293945ebd31b04cafb1c4fa35c6ef09d1c256321e51e9 |