
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Bz2file is a Python library for reading and writing bzip2-compressed files.
It contains a drop-in replacement for the file interface in the standard
library's bz2
module, including features from the latest development
version of CPython that are not available in older releases.
Bz2file is compatible with CPython 2.6, 2.7, and 3.0 through 3.4, as well as PyPy 2.0.
Supports multi-stream files.
Can read from or write to any file-like object.
Can open files in either text or binary mode.
Added methods: peek()
, read1()
, readinto()
, fileno()
,
readable()
, writable()
, seekable()
.
To install bz2file, run: ::
$ pip install bz2file
The open()
function and BZ2File
class in this module provide the same
features and interface as the ones in the standard library's bz2
module in
the current development version of CPython, documented here <http://docs.python.org/dev/library/bz2.html>
_.
0.98: 19 January 2014
0.95: 08 October 2012
open()
function.fileobj
argument to BZ2File()
. To wrap an existing file
object, pass it as the first argument (filename
).0.9: 04 February 2012
FAQs
Read and write bzip2-compressed files.
We found that bz2file demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.