tiled.queries.Eq

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

Query equality of a given key’s value to the specified value.

See Key in this module for a more intuitive interface for equality.

Parameters:
keystr

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

valueJSONSerializable

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

Examples

Search for color == “red”

>>> c.search(Eq("color", "red"))
__init__(key: str, value: Any) None

Methods

__init__(key, value)

decode(*, key, value)

encode()

Attributes

key

value