betty.extension.demo package¶
Module contents¶
Provide demonstration site functionality.
- final class betty.extension.demo.Demo[source]¶
-
Provide demonstration site functionality.
- Parameters:
project (
betty.project.Project)args (
typing.Any)kwargs (
typing.Any)
- classmethod depends_on() set[PluginId][source]¶
The extensions this one depends on, and comes after.
- 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:
- classmethod plugin_label() betty.locale.localizable.Localizable[source]¶
Get the human-readable short plugin label.
- Return type:
- final class betty.extension.demo.DemoServer[source]¶
Bases:
ServerServe the Betty demonstration site.
- Parameters:
app (
betty.app.App)
- __init__(app: betty.app.App)[source]¶
- Parameters:
app (
betty.app.App)
- betty.extension.demo.demo_project(app: betty.app.App) collections.abc.AsyncIterator[betty.project.Project][source]¶
Create a new demonstration project.
- Parameters:
app (
betty.app.App)- Return type: