Module Contents

class airflow.contrib.operators.file_to_wasb.FileToWasbOperator(file_path, container_name, blob_name, wasb_conn_id='wasb_default', load_options=None, *args, **kwargs)[source]

Bases: airflow.models.BaseOperator

Uploads a file to Azure Blob Storage.

  • file_path (str) – Path to the file to load. (templated)

  • container_name (str) – Name of the container. (templated)

  • blob_name (str) – Name of the blob. (templated)

  • wasb_conn_id (str) – Reference to the wasb connection.

  • load_options (dict) – Optional keyword arguments that WasbHook.load_file() takes.

template_fields = ['file_path', 'container_name', 'blob_name'][source]
execute(self, context)[source]

Upload a file to Azure Blob Storage.

Was this entry helpful?