analyzer.utils.querying

Attributes

Classes

Functions

lookup(obj, key)

deepLookup(obj, key)

configureConverter(conv)

gatherByCapture(pattern, items[, key])

Module Contents

analyzer.utils.querying.lookup(obj, key)[source]
analyzer.utils.querying.deepLookup(obj, key)[source]
class analyzer.utils.querying.PatternMode[source]

Bases: str, enum.Enum

str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str

Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.

REGEX = 'REGEX'[source]
GLOB = 'GLOB'[source]
LITERAL = 'LITERAL'[source]
ANY = 'ANY'[source]
analyzer.utils.querying.NO_MATCH[source]
class analyzer.utils.querying.Pattern[source]
pattern: str | int | float[source]
mode: PatternMode[source]
match(data, strict=True)[source]
capture(data)[source]
static Any()[source]
__repr__()[source]
class analyzer.utils.querying.PatternAnd[source]
and_exprs: list[BasePattern][source]
match(data, strict=True)[source]
capture(data)[source]
__repr__()[source]
class analyzer.utils.querying.PatternNot[source]
not_expr: BasePattern[source]
match(data, strict=True)[source]
capture(data)[source]
__repr__()[source]
class analyzer.utils.querying.PatternOr[source]
or_exprs: list[BasePattern][source]
match(data, strict=True)[source]
capture(data)[source]
__repr__()[source]
class analyzer.utils.querying.DeepPattern[source]
key: tuple[str, Ellipsis][source]
pattern: BasePattern[source]
match(data, strict=True)[source]
capture(data)[source]
__repr__()[source]
analyzer.utils.querying.BasePattern[source]
analyzer.utils.querying.configureConverter(conv)[source]
class analyzer.utils.querying.CaptureSet[source]
capture: Any[source]
items: list[analyzer.utils.structure_tools.ItemWithMeta][source]
analyzer.utils.querying.gatherByCapture(pattern, items, key=lambda x: ...)[source]