A lightweight third-party broadcast library
Project description
broadcast-service
broadcast-service is a lightweight third-party 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
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
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
File details
Details for the file broadcast_service-1.1.2.tar.gz
.
File metadata
- Download URL: broadcast_service-1.1.2.tar.gz
- Upload date:
- Size: 2.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.7.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
d83f047875e3345d3083003f813116b11566d438b1943503b8853a420ad220eb
|
|
MD5 |
4e7e83631d4907bf4d7e73f1f4a70e51
|
|
BLAKE2b-256 |
2bce5d39ca215d1b7c6d463b07fb4adc0b7cb0a0be6be1924ccd15304a5b8dbc
|