Skip to content

Releases: Undertone0809/broadcast-service

v1.3.2

20 Jun 13:31
bb30fd3
Compare
Choose a tag to compare

feat

  • add sub-thread exception handle

v2.1.0

15 Jun 13:09
Compare
Choose a tag to compare

feat

  • add split_parameters parameter for config() docs

v2.0.0

14 Jun 11:24
Compare
Choose a tag to compare

feat

Add publisher dispatch config. It can publish topic with a complex mode. docs

  • provide publisher callback
  • provide the return value of subscriber callbacks
  • provide multiple call publish at once
  • provide multiple call time interval

v1.3.1

21 Mar 05:33
Compare
Choose a tag to compare

fix

  • add singleton #11

v1.2.0

11 Jan 17:00
795e68f
Compare
Choose a tag to compare

Upgrade

Please update the latest version.

pip install --upgrade broadcast-service

feat

  1. Add support multiple publications and multiple subscriptions. #7
broadcast_service.publish(["topic1", "topic2"], "message")
  1. Optimize the function of broadcast_service.subscribe() and broadcast_service.publish() #7
  • The following two cases are equivalent.
@broadcast_service.on_listen(['topic1'])
def handle_all_msg():
    # your code

@broadcast_service.on_listen('topic1')
def handle_all_msg():
    # your code
broadcast_service.subscribe('topic1')
broadcast_service.subscribe(['topic1'])

test and other

  1. Add more test cases #7
  2. Optimize docs #8

v1.1.7

09 Jan 18:22
920f646
Compare
Choose a tag to compare

upgrade

You can use the following sentence to upgrade the version.

pip install --upgrade broadcast-service

feat

  1. add decorator, optimize syntactic expression #5
  • You can use the following sentences to subscribe topic
@broadcast_service.on_listen(['topic1'])
def handle_all_msg():
    # your code

@broadcast_service.on_listen(['topic1','topic2'])
def handle_all_msg():
    # your code

@broadcast_service.on_listen()
def handle_all_msg(*args, **kwargs):
    # your code
  • Add some equals function name
# send topic msg
broadcast_service.subscribe('my_topic', handle_msg)
broadcast_service.listen('my_topic', handle_msg)
broadcast_service.on('my_topic', handle_msg)

# listen topic msg
broadcast_service.broadcast('my_topic', info)
broadcast_service.publish('my_topic', info)
broadcast_service.emit('my_topic', info)

test

  • optimize tests and add some demo #5

v1.1.6

22 Nov 16:06
678c0ea
Compare
Choose a tag to compare

upgrade

You can use the following sentence to upgrade the version.

pip install --upgrade broadcast-service

feat

  • change enable_multithread to enable_async #4

test

  • add some demo #4

v1.1.5

20 Nov 05:39
Compare
Choose a tag to compare

attention : v1.1.5 is abandoned.

upgrade

You can use the following sentence to upgrade the version.

pip install --upgrade broadcast-service

feat

  • provide multithread support
  • optimize function callback parameters