Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

smart_open_with_pbgzip-0.1.5.tar.gz (1.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

smart_open_with_pbgzip-0.1.5-py3-none-any.whl (2.3 kB view details)

Uploaded Python 3

File details

Details for the file smart_open_with_pbgzip-0.1.5.tar.gz.

File metadata

  • Download URL: smart_open_with_pbgzip-0.1.5.tar.gz
  • Upload date:
  • Size: 1.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for smart_open_with_pbgzip-0.1.5.tar.gz
Algorithm Hash digest
SHA256 f32a57c2d7a80493e7b3a3c2b92ebfe15d017dfd94194a37604db3190225570d
MD5 30697acf6a9addb61f92ea62e63a8e54
BLAKE2b-256 0015283200f94cacadb982e626e53c07ad73510e123638237c4837ed0dc496d1

See more details on using hashes here.

File details

Details for the file smart_open_with_pbgzip-0.1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for smart_open_with_pbgzip-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0cc597b8a0bea7c7480db6eea3a8a6d25deaf9c4bf004acafdd1ebd50cf96e0d
MD5 c7273119d6f985a42bc49ff343f3f640
BLAKE2b-256 90a426335f9b71d71f8e706dc1dfa08e8081e641e3b9e8b31376460e30ea75fb

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page