runtimepy.net.html package#

Subpackages#

Submodules#

runtimepy.net.html.arbiter module#

A module implementing connection-arbiter related utilities.

runtimepy.net.html.arbiter.web_app_paths(config: dict[str, Any]) None[source]#

Register boilerplate path handling for additional application-serving URIs.

Module contents#

A module implementing HTML-related interfaces.

runtimepy.net.html.append_kind(element: Element, *names: str, package: str = 'runtimepy', kind: str = 'js', tag: str = 'script', subdir: str = None, worker: bool = False) Element | None[source]#

Append a new script element.

runtimepy.net.html.common_css(document: Html) None[source]#

Add common CSS to an HTML document.

runtimepy.net.html.create_app_shell(parent: Element, bootstrap_theme: str = 'dark', use_button_column: bool = True, **kwargs) tuple[Element, Element][source]#

Create a bootstrap-based application shell.

runtimepy.net.html.full_markdown_page(document: Html, markdown: str, uri_query: str | None = None) None[source]#

Render a full markdown HTML app.

runtimepy.net.html.handle_worker(writer: IndentedFileWriter) int[source]#

Boilerplate contents for worker thread block.

runtimepy.net.html.kind_url(kind: str, name: str, subdir: str = None, package: str = 'runtimepy') str[source]#

Return a URL to find a package resource.

runtimepy.net.html.markdown_page(parent: Element, markdown: str, **kwargs) tuple[Element, Element][source]#

Compose a landing page.

runtimepy.net.html.write_found_file(writer: IndentedFileWriter, *args, **kwargs) bool[source]#

Write a file’s contents to the file-writer’s stream.