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.
- 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:
- betty.load.getLogger() logging.Logger [source]¶
Get the ancestry loading logger.
- Return type:
- async betty.load.load(app: betty.app.App) None [source]¶
Load an ancestry.
- Parameters:
app (
betty.app.App
)- Return type: