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.
Reference
Setup
pip install constellat-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)
Upload
# 打包项目
python setup.py sdist
# 上传包
twine upload dist/*
twine upload dist/constellat_broadcast_service.tar.gz
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.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b35eb50f32cc506795b6c9de628388e4ed068d26952eb0ac1319dc14cdda2efb |
|
MD5 | f4d85997ef007e2bb17397f9f1a11516 |
|
BLAKE2b-256 | 472e19a5f8dfb9ed5b7d8d247cbb70d51291691fa5982d71a3677791373cb6dd |