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 details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file heraut-0.0.1.dev1.tar.gz.
File metadata
- Download URL: heraut-0.0.1.dev1.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ee68755a83eb3428425d94d6425fecc08be265bd99d5e160c5512f6c04ba9eb6
|
|
| MD5 |
c1d384ba261f779f764f5d250e2dfebc
|
|
| BLAKE2b-256 |
388533d062548980cb68ea50a1604cb93ecd21b14e5a7773cb132d2a533bb0c9
|
File details
Details for the file heraut-0.0.1.dev1-py3-none-any.whl.
File metadata
- Download URL: heraut-0.0.1.dev1-py3-none-any.whl
- Upload date:
- Size: 4.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/3.7.3 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.7.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
34f7d19d9f1e3e32b16389032c84f81a2a2c9a42972affa682ad3b13e41410bc
|
|
| MD5 |
ec361853bd1fe02f9c49a499789add34
|
|
| BLAKE2b-256 |
60b09152364c9a340fd57869ad794b5b986cdd65e1dad1e2f6b49088c66ad4b5
|