Skip to main content

消息中心, 避免代码的强耦合性

Project description

消息中心, 避免代码的强耦合性

测试代码:
if __name__ == '__main__':
@trigger('test')
def fun_send(a, b, c):
pass


@receiver('test')
def fun_callback_1(a, b, c):
print('fun_1', a, b, c)


@receiver('test')
def fun_callback_2(a, b, c):
print('fun_2', a, b, c)


fun_send(1, 2, 3)


Project details


Release history Release notifications

This version
History Node

1.0.3

Download files

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

Filename, size & hash SHA256 hash help File type Python version Upload date
zmsgcentre-1.0.3-py3-none-any.whl (2.2 kB) Copy SHA256 hash SHA256 Wheel py3
zmsgcentre-1.0.3.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page