2024-12-10 19:09:00 +01:00

2.4 KiB

title slug
Credentials /sdk/python/api-reference/credentials

{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

module credentials

Helper methods to handle creds retrieval for the OpenMetadata Python API


{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

function get_credentials

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


{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

function get_api_version

get_api_version(api_version: str)  str

Get version API

Args: api_version (str):

Returns: str


{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

class URL

Handle URL for creds retrieval

Args: value (tuple):

Attributes: value (value):


{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

class DATE

date string in the format YYYY-MM-DD


{% image align="right" style="float:right;" src="https://img.shields.io/badge/-source-cccccc?style=flat-square" /%}

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.