Metadata-Version: 2.1
Name: smart-open-with-pbgzip
Version: 0.1.4
Summary: Makes smart_open write to .gz/.gzip files using pbgzip rather than gzip
License: MIT
Author: Ben Skubi
Author-email: bskubi@gmail.com
Requires-Python: >=3.10,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: smart-open (>=7.0.4,<8.0.0)
Description-Content-Type: text/markdown

[pbgzip](https://github.com/nh13/pbgzip) is used by some bioinformatics software, like [Pairtools](https://pairtools.readthedocs.io/en/latest/). 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()
