We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fab2139 commit 470dffcCopy full SHA for 470dffc
1 file changed
README.md
@@ -183,6 +183,10 @@ See `docs/async_plugins.md` for full documentation on automatic vs manual async
183
- `register_plugin(PluginType, v=None, init=False)`
184
- `get_extension(ext_name_or_type, v=None)` for single extension
185
- `get_extensions(ext_name_or_type, v=None)` for multi-extension
186
+ - Plugin lifecycle hooks:
187
+ - `on_registration(v)` – called once when plugin is first registered (before initialization)
188
+ - `initialize(v, logger)` – main initialization, returns extension point value
189
+ - `shutdown(v, logger, value)` – cleanup on shutdown
190
- Async lifecycle (for asyncio apps):
191
- `async_plugins_ready(v)` – call `async_ready()` on all plugins
192
- `async_plugins_stopping(v)` – call `async_stopping()` on all plugins
0 commit comments