module ometa_api
OpenMetadata is the high level Python API that serves as a wrapper for the metadata-server API. It is based on the generated pydantic models from the JSON schemas and provides a typed approach to working with OpenMetadata entities.
Global Variables
- ROUTES
class MissingEntityTypeException
We are receiving an Entity Type[T] not covered in our suffix generation list
class InvalidEntityException
We receive an entity not supported in an operation
class EmptyPayloadException
Raise when receiving no data, even if no exception during the API call is received
class OpenMetadata
Generic interface to the OpenMetadata API
It is a polymorphism on all our different Entities.
Specific functionalities to be inherited from Mixins
method __init__
method close
method compute_percentile
method create_or_update
method delete
method get_by_id
method get_by_name
method get_create_entity_type
method get_entity_from_create
method get_entity_reference
entity: Entity Class
fqn: Entity instance FQN
Returns:
EntityReference or None
method get_module_path
method get_suffix
method health_check
true if response is not None
method list_all_entities
-
entity: Entity Type, such as Table -
fields: Extra fields to return -
limit: Number of entities in each pagination -
params: Extra parameters, e.g.,{"service": "serviceName"}to filter