betty.extension.wikipedia package¶
Submodules¶
Module contents¶
Integrate Betty with Wikipedia.
- final class betty.extension.wikipedia.Wikipedia[source]¶
Bases:
ConfigurableExtension
[WikipediaConfiguration
],Jinja2Provider
Integrates Betty with Wikipedia.
- classmethod assets_directory_path() Path | None [source]¶
Return the path on disk where the extension’s assets are located.
This may be anywhere in your Python package.
- classmethod default_configuration() WikipediaConfiguration [source]¶
Get this extension’s default configuration.
- property filters: dict[str, Callable[[...], Any]]¶
Jinja2 filters provided by this extension.
Keys are filter names, and values are the filters themselves.
- classmethod plugin_description() Localizable [source]¶
Get the human-readable long plugin description.
- classmethod plugin_id() PluginId [source]¶
Get the plugin ID.
IDs are unique per plugin type: - A plugin repository MUST at most have a single plugin for any ID. - Different plugin repositories MAY each have a plugin with the same ID.
- classmethod plugin_label() Localizable [source]¶
Get the human-readable short plugin label.
- register_event_handlers(registry: EventHandlerRegistry) None [source]¶
Register event handlers with the project.
- property retriever: _Retriever¶
The Wikipedia content retriever.