Python 3.3's 'lzma' module for XZ/LZMA compressed files, with seeking support and cffi.
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.6, 2.7 or 3.
This version also lets you seek in files if you specified the --block-size option when
compressing with xz. (Requires xz version 5.1.2alpha or higher.) Seeking in files
written by this library is not supported because it doesn't seperate the data into blocks.
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 (at least 5.1.2alpha) from http://tukaani.org/xz/
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.6, 2.7 or 3.
This version also lets you seek in files if you specified the --block-size option when
compressing with xz. (Requires xz version 5.1.2alpha or higher.) Seeking in files
written by this library is not supported because it doesn't seperate the data into blocks.
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 (at least 5.1.2alpha) from http://tukaani.org/xz/
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
lzmaffi-0.0.4.tar.gz
(38.2 kB
view details)
File details
Details for the file lzmaffi-0.0.4.tar.gz
.
File metadata
- Download URL: lzmaffi-0.0.4.tar.gz
- Upload date:
- Size: 38.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 54d56fa0c413d2b6d08b61217f021c0c179b80afb27fbadde517e0e811a373e7 |
|
MD5 | 98367e7defddf5390788f526d206fc8e |
|
BLAKE2b-256 | ee33ab856453d4ef1d3620cbb5c4349c1d83cc7c698759b147ab6a2cd5e6259a |