> ## 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.

# Credentials

> Python SDK reference for the credentials module, with helper methods for retrieving credentials and API versions.

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

# module `credentials`

Helper methods to handle creds retrieval for the Collate Python API

***

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

## function `get_credentials`

```python theme={null}
get_credentials(
    key_id: str = None,
    secret_key: str = None,
    oauth: str = None
) → Tuple[str, str, str]
```

Get credentials

**Args:**
key\_id (str):  secret\_key (str):  oauth (oauth):

**Returns:**
Credentials

***

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

## function `get_api_version`

```python theme={null}
get_api_version(api_version: str) → str
```

Get version API

**Args:**
api\_version (str):

**Returns:**
str

***

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

## class `URL`

Handle URL for creds retrieval

**Args:**
value (tuple):

**Attributes:**
value (value):

***

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

## class `DATE`

date string in the format YYYY-MM-DD

***

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

## class `FLOAT`

api allows passing floats or float as strings. let's make sure that param passed is one of the two, so we don't pass invalid strings all the way to the servers.

***


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