Skip to main content

Clade is a tool for extracting information about software build process and source code

Project description

GitHub Actions status Supported Versions of Python PyPI package version


Clade is a tool for intercepting build commands (stuff like compilation, linking, mv, rm, and all other commands that are executed during build). Intercepted commands can be parsed (to search for input and output files, and options) and then used for various purposes:

  • generating compilation database;
  • obtaining information about dependencies between source and object files;
  • obtaining information about the source code (source code querying);
  • generating function call graph;
  • running software verification tools;
  • visualization of all collected information;
  • and for much more.

The interception of build commands is independent of the project type and used programming languages. However, all other functionality available in Clade IS dependent. Currently only C projects are supported, but other languages and additional functionality can be supported through the built-in extension mechanism.


An important part of Clade - a build commands intercepting library - is written in C and it needs to be compiled before use. It will be performed automatically at the installation stage, but you will need to install some prerequisites beforehand:

  • Python 3 (>=3.5)
  • pip (Python package manager)
  • cmake (>=3.3)

Linux only:

  • make
  • C and C++ compiler (gcc or clang)
  • python3-dev (Ubuntu) or python3-devel (openSUSE) package
  • gcc-multilib (Ubuntu) or gcc-32bit (openSUSE) package to intercept build commands of projects leveraging multilib capabilities

Windows only:

  • Microsoft Visual C++ Build Tools

Optional dependencies:

  • For obtaining information about the C code you will need CIF installed. CIF is an interface to Aspectator which in turn is a GCC based tool that implements aspect-oriented programming for the C programming language. You may download compiled CIF on CIF releases page.
  • Graphviz for some visualization capabilities.

Clade works on Linux, macOS and partially on Windows.

Hardware requirements

If you want to run Clade on a large project, like the Linux kernel, you will need at least 16GB of RAM and 100GB of free disk space for temporary files. The size of generated data will be approximately 10GB, so the space used for temporary files will be freed at the end. Also several CPU cores are recommended, since in some cases Clade takes twice as long time than a typical build process.


To install the latest stable version just run the following command:

$ python3 -m pip install clade


Following documentation is available:


Clade is inspired by the Bear project created by László Nagy.

Project details

Download files

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

Source Distribution

clade-3.6.tar.gz (80.9 kB view hashes)

Uploaded source

Built Distributions

clade-3.6-pp37-pypy37_pp73-win_amd64.whl (153.0 kB view hashes)

Uploaded pp37

clade-3.6-cp310-cp310-win_amd64.whl (153.0 kB view hashes)

Uploaded cp310

clade-3.6-cp310-cp310-win32.whl (153.0 kB view hashes)

Uploaded cp310

clade-3.6-cp310-cp310-musllinux_1_1_i686.whl (147.1 kB view hashes)

Uploaded cp310

clade-3.6-cp310-cp310-macosx_10_9_x86_64.whl (138.1 kB view hashes)

Uploaded cp310

clade-3.6-cp39-cp39-win_amd64.whl (153.0 kB view hashes)

Uploaded cp39

clade-3.6-cp39-cp39-win32.whl (153.0 kB view hashes)

Uploaded cp39

clade-3.6-cp39-cp39-musllinux_1_1_x86_64.whl (154.8 kB view hashes)

Uploaded cp39

clade-3.6-cp39-cp39-musllinux_1_1_i686.whl (147.1 kB view hashes)

Uploaded cp39

clade-3.6-cp39-cp39-macosx_10_9_x86_64.whl (138.1 kB view hashes)

Uploaded cp39

clade-3.6-cp38-cp38-win_amd64.whl (153.0 kB view hashes)

Uploaded cp38

clade-3.6-cp38-cp38-win32.whl (153.0 kB view hashes)

Uploaded cp38

clade-3.6-cp38-cp38-musllinux_1_1_x86_64.whl (154.8 kB view hashes)

Uploaded cp38

clade-3.6-cp38-cp38-musllinux_1_1_i686.whl (147.1 kB view hashes)

Uploaded cp38

clade-3.6-cp38-cp38-macosx_10_9_x86_64.whl (138.1 kB view hashes)

Uploaded cp38

clade-3.6-cp37-cp37m-win_amd64.whl (153.0 kB view hashes)

Uploaded cp37

clade-3.6-cp37-cp37m-win32.whl (153.0 kB view hashes)

Uploaded cp37

clade-3.6-cp37-cp37m-musllinux_1_1_i686.whl (147.1 kB view hashes)

Uploaded cp37

clade-3.6-cp37-cp37m-macosx_10_9_x86_64.whl (138.1 kB view hashes)

Uploaded cp37

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