Read and write bzip2-compressed files.
Project description
Bz2file is a Python library for reading and writing bzip2-compressed files.
It contains a drop-in replacement for the standard library’s bz2.BZ2File class, including features from the latest development version of CPython that are not available in older releases.
Bz2file is compatible with Python 2.6, 2.7, and 3.0 through 3.3.
Features
Supports multi-stream files.
Can read from/write to any file-like object.
Added methods: peek(), read1(), readinto(), fileno(), readable(), writable(), seekable().
Installation
To install bz2file, run:
$ pip install bz2file
Documentation
The BZ2File class in this module provides the same features and interface as the bz2.BZ2File class in the current development version of CPython, documented here.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file bz2file-0.9.tar.gz
.
File metadata
- Download URL: bz2file-0.9.tar.gz
- Upload date:
- Size: 8.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ce05eb8933d564d25eb2cf5772a5e7eab16fdb71f1a5bd5793e56f4ef02f3d3 |
|
MD5 | e3e7021e373228422d32f15bd01d065e |
|
BLAKE2b-256 | 9696f7a877d7a00bd1a7be07b49b4d497b9faf96e0cb111b41148712f89bbe7b |