AtlanTagCache

class pyatlan.cache.atlan_tag_cache.AtlanTagCache(client: AtlanClient)[source]

Lazily-loaded cache for translating between Atlan-internal ID strings and human-readable names for Atlan tags.

get_id_for_name(name: str) str | None[source]

Translate the provided human-readable Atlan tag name to its Atlan-internal ID string.

Parameters:

name – human-readable name of the Atlan tag

Returns:

Atlan-internal ID string of the Atlan tag

get_name_for_id(idstr: str) str | None[source]

Translate the provided Atlan-internal classification ID string to the human-readable Atlan tag name.

Parameters:

idstr – Atlan-internal ID string of the Atlan tag

Returns:

human-readable name of the Atlan tag

get_source_tags_attr_id(id: str) str | None[source]

Translate the provided Atlan-internal Atlan tag ID string to the Atlan-internal name of the attribute that captures tag attachment details (for source-synced tags).

Parameters:

id – Atlan-internal ID string of the Atlan tag

Returns:

Atlan-internal ID string of the attribute containing source-synced tag attachment details

refresh_cache() None[source]

Refreshes the cache of Atlan tags by requesting the full set of Atlan tags from Atlan.