PPMd compression/decompression library
Project description
PPM(Prediction by partial matching) is a compression algorithm which has several variations of implementations. PPMd is the implementation by Dmitry Shkarin. It is used in the RAR and by 7-Zip as one of several possible methods.
ppmd, aka. ppmd-cffi, is a python bindings with PPMd implementation by C language. The C codes are derived from p7zip, portable 7-zip implementation. ppmd-cffi support PPMd ver.H and PPMd ver.I.
Development status
A development status is considered as Alpha state.
Installation
As usual, you can install ppmd-cffi using python standard pip command. CAUTION: Since it is a bindings with C source code, C compiler should be installed on your operating system.
pip install ppmd-cffi
All C source codes are bundled with ppmd-cffi package, and release provides binary wheels for Windows, MacOS, and manylinux.
API Usage
ppmd-cffi provide two classes. Both class supports context manager, ie. with … as .. syntax.
PpmdEncoder, Ppmd8Encoder
Encoder class provide PPMd encoder. It has encode(), flush() and close() methods. PpmdEncoder encode data with PPMd ver.H. Ppmd8Encoder encode data with PPMd ver.I.
PpmdDecoder, Ppmd8Decoder
Decoder class provide PPMd decoder. It has decode() and close() methods.
Sample CLI
ppmd-cffi provide small utility compress/decompress files.
$ ppmd target.txt
$ ppmd -x target.txt.ppmd
License
Copyright (C) 2020 Hiroshi Miura
7-Zip Copyright (C) 1999-2010 Igor Pavlov
LZMA SDK Copyright (C) 1999-2010 Igor Pavlov
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
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
Built Distributions
Hashes for ppmd_cffi-0.3.0-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf25587e9011941bf43f1e01efd6b85e85989f06aeb2c64543f89b0f936967ea |
|
MD5 | 251c988bc5ba1b7d89e148475477a574 |
|
BLAKE2b-256 | 48b1c90c320ca8942d579cf1e9cb9d2ea5daa20263dabf10db5da96f4aa76f3a |
Hashes for ppmd_cffi-0.3.0-cp39-cp39-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1b2f3a46a3be4bd4ffc08a966e263d50feee50107249ba22cd104cd7ac15cbd |
|
MD5 | cb496015f1a8c212cdc122a803eec974 |
|
BLAKE2b-256 | 0e9713a0cddd1c495ec00386cfe6783ef413efd8cf99b129fed392b247cc8d05 |
Hashes for ppmd_cffi-0.3.0-cp39-cp39-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b3fa10cc1544468ceeb5ea8c41e2a65b0e64368d3a21e8a5459751df35e2549d |
|
MD5 | ae04a5b4b63d002dacf92878ffd721cb |
|
BLAKE2b-256 | 54e34808119620acee8eb79e0d503d3ccc392e4b7fc9a8d702dfd48444b04eda |
Hashes for ppmd_cffi-0.3.0-cp39-cp39-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 350467af643d5354a78a3dac4ee72399394352adaabe2bf8defe84a3dffc43d7 |
|
MD5 | 4a92907bae45b85968a6563b1c50acf0 |
|
BLAKE2b-256 | 62da2818422c629af4ef47821c20c112e721927409480921dce63a7df1382fad |
Hashes for ppmd_cffi-0.3.0-cp39-cp39-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d33ae98fc25ae48be9366ad22e7a06fa22e0ca2a566f84a97eb9a8a3b221fd84 |
|
MD5 | 3b22bb046c8e2fbe1e2a0af361735aad |
|
BLAKE2b-256 | 3d16475fe3b46a9df2f1ca42ec81149d8f5d770021e74106d714e57d351a0b92 |
Hashes for ppmd_cffi-0.3.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2582b069490a1e938b1e3d29f182df63a0094cf10bcdbbf5af0b732b2a71665 |
|
MD5 | a1884c7e4eb2acd0da6bac922d227606 |
|
BLAKE2b-256 | 5be66da2f1c89ddb3ba49c2154b27a8d06fb0136d27eb2bd1b0571f9e4ba13dc |
Hashes for ppmd_cffi-0.3.0-cp38-cp38-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9fd316d8c863401a6b9f027b79073ceca69d3cad3a1bbbc01259e96b547c17f5 |
|
MD5 | 146aaac4a4ca5524e31cc48249b00fff |
|
BLAKE2b-256 | 41be9776f4bfe5c07939922cfd6164cd44d89e19ba3cf1f1fc331af6903b1ab3 |
Hashes for ppmd_cffi-0.3.0-cp38-cp38-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c16e39f67026deab1b9e143cd382370cedfe31d0ddbf5f772efa2416b255ee7c |
|
MD5 | b4d0e98f6e4799111ee696748e2e71c9 |
|
BLAKE2b-256 | 7dec517f56c2af4067a4e49e09367ffb0601ed050167d9b81a7f79d07bc35b8d |
Hashes for ppmd_cffi-0.3.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6e820fe448d0ea1c83c803a71d1e97a172662932f325690cd1982b29b77430c6 |
|
MD5 | e6328718c89979e4d6dc58790d39e88b |
|
BLAKE2b-256 | 19322ad3e279196b337cf2a1d590e0644a48f78d468f99f415bc1f4731d140a7 |
Hashes for ppmd_cffi-0.3.0-cp38-cp38-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf11ef640f5cbdcec099412f1e6796ab30f0509bb00459ee557782c4791a7d1a |
|
MD5 | 199aa68d8fb6d954961f52a60df6e065 |
|
BLAKE2b-256 | 2e62af72f4f30e73d1eee8b8f02c7f2a95c09477fd444a5ca0d9e5d8788c0896 |
Hashes for ppmd_cffi-0.3.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec0880b433df0e751ced2c7837b5a8dbac3cbaaa1f8abace21bceb73a6c31a9b |
|
MD5 | 4dc80a4b1d1d655ef8879083daacd477 |
|
BLAKE2b-256 | 2293d43113e0ce719e0e1ffb2a2f2f9f3a2da7d1dc9670c1e41524ffdf52637f |
Hashes for ppmd_cffi-0.3.0-cp37-cp37m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abac4115aa1148a71a60bcb3605257d03c5417523f72c568f2a30b47c67f24f5 |
|
MD5 | ac91a337b90574a0c65b11e1c7a2fbc8 |
|
BLAKE2b-256 | 2c74fd90a8f52ec9420f55002efc4584226962d76e51590877f7f0c095157744 |
Hashes for ppmd_cffi-0.3.0-cp37-cp37m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0ad37b1fb5092baf9829ce88ce92fa19678fbc2694b064bd5f941b1888d7fc2c |
|
MD5 | bb32b2e4dfc2b2609b27b3ea3bd3aec6 |
|
BLAKE2b-256 | 64a5130baa710bd6dc0a208ab632147420e807bb5370ba1ea386d1eb06c973aa |
Hashes for ppmd_cffi-0.3.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9d203579402553b24a8d7e3719171a6ad1409ae76a34a9cedcf7ecc5f6ad57cb |
|
MD5 | 175d600f1cd07f52c0a270e8b7cf3114 |
|
BLAKE2b-256 | 45c845a47fb55ab21904e810b8e1269b946f704db3e716fcc8e3a352944febc5 |
Hashes for ppmd_cffi-0.3.0-cp37-cp37m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | edc7be1c9007091dd6cad5035257d3374c3e3b49f2638bfba1fe14b3fc026087 |
|
MD5 | a4c4b99a19ce1bcaf8f64ae2e47a3962 |
|
BLAKE2b-256 | 77e5d0f9922aa4403a28e893e94402a2114555a6adf810c70fe2fef7c9fbd979 |
Hashes for ppmd_cffi-0.3.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f98e847aa8c10611e2323a9c437557d8669a2133d7c350d85c56d788791e6e2c |
|
MD5 | c203deffc8aedef0f273d70fdcfa5187 |
|
BLAKE2b-256 | 08d5e84a55e27d8fff6c52862f727884c41a816337e242b68501724d45b5ef3b |
Hashes for ppmd_cffi-0.3.0-cp36-cp36m-manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2aa5e6fb2c13b8593f7c4bb484e8cc46d18d5946c22ff6d436230536227d46b6 |
|
MD5 | 35a8589fa0818d11d1dfeb8458a98a10 |
|
BLAKE2b-256 | b7f562b8a9a30f9fc5faf3f411d05caf773a6dcd85a35b9e3ed5fded4bb1975b |
Hashes for ppmd_cffi-0.3.0-cp36-cp36m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d1cd1d5e6dc744350a659f771bfacd9979b64c8ce3de3a8a2f8b335e46ddabd5 |
|
MD5 | be95081f6d1ddb70962e5c9089eda20a |
|
BLAKE2b-256 | 64d0e4ec42a441a69a80ab7b23cb5e2fa055b26f80a059b59eec78c8cc741633 |
Hashes for ppmd_cffi-0.3.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c9c703df89b5ba8fa283cb39e71c2e33dc90a8220a495b84bf10cc8bbe5863d |
|
MD5 | 94e27a324f4514994f4eb04d47bd4a8a |
|
BLAKE2b-256 | 4565b1e90d50fc497e3f01161832b880f29144ce47924cadccf04636e3b130b6 |
Hashes for ppmd_cffi-0.3.0-cp36-cp36m-macosx_10_14_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c03ed84e5cb56038422ffc14bc1847c380edb432e6e5ed8a485dcf71818d95cb |
|
MD5 | 3a2948835adf66e66706ee5c6936268c |
|
BLAKE2b-256 | 1847c256e0995e722aa68109acef067479f65d7cab4481d05963381d4447a57f |
Hashes for ppmd_cffi-0.3.0-cp35-cp35m-manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0e1e8c6c177ccfba58602b282c92faa8d28049f9e105ab4f905a014a015d4d |
|
MD5 | 92a9dda20462c62832147056949cda46 |
|
BLAKE2b-256 | a3c36539b6f6852fcf54342ab5a742740520e0f3a92442a7a7077787d6417b2d |