tiled.queries.Specs

class tiled.queries.Specs(include, exclude=None)[source]

Query if specs list matches all elements in include list and does not match any element in exclude list

Parameters
includeList[str]
excludeList[str]

Examples

Search for specs [“foo”, “bar”] and NOT “baz”

>>> c.search(Specs(include=["foo", "bar"], exclude=["baz"]))
__init__(include, exclude=None)[source]

Methods

__init__(include[, exclude])

decode(*, include, exclude)

encode()

Attributes

include

exclude