C language utils and tools based on the clang and binutils modules.
Installation
Install clanguru using pipx for isolated installation:
pipx install clanguru
Usage
Clanguru provides four main commands for C/C++ code analysis and utility operations:
- Documentation: Generate (minimal) documentation for C/C++ sources functions and classes. It supports multiple output formats including Myst Markdown, standard Markdown, and RestructuredText.
- Testing: Create mock objects for unit testing C functions
- Analysis: Understand object file dependencies and symbol usage. It can generate HTML and Excel reports.
Check the help message for more details:
clanguru --help
Usage: clanguru [OPTIONS] COMMAND [ARGS]...
C language utils and tools based on the libclang module.
╭─ Options ────────────────────────────────────────────────────────────╮
│ --version -v Show version and exit. │
│ --help Show this message and exit. │
╰──────────────────────────────────────────────────────────────────────╯
╭─ Commands ───────────────────────────────────────────────────────────╮
│ docs Generate documentation for C/C++ source code. │
│ mock Generate mocks for C functions and variables. │
│ parse Parse C source code and print the translation unit. │
│ analyze Analyze object files dependencies. │
╰──────────────────────────────────────────────────────────────────────╯
For detailed help on each command, use the --help option with the command name.
clanguru analyze --help
Object File Analysis
Clanguru can analyze object files to understand their dependencies and symbol usage.
For this, you need to build your project and provide the compilation database (compile_commands.json).
Also, ensure that the nm command-line tool is available in your system PATH.
To generate an html dynamic dependency report, run the following command:
clanguru analyze --compilation-database compile_commands.json --output-file dependencies.html --use-parent-deps
If the output file ends with .xlsx, an Excel report will be generated instead of an HTML one.
Contributing
The project uses UV for dependencies management and packaging and the pypeline for streamlining the development workflow.
Use pipx (or your favorite package manager) to install the pypeline in an isolated environment:
pipx install pypeline-runner
To bootstrap the project and run all the steps configured in the pypeline.yaml file, execute the following command:
pypeline run
For those using VS Code there are tasks defined for the most common commands:
- run tests
- run pre-commit checks (linters, formatters, etc.)
- generate documentation
See the .vscode/tasks.json for more details.
Metadata
Release files for clanguru 0.25.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clanguru-0.25.0.tar.gz | 45.6 kB | With provenance | Details for clanguru-0.25.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| clanguru-0.25.0-py3-none-any.whl | Python 3 | none | any | Details for clanguru-0.25.0-py3-none-any.whl |
Total release size: 92.9 kB
Release files / clanguru-0.25.0.tar.gz
| Download URL | clanguru-0.25.0.tar.gz |
|---|---|
| Size | 45.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4de816210e7e703c7bc87d92073132bca6ede8c86b4efe3a0906e805902d306d
|
|
BLAKE2b-256 checksum How to use checksums |
c76c5971c77fcf5fe1dc2e512103e9f38ddff3ceb48323a7eb646212caf0d7c5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logRelease files / clanguru-0.25.0-py3-none-any.whl
| Download URL | clanguru-0.25.0-py3-none-any.whl |
|---|---|
| Size | 47.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bae8818f25de16afc1eb66b3bcf44725dd77ebff001497efa7c08428f47478a
|
|
BLAKE2b-256 checksum How to use checksums |
8aa19c32d8fcb386aba1710828ac0fdba94671fbbcb03519b22da2972a2b6b64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logSecurity for clanguru 0.25.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for clanguru-0.25.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.