tiled.client.container.Container.distinct

Container.distinct(*metadata_keys, structure_families=False, specs=False, counts=False)[source]

Get the unique values and optionally counts of metadata_keys, structure_families, and specs in this Node’s entries

Examples

Query all the distinct values of a key.

>>> tree.distinct("foo", counts=True)

Query for multiple keys at once.

>>> tree.distinct("foo", "bar", counts=True)