Skip to main content

bcj filter library

Project description

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.


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


  • When use it on MSYS2/Mingw64 environment, please set environment variable SETUPTOOLS_USE_DISTUTILS=stdlib to install.


  • Copyright (C) 2020-2022 Hiroshi Miura

  • Copyright (C) 1999-2010 Igor Pavlov

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pybcj-1.0.1.tar.gz (2.1 MB view hashes)

Uploaded source

Built Distributions

pybcj-1.0.1-pp39-pypy39_pp73-win_amd64.whl (25.1 kB view hashes)

Uploaded pp39

pybcj-1.0.1-pp38-pypy38_pp73-win_amd64.whl (25.1 kB view hashes)

Uploaded pp38

pybcj-1.0.1-pp37-pypy37_pp73-win_amd64.whl (25.1 kB view hashes)

Uploaded pp37

pybcj-1.0.1-cp311-cp311-win_amd64.whl (24.7 kB view hashes)

Uploaded cp311

pybcj-1.0.1-cp311-cp311-win32.whl (23.7 kB view hashes)

Uploaded cp311

pybcj-1.0.1-cp310-cp310-win_amd64.whl (24.7 kB view hashes)

Uploaded cp310

pybcj-1.0.1-cp310-cp310-win32.whl (23.7 kB view hashes)

Uploaded cp310

pybcj-1.0.1-cp39-cp39-win_amd64.whl (24.7 kB view hashes)

Uploaded cp39

pybcj-1.0.1-cp39-cp39-win32.whl (23.7 kB view hashes)

Uploaded cp39

pybcj-1.0.1-cp38-cp38-win_amd64.whl (24.7 kB view hashes)

Uploaded cp38

pybcj-1.0.1-cp38-cp38-win32.whl (23.7 kB view hashes)

Uploaded cp38

pybcj-1.0.1-cp37-cp37m-win_amd64.whl (24.7 kB view hashes)

Uploaded cp37

pybcj-1.0.1-cp37-cp37m-win32.whl (23.7 kB view hashes)

Uploaded cp37

pybcj-1.0.1-cp36-cp36m-win_amd64.whl (24.6 kB view hashes)

Uploaded cp36

pybcj-1.0.1-cp36-cp36m-win32.whl (23.6 kB view hashes)

Uploaded cp36

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page