Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

broadcast_service-1.1.1.tar.gz (2.3 kB view details)

Uploaded Source

File details

Details for the file broadcast_service-1.1.1.tar.gz.

File metadata

  • Download URL: broadcast_service-1.1.1.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

Hashes for broadcast_service-1.1.1.tar.gz
Algorithm Hash digest
SHA256 116b96ab5d5f32687409ab6d2bfbb389d48b4cbbad977f129f7b4d311417ff39
MD5 cc879d14f2821d910693417f77864a99
BLAKE2b-256 fff606ed663cbef192fb8543cc0d41d81898269758dc1e652fb1dda0f5c99db0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page