Skip to content

ENH: reading and writing to compressed files

username-removed-261087 requested to merge tdaff/ase:compressed_io into master

Interaction with compressed files has been fixed and revamped.

Compressed files can be read and written directly to and from gz, bz2 and xz files. File type can also be deduced from compressed filenames or parsing the beginning of a compressed file.

Added tests to check that it works across all Python versions and all modes.

(The previous version only worked for reading gz or bz2 in Python 2, and if filetype was explicitly specified.)

Merge request reports