betty.extension.wikipedia package

Submodules

Module contents

Integrate Betty with Wikipedia.

final class betty.extension.wikipedia.Wikipedia[source]

Bases: ConfigurableExtension[WikipediaConfiguration], Jinja2Provider, PostLoader

Integrates Betty with Wikipedia.

Parameters:
__init__(*args: Any, **kwargs: Any)[source]
Parameters:
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:

pathlib.Path | None

classmethod default_configuration() betty.extension.wikipedia.config.WikipediaConfiguration[source]

Get this extension’s default configuration.

Return type:

betty.extension.wikipedia.config.WikipediaConfiguration

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() betty.locale.localizable.Localizable[source]

Get the human-readable long plugin description.

Return type:

betty.locale.localizable.Localizable

classmethod plugin_id() str[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.

Return type:

str

classmethod plugin_label() betty.locale.localizable.Localizable[source]

Get the human-readable short plugin label.

Return type:

betty.locale.localizable.Localizable

async post_load() None[source]

Act on the ancestry having been loaded.

This method is called immediately after betty.load.Loader.load().

Return type:

None