httk.optimade.filter

Re-exports of the OPTIMADE filter-language parser.

The parser is implemented in httk.core.optimade_filter, beside the vendored OPTIMADE property definitions in httk.core.optimade_defs, and is also exposed through this package.

Exceptions

ParserError

Common base class for all non-exit exceptions.

ParserSyntaxError

Common base class for all non-exit exceptions.

Functions

parse_optimade_filter(→ FilterAst)

parse_optimade_filter_raw(→ tuple[Any, Ellipsis])

Package Contents

exception httk.optimade.filter.ParserError[source]

Bases: Exception

Common base class for all non-exit exceptions.

exception httk.optimade.filter.ParserSyntaxError(*args: Any)[source]

Bases: ParserError

Common base class for all non-exit exceptions.

info
line
pos
linestr
httk.optimade.filter.parse_optimade_filter(filter_string: str, verbosity: int | Any = 0) FilterAst[source]
httk.optimade.filter.parse_optimade_filter_raw(filter_string: str, verbosity: int | Any = 0) tuple[Any, Ellipsis][source]