Python Wires
Project description
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 w
def my_callable():
print('Hello from wires!')
w.this_callable.wire(my_callable)
w.this_callable()
Thanks
Hynek Schlawack for the articles Sharing Your Labor of Love: PyPI Quick and Dirty and Testing & Packaging.
About
Python Wires was created by Tiago Montes.
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.0b2.tar.gz
(11.0 kB
view hashes)
Built Distribution
Close
Hashes for wires-18.1.0b2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 96a14dd1ef2d04d0f91c9d584dd38d92c1e4f8eb06ab0005bf39087aec4ec1ce |
|
MD5 | 7b6d390e1e0136b0f3cf489c8c599c68 |
|
BLAKE2b-256 | 7b4e5da9587fe9b0dc914db09f9fe64d42aecf20f76f209c566b7c863362d1b5 |