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


Download files

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

Files for zmsgcentre, version 1.0.3
Filename, size File type Python version Upload date Hashes
Filename, size zmsgcentre-1.0.3-py3-none-any.whl (2.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size zmsgcentre-1.0.3.tar.gz (2.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page