Skip to main content

Port of Python 3.3's 'lzma' module for XZ/LZMA compressed files to cffi. (last version compatible with Python 2.6)

Project description

This is a port of the 'lzma' module included in Python 3.3 or later
by Nadeem Vawda and Per Oyvind Karlsen, which provides a Python wrapper for XZ Utils
(aka LZMA Utils v2) by Igor Pavlov.

Unlike backports.lzma which is a straight backport, this version uses cffi which means
it runs on PyPy without having to use the (very slow) CPyExt. It also runs perfectly
well on CPython 2.7 or 3, and lets you seek through files quickly if you compressed them with the --block-size parameter (available in xz 5.1alpha and above).

Versions below 0.2.0 also run on CPython 2.6.

To use, either `import lzmaffi as lzma', or add this at the beginning of your script:

import lzmaffi.compat
lzmaffi.compat.register()

Then `import lzma' as usual.

In order to compile this, you will need to install XZ Utils from http://tukaani.org/xz/

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lzmaffi-0.1.2.tar.gz (38.8 kB view details)

Uploaded Source

File details

Details for the file lzmaffi-0.1.2.tar.gz.

File metadata

  • Download URL: lzmaffi-0.1.2.tar.gz
  • Upload date:
  • Size: 38.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for lzmaffi-0.1.2.tar.gz
Algorithm Hash digest
SHA256 8da4a196cc9a2ee2d6fb8f84b3fded686d67310d778022c4e93b6bd623cda82e
MD5 44373a218097fc580a5bb650d866e512
BLAKE2b-256 9a182c192bfc6d609fa381c8cb45774e044c7a0521e173ee4d342e688e2cc976

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page