betty.extension.demo package

Module contents

Provide demonstration site functionality.

class betty.extension.demo.Demo[source]

Bases: Extension, Loader

Provide demonstration site functionality.

Parameters:
classmethod depends_on() set[type[betty.project.extension.Extension]][source]

The extensions this one depends on, and comes after.

Return type:

set[type[betty.project.extension.Extension]]

async load() None[source]

Load ancestry data.

Return type:

None

classmethod name() str[source]

The machine name.

Return type:

str

class betty.extension.demo.DemoServer[source]

Bases: Server

Serve the Betty demonstration site.

Parameters:

app (betty.app.App)

__init__(app: betty.app.App)[source]
Parameters:

app (betty.app.App)

classmethod label() betty.locale.localizable.Localizable[source]

Get the server’s human-readable label.

Return type:

betty.locale.localizable.Localizable

property public_url: str

The server’s public URL.

async start() None[source]

Start the server.

Return type:

None

async stop() None[source]

Stop the server.

Return type:

None

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:

collections.abc.AsyncIterator[betty.project.Project]