tiled.queries.In

class tiled.queries.In(key: str, value: List[Any])[source]

Query if a given key’s value is present in the specified sequence of values.

Parameters:
keystr

e.g. “color”, “sample.name”

valueList[JSONSerializable]

e.g. [“red”, “blue”]

Examples

Search for color in [“red”, “blue”]

>>> c.search(In("color", ["red", "blue"]))
__init__(key: str, value: List[Any]) None

Methods

__init__(key, value)

decode(*, key, value)

encode()

Attributes

key

value