betty.extension.wikipedia.config module

Provide configuration for the Wikipedia extension.

class betty.extension.wikipedia.config.WikipediaConfiguration[source]

Bases: Configuration

Provides configuration for the betty.extension.wikipedia.Wikipedia extension.

__init__()[source]
dump() bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | type[betty.serde.dump.Void][source]

Dump this instance to a portable format.

Return type:

typing.Union[bool, int, float, str, None, typing.Sequence[typing.Union[bool, int, float, str, None, typing.Sequence[Dump], typing.Mapping[str, Dump]]], typing.Mapping[str, typing.Union[bool, int, float, str, None, typing.Sequence[Dump], typing.Mapping[str, Dump]]], type[betty.serde.dump.Void]]

classmethod load(dump: bool | int | float | str | None | Sequence[bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]] | Mapping[str, bool | int | float | str | None | Sequence[Dump] | Mapping[str, Dump]], configuration: Self | None = None) Self[source]

Load dumped configuration into a new configuration instance.

Parameters:
Return type:

typing.Self

property populate_images: bool

Whether to populate entities with Wikimedia images after loading ancestries.

update(other: Self) None[source]

Update this configuration with the values from other.

Parameters:

other (typing.Self)

Return type:

None