You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

smart-open-with-pbgzip

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-open-with-pbgzip

Makes smart_open write to .gz/.gzip files using pbgzip rather than gzip

0.1.5
pipPyPI
Maintainers
1

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()

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts