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.Reader(raw) as fh:
		data = fh.read(number_of_bytes)

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

Installation

pip install bgzip

Requirements

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

brew install openmp

Links

Project home page GitHub
Package distribution PyPI

Bugs

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

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

Uploaded Source

File details

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

File metadata

  • Download URL: bgzip-0.3.5.tar.gz
  • Upload date:
  • Size: 61.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.5

File hashes

Hashes for bgzip-0.3.5.tar.gz
Algorithm Hash digest
SHA256 00cdb175f6c2e379a04898c89858492b5db3df4f9d6a285e7068e882c8128ef8
MD5 63e13896f31ff44ccd4de9d031c59acb
BLAKE2b-256 0d9ed6f1c105cca14a7544e3d0465bc0a6566f65ef24fb9fa3d7a39ca3040215

See more details on using hashes here.

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