The herald of python message passing between threads and processes
Project description
Heraut
Heraut, the herald of pythonic message passing.
A python 3.6+ package for message passing between threads and processes.
Minimal example:
Sending Information
from src import heraut
# Initialize the sender, once per process per sender
sender = heraut.Sender(name='process A')
# Send the message
sender.send(message='hello world', label='', target='process B')
# Tell the listner no more messages will be coming.
sender.stop_listener(target='process B')
Recieving Information
from src import heraut
listener = heraut.Listener()
flag = True
while flag and listener.listening():
# get the message
flag, message, label, metadata = listener.get_message()
# do something with the message
print(message)
# Shut down the listner.
listener.end()
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
heraut-0.0.1.dev1.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for heraut-0.0.1.dev1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34f7d19d9f1e3e32b16389032c84f81a2a2c9a42972affa682ad3b13e41410bc |
|
MD5 | ec361853bd1fe02f9c49a499789add34 |
|
BLAKE2b-256 | 60b09152364c9a340fd57869ad794b5b986cdd65e1dad1e2f6b49088c66ad4b5 |