bz2file


Namebz2file JSON
Version 0.98 PyPI version JSON
download
home_pagehttps://github.com/nvawda/bz2file
SummaryRead and write bzip2-compressed files.
upload_time2014-01-19 21:37:38
maintainerNone
docs_urlNone
authorNadeem Vawda
requires_pythonNone
licenseApache License, Version 2.0
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            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.


Features
--------

- 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()``.


Installation
------------

To install bz2file, run: ::

   $ pip install bz2file


Documentation
-------------

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>`_.


Version History
---------------

0.98: 19 January 2014

- Added support for the 'x' family of modes.
- Ignore non-bz2 data at the end of a file, rather than raising an exception.
- Tests now pass on PyPy.

0.95: 08 October 2012

- Added the ``open()`` function.
- Improved performance when reading in small chunks.
- Removed the ``fileobj`` argument to ``BZ2File()``. To wrap an existing file
  object, pass it as the first argument (``filename``).

0.9: 04 February 2012

- Initial release.
            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/nvawda/bz2file",
    "name": "bz2file",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Nadeem Vawda",
    "author_email": "nadeem.vawda@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz",
    "platform": "UNKNOWN",
    "description": "Bz2file is a Python library for reading and writing bzip2-compressed files.\n\nIt contains a drop-in replacement for the file interface in the standard\nlibrary's ``bz2`` module, including features from the latest development\nversion of CPython that are not available in older releases.\n\nBz2file is compatible with CPython 2.6, 2.7, and 3.0 through 3.4, as well as\nPyPy 2.0.\n\n\nFeatures\n--------\n\n- Supports multi-stream files.\n\n- Can read from or write to any file-like object.\n\n- Can open files in either text or binary mode.\n\n- Added methods: ``peek()``, ``read1()``, ``readinto()``, ``fileno()``,\n  ``readable()``, ``writable()``, ``seekable()``.\n\n\nInstallation\n------------\n\nTo install bz2file, run: ::\n\n   $ pip install bz2file\n\n\nDocumentation\n-------------\n\nThe ``open()`` function and ``BZ2File`` class in this module provide the same\nfeatures and interface as the ones in the standard library's ``bz2`` module in\nthe current development version of CPython, `documented here\n<http://docs.python.org/dev/library/bz2.html>`_.\n\n\nVersion History\n---------------\n\n0.98: 19 January 2014\n\n- Added support for the 'x' family of modes.\n- Ignore non-bz2 data at the end of a file, rather than raising an exception.\n- Tests now pass on PyPy.\n\n0.95: 08 October 2012\n\n- Added the ``open()`` function.\n- Improved performance when reading in small chunks.\n- Removed the ``fileobj`` argument to ``BZ2File()``. To wrap an existing file\n  object, pass it as the first argument (``filename``).\n\n0.9: 04 February 2012\n\n- Initial release.",
    "bugtrack_url": null,
    "license": "Apache License, Version 2.0",
    "summary": "Read and write bzip2-compressed files.",
    "version": "0.98",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "27d6f711ae0db6cfd1eb37f95621dfb5",
                "sha256": "64c1f811e31556ba9931953c8ec7b397488726c63e09a4c67004f43bdd28da88"
            },
            "downloads": -1,
            "filename": "bz2file-0.98.tar.gz",
            "has_sig": true,
            "md5_digest": "27d6f711ae0db6cfd1eb37f95621dfb5",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 11333,
            "upload_time": "2014-01-19T21:37:38",
            "upload_time_iso_8601": "2014-01-19T21:37:38.793407Z",
            "url": "https://files.pythonhosted.org/packages/61/39/122222b5e85cd41c391b68a99ee296584b2a2d1d233e7ee32b4532384f2d/bz2file-0.98.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2014-01-19 21:37:38",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "nvawda",
    "github_project": "bz2file",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "bz2file"
}
        
Elapsed time: 0.04086s