Skip to content
UPEEC

gzip, bz2 and lzma

Read and write single compressed files transparently.

Easy
Comments 0

with gzip.open("data.csv.gz", "rt") as f: ... — the same API as open().

Spotted a mistake or want to add detail? Suggest an improvement — Content Contributors' edits are reviewed by editors before they go live.

Discussion (0)

Sign in or join free to ask questions and discuss this topic.