Skip to main content

Utilities working with blocked gzip streams.

Project description

bgzip: block gzip streams

bgzip provides streams for block gzip files.

Cython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation.

with open("my_bgzipped_file.gz", "rb") as raw:
	with bgzip.BGZipReader(raw) as fh:
		data = fh.read(number_of_bytes)

with open("my_bgzipped_file.gz", "wb") as raw:
	with bgzip.BGZipWriter(raw) as fh:
		fh.write(my_data)

Installation

pip install bgzip

Requirements

bgzip requires openmp. On MacOS it can be installed with:

brew install llvm

Links

Project home page GitHub
Package distribution PyPI

Bugs

Please report bugs, issues, feature requests, etc. on GitHub.

Credits

getm was created by Brian Hannafious at the UCSC Genomics Institute.

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

bgzip-0.5.1.tar.gz (113.0 kB view details)

Uploaded Source

File details

Details for the file bgzip-0.5.1.tar.gz.

File metadata

  • Download URL: bgzip-0.5.1.tar.gz
  • Upload date:
  • Size: 113.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.0

File hashes

Hashes for bgzip-0.5.1.tar.gz
Algorithm Hash digest
SHA256 9f80cf018befe8f8f201fb571cf42f74e8d72f5bfdf897f4b451286d8abc955f
MD5 a1f3a4f36076bec6e4cbf1c53738d041
BLAKE2b-256 913de389ca7a9ff0ec4805388cda2cd5e019360de45a8321f17e2fefb9a7375d

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