gzip_compress

gzip_compress(source: str | Path, *, target: str | Path | None = None, cleanup: bool = False) Path[source]

Compress a file, then delete the original.