A featherweight pub/sub architecture genetically engineered to make your project simpler, not more complicated. And to be adorable.
Publisher–Subscriber + Python → Pub/Sub + .py → Pub + py → puppy
import puppy as pup
puppy = pup.Puppy()
pub = puppy.Pub('topic1')
sub = puppy.SubPull('topic1')
pub.send('hello')
pub.send('world')
print(sub.recv_all())
['hello', 'world']
For those unfamiliar with the Pub/Sub pattern, Google and Wikipedia have pretty useful overviews.
pip install puppy-pubsub
- Prefer simplicity to speed
- Do few things elegantly, rather than many things clumsily
- Puppy is a tool, not a solution