Makes smart_open write to .gz/.gzip files using pbgzip rather than gzip
Project description
pbgzip is used by some bioinformatics software, like Pairtools. However, as of 9/18/2024, pbgzip cannot read from files compressed with regular gzip, and it also does not offer a Python binding to make it simple to register with smart_open. This patch registers an alternative method of writing to .gz/.gzip files by piping the output to stdin of 'gzip' and piping its output to the output file. This makes it so that smart_open in write mode will output using pbgzip rather than gzip. Other than that, the behavior is identical. To restore the normal gzip-based output, call smart_open_with_pbgzip.setup_smart_open_with_gzip()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for smart_open_with_pbgzip-0.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f51563df91d378ff89067101c99a8b6d05b07d9acc8136403758ac8c3579bfc9 |
|
MD5 | 4a1385365096fe4881d92274d0a98e2b |
|
BLAKE2b-256 | b6dea8b4bc9fb442bfae083fae521e0e888852e7f21ae69807af8975d43be18c |
Hashes for smart_open_with_pbgzip-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21d6c959b16197ab29a0ef162ffbc64f2dc688815659414ed9d72ac445e10251 |
|
MD5 | 26645b61ce3a1ae2def297b0d9b7c342 |
|
BLAKE2b-256 | a29c76a6dfcecce939e22565909ce47758508276c2bf15951f5bb711a25b952c |