httk.serve.web.widgets.optimade_table

The HTML/configuration boundary for the browser-driven OPTIMADE table.

Attributes

Exceptions

OptimadeTableProtocolError

A declared OPTIMADE table shell cannot meet the browser protocol.

Functions

render(, detail_route, detail_column, detail_query)

Render an inert, accessible OPTIMADE table shell and its trusted assets.

Module Contents

httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_URL_CHARS = 2048[source]
httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_IDENTIFIER_CHARS = 128[source]
httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_TEXT_CHARS = 4096[source]
httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_LABEL_CHARS = 256[source]
httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_ORIGINS = 16[source]
httk.serve.web.widgets.optimade_table.MAX_OPTIMADE_COLUMNS = 32[source]
exception httk.serve.web.widgets.optimade_table.OptimadeTableProtocolError[source]

Bases: ValueError

A declared OPTIMADE table shell cannot meet the browser protocol.

httk.serve.web.widgets.optimade_table.render(context: httk.serve.web.widgets.core.WidgetContext, *, base_url: str, entry_type: str = 'structures', columns: object, page_size: int = 50, caption: str = 'OPTIMADE results', filter: str | None = None, filter_query: str | None = None, sort: str | None = None, allowed_origins: tuple[str, Ellipsis] = (), detail_route: str | None = None, detail_column: str | None = None, detail_query: str = 'id') httk.serve.web.widgets.core.WidgetRenderResult[source]

Render an inert, accessible OPTIMADE table shell and its trusted assets.