An unorthodox implementation of Observer programming pattern.
Project description
Py-notify is a Python package providing tools for implementing Observer programming pattern. These tools include signals, conditions and variables.
Signals are lists of handlers that are called when signal is emitted. Conditions are basically boolean variables coupled with a signal that is emitted when condition state changes. They can be combined using standard logical operators (not, and, etc.) into compound conditions. Variables, unlike conditions, can hold any Python object, not just booleans, but they cannot be combined.
For more verbose introduction, please refer to the tutorial.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file py-notify-0.3.1.tar.gz
.
File metadata
- Download URL: py-notify-0.3.1.tar.gz
- Upload date:
- Size: 145.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 061b4c67e7fabdf3f13f66e0a2448c7154b158331af5d3b77a551a3296d6c65f |
|
MD5 | 58428761bc196bf9b1f1d930991ee3ca |
|
BLAKE2b-256 | 27918f0760be6ea80778c155d4f2b3c7d92e3cca1047685e9048726c4bb782ec |