acidbase.decompress

acidbase.decompress(path: str | Path, *, remove: bool = True) str

Decompress a file.

Parameters:
  • path (str or Path) – Compressed file (.gz, .bz2, .xz, or .zip).

  • remove (bool) – Delete the compressed file after extraction (default True).

Returns:

Path to the decompressed file.

Return type:

str