betty.project.extension.wikipedia package¶
Submodules¶
Module contents¶
Integrate Betty with Wikipedia.
- final class betty.project.extension.wikipedia.Wikipedia[source]¶
Bases:
ShorthandPluginBase
,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: Mapping[str, Callable[[...], Any]]¶
Jinja2 filters provided by this extension.
Keys are filter names, and values are the filters themselves.
- property globals: Mapping[str, Any]¶
Jinja2 globals provided by this extension.
Keys are the globals’ names, and values are the globals’ values.
- register_event_handlers(registry: EventHandlerRegistry) None [source]¶
Register event handlers with the project.
- property retriever: _Retriever¶
The Wikipedia content retriever.