betty.load module

Provide the Ancestry loading API.

class betty.load.Loader[source]

Bases: object

Load (part of) the project’s ancestry.

Extensions may subclass this to add data to the ancestry, if they choose to do so.

async load() None[source]

Load ancestry data.

Return type:

None

class betty.load.PostLoader[source]

Bases: object

Act on the project’s ancestry having been loaded.

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

betty.load.getLogger() logging.Logger[source]

Get the ancestry loading logger.

Return type:

logging.Logger

async betty.load.load(app: betty.app.App) None[source]

Load an ancestry.

Parameters:

app (betty.app.App)

Return type:

None