httk.optimade.backend.handlers¶
Re-exports of the generic OPTIMADE filter handlers.
The handler tables and generic handlers are implemented in
httk.data.optimade_query and exposed here under the
httk.optimade.backend.handlers namespace.
The handlers raise
FilterTranslationError (which carries a
neutral failure category instead of HTTP semantics);
translate_filter() wraps it into
TranslatorError with the appropriate
HTTP status. simple_property_handlers() takes a
plain property-name -> fulltype mapping as its third argument. A 'HAS'
handler is called as
handler(property, ops, values, search_variable, has_type) and returns a
plain SearchExpression; the caller applies NOT as
~, and the backend determines whether the resulting expression also needs
post-filter evaluation.