runtimepy.net.server.app package#
Subpackages#
- runtimepy.net.server.app.bootstrap package
- runtimepy.net.server.app.env package
Submodules#
runtimepy.net.server.app.base module#
A module implementing a web application base.
- class runtimepy.net.server.app.base.WebApplication(app: AppInfo)[source]#
Bases:
objectA simple web-application interface.
- populate(document: Html, app: Callable[[TabbedContent], None]) None[source]#
Populate the body element with the application.
- ui_classes = ['WindowHashManager', 'WorkerInterface', 'PlotModalManager', 'Plot', 'ChannelTable', 'TabInterface', 'TabFilter', 'App']#
- worker_classes = ['JsonConnection', 'DataConnection', 'PointBuffer', 'PointManager', 'PlotDrawer', 'PlotManager']#
runtimepy.net.server.app.create module#
A module implementing a simple application harnessing interface.
- runtimepy.net.server.app.create.config_param(app: AppInfo, key: str, default: T, strict: bool = False) T[source]#
Attempt to get a configuration parameter.
- runtimepy.net.server.app.create.create_app(app: AppInfo, compose: Callable[[AppInfo, TabbedContent], None]) Callable[[Html, RequestHeader, ResponseHeader, bytes | None], Awaitable[Html]][source]#
Create a web-application handler.
runtimepy.net.server.app.elements module#
A module implementing some basic HTML element interfaces.
runtimepy.net.server.app.files module#
A module implementing interfaces for working with file contents.
- runtimepy.net.server.app.files.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.server.app.files.handle_worker(writer: IndentedFileWriter) bool[source]#
Boilerplate contents for worker thread block.
- runtimepy.net.server.app.files.kind_url(kind: str, name: str, subdir: str = None, package: str = 'runtimepy') str[source]#
Return a URL to find a package resource.
- runtimepy.net.server.app.files.set_text_to_file(element: Element, *args, **kwargs) bool[source]#
Set an element’s text to the contents of a file.
runtimepy.net.server.app.placeholder module#
A module implementing some placeholder widget utilities.
- class runtimepy.net.server.app.placeholder.DummyTab(name: str, app: AppInfo, tabs: TabbedContent, source: str = None, subdir: str = 'tab', icon: str = None)[source]#
Bases:
TabA dummy tab for testing.
- runtimepy.net.server.app.placeholder.dummy_tabs(count: int, app: AppInfo, tabs: TabbedContent) None[source]#
Add some placeholder tabs.
runtimepy.net.server.app.pyodide module#
A module implementing interfaces to the pyodide project.
runtimepy.net.server.app.sound module#
A module implementing a tab for experimenting with sound generation.
runtimepy.net.server.app.tab module#
A module implementing an application tab interface.
- class runtimepy.net.server.app.tab.Tab(name: str, app: AppInfo, tabs: TabbedContent, source: str = None, subdir: str = 'tab', icon: str = None)[source]#
Bases:
objectA simple application-tab interface class.
Module contents#
A module implementing application methods for this package’s server interface.