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.0.tar.gz (100.2 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: bgzip-0.5.0.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.4

File hashes

Hashes for bgzip-0.5.0.tar.gz
Algorithm Hash digest
SHA256 26ea6eed35ac43ea36cff828ca0f94925298ac21283cd0debaf072a92ac4be74
MD5 c0fcaa3e6a790030676a99f3717d1f8c
BLAKE2b-256 37197612e1cd0083502286b3d1ea3dd1da552ce3f96b4c8e810ef186dfce7d61

See more details on using hashes here.

Provenance

Supported by

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