apache_airflow_providers_imednet package

Airflow provider for iMednet.

This package provides hooks, operators, and sensors for integrating iMednet EDC data workflows into Apache Airflow pipelines.

Subpackages

Submodules

apache_airflow_providers_imednet.export module

Airflow-facing export helpers.

apache_airflow_providers_imednet.export.export_to_csv(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_csv() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_dataset_json(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_dataset_json() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_duckdb(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_duckdb() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_duckdb_by_form(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_duckdb_by_form() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_excel(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_excel() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_hive_parquet(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_hive_parquet() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_json(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_json() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_long_sql(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_long_sql() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_odm(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_odm() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_parquet(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_parquet() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_sql(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_sql() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.export.export_to_sql_by_form(*args, **kwargs)[source]

Wrap imednet.spi.export.export_to_sql_by_form() for Airflow compatibility.

Parameters:
  • args (Any) –

  • kwargs (Any) –

Return type:

None

apache_airflow_providers_imednet.get_provider_info module

Provider metadata entry point for Apache Airflow discovery.

apache_airflow_providers_imednet.get_provider_info.get_provider_info()[source]

Return Apache Airflow provider metadata for apache-airflow-providers-imednet.

Return type:

dict[str, Any]

apache_airflow_providers_imednet.sensors module

Airflow sensors for iMednet operations.

class apache_airflow_providers_imednet.sensors.ImednetJobSensor[source]

Bases: BaseSensorOperator

Poll iMednet for job completion synchronously or via the Airflow triggerer.

__init__(*, study_key, batch_id, imednet_conn_id='imednet_default', poke_interval=60, deferrable=None, **kwargs)[source]

Initialize the job sensor.

Parameters:
  • study_key (str) – The study key identifier.

  • batch_id (str) – The batch or job identifier to monitor.

  • imednet_conn_id (str) – Airflow connection ID to use for credentials.

  • poke_interval (float) – Seconds between polling attempts.

  • deferrable (bool | None) – Run asynchronously in the Airflow triggerer instead of occupying a worker slot.

  • kwargs (Any) – Additional Airflow BaseSensorOperator arguments.

Return type:

None

execute(context)[source]

Execute sensor synchronously or defer polling to ImednetJobTrigger.

Parameters:

context (Context) –

Return type:

Any

execute_complete(context, event=None)[source]

Resume sensor execution once ImednetJobTrigger emits a terminal event.

Parameters:
  • context (Context) –

  • event (Mapping[str, Any] | None) –

Return type:

Any

poke(context)[source]

Check the status of the Job and verify terminal resultUrl output.

Parameters:

context (Context) –

Return type:

bool | PokeReturnValue

resume_execution(next_method, next_kwargs, context)[source]

Resume deferred sensor execution while restricting soft_fail to timeouts.

Parameters:
  • next_method (str) –

  • next_kwargs (dict[str, Any] | None) –

  • context (Context) –

Return type:

Any

apache_airflow_providers_imednet.triggers module

Deferrable Airflow triggers for asynchronous iMednet operations.

class apache_airflow_providers_imednet.triggers.ImednetJobTrigger[source]

Bases: BaseTrigger

Asynchronously poll an iMednet batch job in the Airflow triggerer.

__init__(study_key, batch_id, imednet_conn_id='imednet_default', poke_interval=60.0, timeout=None)[source]

Initialize the asynchronous iMednet job trigger.

Parameters:
  • study_key (str) – Study key identifier.

  • batch_id (str) – Batch or job identifier to poll.

  • imednet_conn_id (str) – Airflow connection ID used to resolve credentials at runtime.

  • poke_interval (float) – Delay in seconds between polling attempts.

  • timeout (float | None) – Optional maximum polling duration in seconds.

Return type:

None

async run()[source]

Poll the iMednet job asynchronously via AsyncImednetSDK and AsyncJobPoller.

Return type:

AsyncIterator[TriggerEvent]

serialize()[source]

Serialize trigger class path and non-secret parameters for Airflow’s DB.

Return type:

tuple[str, dict[str, Any]]