actio_python_utils.utils.open_gz¶
- actio_python_utils.utils.open_gz(filename, mode='r', buff=1048576, external=2)[source]¶
Return a file handle to filename using
pigz,gzip, orgzipmodule- Parameters:
filename (
str) – The filename to openmode (
str, default:'r') – The mode with which to openbuff (
int, default:1048576) – Buffer sizeexternal (
int, default:2) – External code
- Return type:
Optional[TextIOWrapper]