https://github.com/databiosphere/bgzip
Fast streams for block gzip files.
https://github.com/databiosphere/bgzip
Last synced: 20 days ago
JSON representation
Fast streams for block gzip files.
- Host: GitHub
- URL: https://github.com/databiosphere/bgzip
- Owner: DataBiosphere
- License: mit
- Created: 2020-03-18T21:00:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-11-11T19:11:30.000Z (4 months ago)
- Last Synced: 2026-01-03T09:20:08.035Z (3 months ago)
- Language: Python
- Homepage:
- Size: 21.1 MB
- Stars: 12
- Watchers: 1
- Forks: 5
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: Changes.md
- License: LICENSE
Awesome Lists containing this project
README
# 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).
 
## Credits
getm was created by [Brian Hannafious](https://github.com/xbrianh) at the
[UCSC Genomics Institute](https://ucscgenomics.soe.ucsc.edu/).