gz_extract¶
Utility script for unzipping .gz data files.
Functions
|
Unzip .gz files in the source directory and save the extracted files in the target directory. |
Classes
|
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 filestarget_path (
Path
) – Path to the directory where the extracted files will be savedextension (
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