Python Wires
Project description
Python Wires: Call wiring made simple
wires is a library to facilitate “callable wiring” by decoupling callers from callees and avoiding passing around multiple callables in Python code. It can be used as a callable-based event system or, again callable-based, publish-subscribe like solution.
Minimal usage example:
from wires import wire
def my_callable():
print('Hello from wires!')
wire.this.calls_to(my_callable)
wire.this()
Thanks
Hynek Schlawack for the articles Sharing Your Labor of Love: PyPI Quick and Dirty and Testing & Packaging.
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
wires-18.1.0a1.tar.gz
(7.0 kB
view hashes)
Built Distribution
Close
Hashes for wires-18.1.0a1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea266b29a499a64bee2bf6c141f331f6b2e7333ed6fd1ee8c4b744523cfb028f |
|
MD5 | 77f76fe36cdf8ce71b9cc5a493c4bec8 |
|
BLAKE2b-256 | fe1de04617034dfa475220f1e5fa70b83080244593bfb0556eefcfce634d9bb3 |