Metadata-Version: 2.1
Name: eventbus-py
Version: 0.0.3
Summary: An eventbus that used for FinanGen
Home-page: https://github.com/cyclegen/eventbus-py
Author: CycleGen
Author-email: pypi@cyclegen.cloud
License: UNKNOWN
Project-URL: Bug Tracker, https://github.com/cyclegen/eventbus-py/issues
Description: # eventbus-py
        EventBus的Python实现
        
        ## Example
        
        - 调用规范 
          由于设计时考虑到可能会存在多个实例的情况，故使用ContextVar来包装EventBus实例方便使用者调用。
          ```python
          from eventbus import bus, Subscribe
          class Example:
            pass
          class A:
            def __init__(self):
              bus.get().register(a)
          
            @Subscribe(priority=100, sticky=True)
            def on_example(self, event: Example):
                bus.get().cancel_delivery(event)
                bus.get().unregister(a)
            
          a = A()
          bus.get().post(a)
          ```
        
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Natural Language :: Chinese (Simplified)
Requires-Python: >=3.6
Description-Content-Type: text/markdown
