BCJ(Branch-Call-Jump) filter for python
  • C 65.2%
  • Python 29.4%
  • CMake 5.4%
Find a file
2025-11-28 07:17:46 +09:00
.github CI: Add Python 3.14 pre-release and refine workflows 2025-06-06 19:11:05 +09:00
.woodpecker Add CI config for Woodpecker and improve GitHub Actions 2025-04-29 13:00:18 +09:00
issue_template Update issue template 2022-08-03 09:04:43 +09:00
src Avoid to use "sparc" keyword 2024-12-31 10:33:59 +09:00
tests Test: ziping test data 2022-08-03 09:04:43 +09:00
.flake8 chore: drop setup.cfg 2023-11-05 07:42:15 +09:00
.git_archival.txt chore: allow build on git export source tree 2023-11-07 15:52:44 +09:00
.gitattributes chore: allow build on git export source tree 2023-11-07 15:52:44 +09:00
.gitignore first import 2021-10-10 12:41:34 +09:00
Changelog.rst Release v1.0.6 2025-04-29 16:08:04 +09:00
CMakeLists.txt chore: update CMakeLists.txt 2023-11-05 07:53:46 +09:00
LICENSE first import 2021-10-10 12:41:34 +09:00
MANIFEST.in Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00
pyproject.toml CI: Add Python 3.14 pre-release and refine workflows 2025-06-06 19:11:05 +09:00
README.rst docs: Remove Azure Pipelines badge and update copyright year 2025-04-29 13:07:38 +09:00
setup.py Move lib/ sources to src/ext 2022-08-03 10:20:00 +09:00

BCJ(Branch-Call-Jump) filter for python

image

image

image

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