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.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a5e2ccc8d4060ea8bd195c5d96a57f0a63e1f9470581530bd51b0a141673c8b |
|
MD5 | 461be3c03d73a8c5f628bf36cc22d46d |
|
BLAKE2b-256 | b9590c31b61489a9ee61e09d4b8e626e7a03644dc26158fe58daf52bbb772452 |
Hashes for smart_open_with_pbgzip-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ad8a2d8e45be2d1eadb097c92a2e54ed1d5cac01338bd219019f396ca273c94c |
|
MD5 | 0af669af45bf561ed301a9f28b0ba3b5 |
|
BLAKE2b-256 | 2b7053abbf3a91e7dc8689bf633fc9e9c24c5d40c6376ff7741a746e229f8e70 |