airflow.hooks.package_index

Hook for additional Package Indexes (Python).

Module Contents

Classes

PackageIndexHook

Specify package indexes/Python package sources using Airflow connections.

class airflow.hooks.package_index.PackageIndexHook(pi_conn_id=default_conn_name, **kwargs)[source]

Bases: airflow.hooks.base.BaseHook

Specify package indexes/Python package sources using Airflow connections.

conn_name_attr = 'pi_conn_id'[source]
default_conn_name = 'package_index_default'[source]
conn_type = 'package_index'[source]
hook_name = 'Package Index (Python)'[source]
static get_ui_field_behaviour()[source]

Return custom field behaviour.

get_conn()[source]

Return connection for the hook.

get_connection_url()[source]

Return a connection URL with embedded credentials.

test_connection()[source]

Test connection to package index url.

Was this entry helpful?