BCJ(Branch-Call-Jump) filter for python
- C 65.2%
- Python 29.4%
- CMake 5.4%
| .github | ||
| .woodpecker | ||
| issue_template | ||
| src | ||
| tests | ||
| .flake8 | ||
| .git_archival.txt | ||
| .gitattributes | ||
| .gitignore | ||
| Changelog.rst | ||
| CMakeLists.txt | ||
| LICENSE | ||
| MANIFEST.in | ||
| pyproject.toml | ||
| README.rst | ||
| setup.py | ||
BCJ(Branch-Call-Jump) filter for python
In data compression, BCJ, short for Branch-Call-Jump, refers to a technique that improves the compression of machine code of executable binaries by replacing relative branch addresses with absolute ones. This allows a LZMA compressor to identify duplicate targets and archive higher compression rate.
BCJ is used in 7-zip compression utility as default filter for executable binaries.
pybcj is a python bindings with BCJ implementation by C language. The C codes are derived from p7zip, portable 7-zip implementation. pybcj support Intel/Amd x86/x86_64, Arm/Arm64, ArmThumb, Sparc, PPC, and IA64.
Development status
A development status is considered as Beta state.
Installation
As usual, you can install pybcj using python standard pip command.
pip install pybcj
Alternatively, one can also use conda:
conda install -c conda-forge pybcj
WARNING
- When use it on MSYS2/Mingw64 environment, please set environment variable SETUPTOOLS_USE_DISTUTILS=stdlib to install.
License
- SPDX-License-Identifier: LGPL-2.1-or-later
- SPDX-URL: https://spdx.org/licenses/LGPL-2.1-or-later.html
- Copyright (C) 2020-2025 Hiroshi Miura
- Copyright (C) 1999-2010 Igor Pavlov