mirror of
https://github.com/kennethreitz-archive/hooks.git
synced 2026-06-05 23:40:18 +00:00
13 lines
337 B
ReStructuredText
13 lines
337 B
ReStructuredText
Hooks: Blocking Events and Callbacks (for Python)
|
|
=================================================
|
|
|
|
Sometimes, while working with a deeply nested Application or Framework,
|
|
an event pattern can be extremely useful.
|
|
|
|
::
|
|
|
|
import hooks
|
|
|
|
hooks.register('channel', callback_func())
|
|
hooks.ping('channel', args_to_pass_to_callback)
|