Lines Matching refs:lzma
1 :mod:`lzma` --- Compression using the LZMA algorithm
4 .. module:: lzma
12 **Source code:** :source:`Lib/lzma.py`
18 interface supporting the ``.xz`` and legacy ``.lzma`` file formats used by the
146 * :const:`FORMAT_ALONE`: The legacy ``.lzma`` container format.
221 ``.lzma`` files. Other possible values are :const:`FORMAT_XZ`,
389 import lzma
390 with lzma.open("file.xz") as f:
395 import lzma
397 with lzma.open("file.xz", "w") as f:
402 import lzma
404 data_out = lzma.compress(data_in)
408 import lzma
409 lzc = lzma.LZMACompressor()
419 import lzma
422 with lzma.open(f, "w") as lzf:
428 import lzma
430 {"id": lzma.FILTER_DELTA, "dist": 5},
431 {"id": lzma.FILTER_LZMA2, "preset": 7 | lzma.PRESET_EXTREME},
433 with lzma.open("file.xz", "w", filters=my_filters) as f: