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 wire
def my_callable():
print('Hello from wires!')
wire.this_callable.calls_to(my_callable)
wire.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.0b1.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for wires-18.1.0b1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7149b0553744bb0c994d5a18ed9c8d0add2527567b9f30711b18a8b84524e81f |
|
MD5 | d0833cf741298f25fc517826167ed6d4 |
|
BLAKE2b-256 | 74780cd7f50abfb11ed49a9ce5f9b2e22027cfedfe46aa22b01aa82d97d42724 |