A sample Python project
Project description
broadcast-service
broadcast-service is a lightweight python broadcast library. You can easily construct a broadcast pattern through this library.
Setup
pip install broadcast-service
Usage
There is a easy demo to show how to use broadcast-service.
from broadcast_service import broadcast_service
def handle_msg(params):
print(params)
if __name__ == '__main__':
info = 'This is very important msg'
# listen topic
broadcast_service.listen('Test', handle_msg)
# publish broadcast
broadcast_service.broadcast('Test', info)
TODO
- optimize documents and show more examples.
- optimize the syntax expression of broadcast-service
- provide more test cases
Contribution
If you want to contribute to this project, you can submit pr or issue. I am glad to see more people involved and optimize it.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Close
Hashes for constellat_broadcast_service-1.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87b849d5e74d255054ff83dce760a387f150a96fc97adbb47e610c2f89d4cc32 |
|
MD5 | 4055bef85f6420cb78ef1a8cce407cf1 |
|
BLAKE2b-256 | b9ad349577622fb943052af821eb01f69708f74c661a147bf49c475eff139448 |