apache_airflow_providers_imednet.hooks package

Airflow hook for retrieving an ImednetSDK instance.

class apache_airflow_providers_imednet.hooks.ImednetHook[source]

Bases: BaseHook

Retrieve an ImednetSDK instance from an Airflow connection.

__init__(imednet_conn_id='imednet_default')[source]
Parameters:

imednet_conn_id (str) –

Return type:

None

describe_connection()[source]

Return redacted primitive metadata about resolved hook configuration.

Return type:

Dict[str, Union[str, int, float, bool, None, List[Union[str, int, float, bool, None, List[PrimitiveContainer], Dict[str, PrimitiveContainer]]], Dict[str, Union[str, int, float, bool, None, List[PrimitiveContainer], Dict[str, PrimitiveContainer]]]]]

get_conn()[source]

Backward compatible alias for get_sdk_client().

Return type:

ImednetSDK

get_sdk_client()[source]

Return an SDK client for use within task execution context.

Return type:

ImednetSDK

list_studies_metadata()[source]

Return primitive, serialization-safe study metadata for task mapping.

Return type:

List[Dict[str, Union[str, int, float, bool, None, List[Union[str, int, float, bool, None, List[PrimitiveContainer], Dict[str, PrimitiveContainer]]], Dict[str, Union[str, int, float, bool, None, List[PrimitiveContainer], Dict[str, PrimitiveContainer]]]]]]

list_study_keys()[source]

Return primitive study keys for mapped Airflow task expansion.

Return type:

List[str]