betty.extension.wikipedia package¶
Submodules¶
Module contents¶
Integrate Betty with Wikipedia.
- class betty.extension.wikipedia.Wikipedia[source]¶
Bases:
ConfigurableExtension
[WikipediaConfiguration
],UserFacingExtension
,Jinja2Provider
,PostLoader
,GuiBuilder
Integrates Betty with Wikipedia.
- Parameters:
args (
typing.Any
)kwargs (
typing.Any
)
- __init__(*args: Any, **kwargs: Any)[source]¶
- Parameters:
args (
typing.Any
)kwargs (
typing.Any
)
- classmethod assets_directory_path() pathlib.Path | None [source]¶
Return the path on disk where the extension’s assets are located.
This may be anywhere in your Python package.
- Return type:
- classmethod default_configuration() betty.extension.wikipedia.config.WikipediaConfiguration [source]¶
Get this extension’s default configuration.
- classmethod description() betty.locale.Localizable [source]¶
Get the human-readable extension description.
- Return type:
- property filters: dict[str, Callable[[...], Any]]¶
Jinja2 filters provided by this extension.
Keys are filter names, and values are the filters themselves.
- gui_build() betty.extension.wikipedia.gui._WikipediaGuiWidget [source]¶
Build this extension’s Graphical User Interface component.
- Return type:
betty.extension.wikipedia.gui._WikipediaGuiWidget
- classmethod label() betty.locale.Localizable [source]¶
Get the human-readable extension label.
- Return type:
- async post_load() None [source]¶
Act on the ancestry having been loaded.
This method is called immediately after
betty.load.Loader.load()
.- Return type: