gz_extract

Utility script for unzipping .gz data files.

Functions

gz_extract(cfg)

Unzip .gz files in the source directory and save the extracted files in the target directory.

Classes

GzExtractConfig(source_path, target_path, ...)

Configuration for the gz_extract script.

class gz_extract.GzExtractConfig(source_path, target_path, extension)[source]

Configuration for the gz_extract script.

Parameters:
  • source_path (Path) – Path to the directory containing the .gz files

  • target_path (Path) – Path to the directory where the extracted files will be saved

  • extension (str) – File extension of the files

source_path: Path
target_path: Path
extension: str
gz_extract.gz_extract(cfg)[source]

Unzip .gz files in the source directory and save the extracted files in the target directory.

Parameters:

cfg (GzExtractConfig) – Configuration for the gz_extract script

Return type:

None