ZIP

class airflow_plugins.operators.zip.UnzipOperator(path_to_zip_file=None, path_to_zip_folder=None, path_to_zip_folder_pattern='*.zip', path_to_unzip_contents=None, *args, **kwargs)[source]

An operator which takes in a path to a zip file and unzips the contents to a location you define.

Parameters:
  • path_to_zip_file (string) – Full path to the zip file you want to Unzip
  • path_to_unzip_contents – Full path to

where you want to save the contents of the Zip file you’re Unzipping :type path_to_unzip_contents: string

class airflow_plugins.operators.zip.ZipOperator(path_to_file_to_zip, path_to_save_zip, *args, **kwargs)[source]

An operator which takes in a path to a file and zips the contents to a location you define.

Parameters:
  • path_to_file_to_zip (string) – Full path to the file you want to Zip
  • path_to_save_zip (string) – Full path to where you want to save the Zip file