airflow.providers.tabular.hooks.tabular

Module Contents

Classes

TabularHook

This hook acts as a base hook for tabular services.

Attributes

DEFAULT_TABULAR_URL

TOKENS_ENDPOINT

airflow.providers.tabular.hooks.tabular.DEFAULT_TABULAR_URL = 'https://api.tabulardata.io/ws/v1'[source]
airflow.providers.tabular.hooks.tabular.TOKENS_ENDPOINT = 'oauth/tokens'[source]
class airflow.providers.tabular.hooks.tabular.TabularHook(tabular_conn_id=default_conn_name)[source]

Bases: airflow.hooks.base.BaseHook

This hook acts as a base hook for tabular services.

It offers the ability to generate temporary, short-lived session tokens to use within Airflow submitted jobs.

Parameters

tabular_conn_id (str) – The Tabular connection id which refers to the information to connect to the Tabular OAuth service.

conn_name_attr = 'tabular_conn_id'[source]
default_conn_name = 'tabular_default'[source]
conn_type = 'tabular'[source]
hook_name = 'Tabular'[source]
classmethod get_ui_field_behaviour()[source]

Return custom UI field behaviour for Tabular connection.

test_connection()[source]

Test the Tabular connection.

get_conn()[source]

Obtain a short-lived access token via a client_id and client_secret.

get_token_macro()[source]

Was this entry helpful?