xopen: Open Compressed Files Transparently

JSON →
library 2.0.2 ·python
verified May 21, 2026

This Python module provides an `xopen` function that works like Python's built-in `open` function but also transparently deals with compressed files. `xopen` selects the most efficient method for reading or writing a compressed file, often leveraging external tools like `pigz` for parallel processing. It supports gzip (.gz), bzip2 (.bz2), xz (.xz), and optionally Zstandard (.zst) formats. The library is actively maintained, currently at version 2.0.2, and has a consistent release cadence.

total hits 13
actors 6 distinct systems
last hit 4d ago Googlebot
GPTBot
6
Script
2
Search engines
2

top countries 🇺🇸 United States · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France