tiled.queries.SpecsQuery

class tiled.queries.SpecsQuery(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(SpecsQuery(include=["foo", "bar"], exclude=["baz"]))
__init__(include, exclude=None)[source]

Methods

__init__(include[, exclude])

decode(*, include, exclude)

encode()

Attributes

include

exclude