> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getcollate.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Client Utils

> Python SDK reference for the client_utils module, with helper functions for creating the Collate OMeta client.

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/client_utils.py#L0")

# module `client_utils`

OMeta client create helpers

> [!NOTE]
>
> This reference documents the original client (`metadata.ingestion.ometa.ometa_api.OpenMetadata`). For new code, use SDK 2.0 (`metadata.sdk`) where it supports the operation. For more information, see [Which Python SDK Should I Use?](https://docs.getcollate.io/ai-2-0/developer-guide/sdk/python.md).

***

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/client_utils.py#L29")

## function `create_ometa_client`

```python theme={null}
create_ometa_client(metadata_config: OpenMetadataConnection) → OpenMetadata
```

Create an OpenMetadata client

**Args:**

* `metadata_config` (OpenMetadataConnection):  OM connection config

**Returns:**

* `OpenMetadata`:  an OM client

***

[![](https://img.shields.io/badge/-source-cccccc?style=flat-square)](https://github.com/open-metadata/OpenMetadata/tree/main/ingestion/src/metadata/ingestion/ometa/client_utils.py#L50")

## function `get_chart_entities_from_id`

```python theme={null}
get_chart_entities_from_id(
    chart_ids: List[str],
    metadata: OpenMetadata,
    service_name: str
) → List[EntityReference]
```

Method to get the chart entity using get\_by\_name api

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.