Skip to main content

module utils

Helper functions to handle OpenMetadata Entities’ properties

function format_name

format_name(name: str) → str
Given a name, replace all special characters by _ Args: name: name to format Returns: formatted string

function get_entity_type

get_entity_type(entity: Union[Type[~T], str]) → str
Given an Entity T, return its type. E.g., Table returns table, Dashboard returns dashboard… Also allow to be the identity if we just receive a string

function model_str

model_str(arg: Any) → str
Default model stringifying method. Some elements such as FQN, EntityName, UUID have the actual value under the pydantic base root