tiled.queries.KeyLookup

class tiled.queries.KeyLookup(key: str)[source]

Match a specific Entry by key. Mostly for internal use.

This is necessary to support item lookup within search results, as in:

>>> tree.search(...)["..."]

The server handles this directly and generically, simply calling __getitem__ on the tree after apply all other queries. Implementations of search(…) do not need to handle it.

Parameters:
keystr
__init__(key: str) None

Methods

__init__(key)

decode(*, key)

encode()

Attributes

key