betty.servers.builtin module#

A web server using Python’s HTTP server.

final class betty.servers.builtin.BuiltinServer#

Bases: Server

A built-in server for a WWW directory.

__init__(www_directory: StrPath, /, *, root_path: str | None = None, user: User) None#
property public_url: str#

The server’s public URL.

async start() None#

Start the server.

async stop() None#

Stop the server.