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 Distributions
Hashes for smart_open_with_pbgzip-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 945e17c8a12b15487f60f5fc1ebf466b32a7ef941b2f1f98094aae1b7ead536e |
|
MD5 | fab07c7f2cd42142d9d60abcdf1c71f4 |
|
BLAKE2b-256 | 9c99c147bd486c623a5936f94eb6cbdc56246cd884402c330c60451ace0872d9 |
Hashes for smart_open_with_pbgzip-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cfa829d412fbbfdbd351b8ca5e31adc978463187c30bdbb952e77ea6605db32d |
|
MD5 | 3098a52d3a83559049a83ddff9fe23b9 |
|
BLAKE2b-256 | c61a34b415a00e50dd340ef121d8133e5ed69903e6b42b28c14fac9f4d83d987 |
Hashes for smart_open_with_pbgzip-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0128321910f26635daa359966e9153a79352de225d9b5d36037197c4c362caef |
|
MD5 | abc90a8197fd61056b39f3e47b947977 |
|
BLAKE2b-256 | 975dba41bf54248466da933312c96b3782e9f1992d0148d2e0a30f613f7cef75 |