onyo.lib.filters module

class onyo.lib.filters.Filter(_arg)[source]

Bases: object

This class translates a string expression to a match function suitable for the builtin filter.

Intended for use with string patterns used with onyo’s CLI.

__init__(_arg)
key: str
match(asset)[source]

match self on a dictionary

Return type:

bool

value: str