httk.optimade.engine.processing

Endpoint dispatch: routes a validated OPTIMADE request to its reply generator.

Attributes

Functions

process(→ httk.optimade.model.request.EndpointResponse)

Process an OPTIMADE query.

process_init(→ None)

Precompute the number of available entries per entry endpoint.

Module Contents

httk.optimade.engine.processing.logger[source]
httk.optimade.engine.processing.process(request: httk.optimade.model.request.RawRequest, query_function: httk.optimade.model.results.QueryFunction, version: str, config: httk.optimade.model.config.OptimadeConfig, schema: httk.optimade.schema.served.ServedSchema, *, debug: bool = False) httk.optimade.model.request.EndpointResponse[source]

Process an OPTIMADE query.

request carries the incoming request; only baseurl and representation must be set, missing information is derived from representation. query_function is the callback used to execute entry queries against the backend. schema describes the served entry types and properties.

httk.optimade.engine.processing.process_init(config: httk.optimade.model.config.OptimadeConfig, query_function: httk.optimade.model.results.QueryFunction, schema: httk.optimade.schema.served.ServedSchema, *, debug: bool = False) None[source]

Precompute the number of available entries per entry endpoint.