httk.optimade.model.results

Classes

ResultRow

One entry result: its attribute values plus per-entry envelope data.

QueryResults

The results of a query against a backend, as consumed by the entry endpoints.

QueryFunction

The callback seam through which the request engine runs queries on a backend.

Module Contents

class httk.optimade.model.results.ResultRow[source]

One entry result: its attribute values plus per-entry envelope data.

values: dict[str, Any][source]
relationships: dict[str, list[dict[str, Any]]][source]
property_metadata: dict[str, Any][source]
class httk.optimade.model.results.QueryResults[source]

Bases: Protocol

The results of a query against a backend, as consumed by the entry endpoints.

Iteration yields one ResultRow per entry; its values map OPTIMADE response-field names to values, and the id and type keys are always present.

more_data_available: bool[source]
count() int[source]
class httk.optimade.model.results.QueryFunction[source]

Bases: Protocol

The callback seam through which the request engine runs queries on a backend.