betty.enrichers.wiki package

Submodules

Module contents

Integrate Betty with Wikipedia.

final class betty.enrichers.wiki.Wiki

Bases: Enricher, DataManufacturable[WikiData], Manufacturable

The wiki enricher plugin. Enrich your ancestry with information from Wikipedia and Wikimedia Commons

Plugin ID

wiki

Class

Wiki

Configuration

WikiData

Ancestry enrichment

The extension will attempt the following for any entity that has a Wikipedia link:

  • for places, add coordinates if a place has none already

  • for any entity, add additional links to the translations of the given Wikipedia page

  • for any entity that has files, add the primary image of the linked Wikipedia page

__init__(*, project: Project, populate_images: bool | None = None)
async enrich(scheduler: Scheduler, /) None

Enrich ancestry data.

new = <betty.requirement._RequirableDecorator object>
classmethod new_data_cls() type[WikiData]

The object’s defined data class.

final class betty.enrichers.wiki.WikiData

Bases: Data, HasProps

Configuration for the betty.enrichers.wiki.Wiki enricher.

betty.enrichers.wiki:WikiData
__init__(*, populate_images: bool = True)
populate_images

Whether to populate entities with Wikimedia images after loading ancestries.