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.2.tar.gz (2.1 MB view hashes)

Uploaded source

Built Distributions

pybcj-1.0.2-cp312-cp312-win_amd64.whl (24.7 kB view hashes)

Uploaded cp312

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

Uploaded cp311

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

Uploaded cp310

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

Uploaded cp39

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

Uploaded cp38

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page