Expand description
Shared filter/sort parsing and application for CLI, TUI, and MCP.
Functions§
- apply_
filters - Applies resolved
FieldConditions (field left may be const / technical / label). - apply_
filters_ json - Applies JSON filter objects (
{field, op, value}) toscreener. - apply_
sort - Sets sort column when
sort_byis present and non-empty. - filter_
condition_ from_ json - Builds a
FieldConditionfrom a JSON{field, op, value}object. - parse_
filter_ conditions_ from_ cli - Parses repeatable
--filtertokens plus optional--filtersJSON. - parse_
filter_ token - Parses a CLI
FIELD:OP:VALUEtoken into aFieldCondition. - parse_
filter_ value - Parses a filter right-hand value:
f64, then JSON, else a string. - parse_
filters_ arg - Parses optional filters JSON (
None/ empty → empty list). - parse_
filters_ json - Parses a filters JSON string into a list of
{field, op, value}objects. - require_
resolved - Resolves a field const / technical / label name for
asset.