Version 0.5.0
is out!
Installation
pip install eventhive==0.5.0
API Additions
-
eventhive.register
The eventhive.register(event, function)
can now register any function to any specific event. It has the same effect with eventhive.hook
decorator, but can be used with function objects, not only with function definitions.
-
eventhive.hook
The eventhive.hook(event)
decorator now automatically adds the event
str
or list
to the eventhive.EVENTS
.
-
eventhive.init(required=[])
The eventhive.init
now has the required
keyword parameter. If a Connector is required for the eventhive
application to work,
its name can be appended in this list and eventhive.init
will fail if the Connector fails to get initialized.
Bug Fixes
- Now the
server.<server_name>.endpoint
now works and is not hardcoded to /pubsub
.