betty.project.extension.demo package

Module contents

Provide demonstration site functionality.

final class betty.project.extension.demo.Demo[source]

Bases: ShorthandPluginBase, Extension

Provide demonstration site functionality.

classmethod depends_on() set[PluginIdentifier[Extension]][source]

The extensions this one depends on, and comes after.

register_event_handlers(registry: EventHandlerRegistry) None[source]

Register event handlers with the project.

final class betty.project.extension.demo.DemoServer[source]

Bases: Server

Serve the Betty demonstration site.

__init__(app: App)[source]
property public_url: str

The server’s public URL.

async start() None[source]

Start the server.

async stop() None[source]

Stop the server.

betty.project.extension.demo.demo_project(app: App) AsyncIterator[Project][source]

Create a new demonstration project.