tiled.queries.Contains

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

Query where a given key’s value contains the specified value.

Parameters:
keystr

e.g. “motors”

valueJSONSerializable

May be a string, number, list, or dict.

Examples

Search for matches where “ccd” is including the list of detectors.

>>> c.search(Contains("detectors", "ccd"))
__init__(key: str, value: Any) None

Methods

__init__(key, value)

decode(*, key, value)

encode()

Attributes

key

value