# 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](https://github.com/llvm/llvm-project/tree/master/openmp). On MacOS
it can be installed with:
```
brew install llvm
```
## Links
Project home page [GitHub](https://github.com/DataBiosphere/bgzip)
Package distribution [PyPI](https://pypi.org/project/bgzip/)
### Bugs
Please report bugs, issues, feature requests, etc. on [GitHub](https://github.com/DataBiosphere/bgzip).
![](https://travis-ci.org/DataBiosphere/bgzip.svg?branch=master) ![](https://badge.fury.io/py/bgzip.svg)
## Credits
getm was created by [Brian Hannafious](https://github.com/xbrianh) at the
[UCSC Genomics Institute](https://ucscgenomics.soe.ucsc.edu/).
Raw data
{
"_id": null,
"home_page": "https://github.com/DataBiosphere/bgzip.git",
"name": "bgzip",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Brian Hannafious",
"author_email": "bhannafi@ucsc.edu",
"download_url": "https://files.pythonhosted.org/packages/37/19/7612e1cd0083502286b3d1ea3dd1da552ce3f96b4c8e810ef186dfce7d61/bgzip-0.5.0.tar.gz",
"platform": "Posix",
"description": "# bgzip: block gzip streams\n_bgzip_ provides streams for block gzip files.\n\nCython is used under the hood to bypass Python's GIL and provide fast, parallelized inflation/deflation.\n\n```\nwith open(\"my_bgzipped_file.gz\", \"rb\") as raw:\n\twith bgzip.BGZipReader(raw) as fh:\n\t\tdata = fh.read(number_of_bytes)\n\nwith open(\"my_bgzipped_file.gz\", \"wb\") as raw:\n\twith bgzip.BGZipWriter(raw) as fh:\n\t\tfh.write(my_data)\n```\n\n## Installation\n\n```\npip install bgzip\n```\n\n#### Requirements\nbgzip requires [openmp](https://github.com/llvm/llvm-project/tree/master/openmp). On MacOS\nit can be installed with:\n```\nbrew install llvm\n```\n\n## Links\nProject home page [GitHub](https://github.com/DataBiosphere/bgzip) \nPackage distribution [PyPI](https://pypi.org/project/bgzip/)\n\n### Bugs\nPlease report bugs, issues, feature requests, etc. on [GitHub](https://github.com/DataBiosphere/bgzip).\n\n![](https://travis-ci.org/DataBiosphere/bgzip.svg?branch=master) ![](https://badge.fury.io/py/bgzip.svg)\n\n## Credits\ngetm was created by [Brian Hannafious](https://github.com/xbrianh) at the\n[UCSC Genomics Institute](https://ucscgenomics.soe.ucsc.edu/).\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Utilities working with blocked gzip streams.",
"version": "0.5.0",
"project_urls": {
"Homepage": "https://github.com/DataBiosphere/bgzip.git"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "37197612e1cd0083502286b3d1ea3dd1da552ce3f96b4c8e810ef186dfce7d61",
"md5": "c0fcaa3e6a790030676a99f3717d1f8c",
"sha256": "26ea6eed35ac43ea36cff828ca0f94925298ac21283cd0debaf072a92ac4be74"
},
"downloads": -1,
"filename": "bgzip-0.5.0.tar.gz",
"has_sig": false,
"md5_digest": "c0fcaa3e6a790030676a99f3717d1f8c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 100221,
"upload_time": "2024-06-30T20:58:41",
"upload_time_iso_8601": "2024-06-30T20:58:41.249994Z",
"url": "https://files.pythonhosted.org/packages/37/19/7612e1cd0083502286b3d1ea3dd1da552ce3f96b4c8e810ef186dfce7d61/bgzip-0.5.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-06-30 20:58:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "DataBiosphere",
"github_project": "bgzip",
"travis_ci": true,
"coveralls": false,
"github_actions": false,
"requirements": [],
"lcname": "bgzip"
}