Skip to main content

cmake2graph

A tool to visualize CMake target dependencies as a directed graph.

Installation

pip install cmake2graph

To install the package locally for development:

cd cmake2graph
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install flake8 pytest pytest-cov
pip install -e .[test]
pytest --cov=cmake2graph # test

Usage

cmake2graph /path/to/cpp-cmake-project
cmake2graph /path/to/cpp-cmake-project --exclude-external --output graph.png --target my_target --depth 2

Produces

Example

Features

  • Parse CMake files recursively
  • Generate dependency graphs
  • Filter by specific targets
  • Control dependency depth
  • Exclude external libraries (not working yet)
  • Export to various image formats

Metadata

Release files for cmake2graph 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cmake2graph 0.1.1
File Size Uploaded Provenance Actions
cmake2graph-0.1.1.tar.gz 5.9 kB Without provenance Details for cmake2graph-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cmake2graph 0.1.1
File Interpreter ABI Platform Actions
cmake2graph-0.1.1-py3-none-any.whl Python 3 none any Details for cmake2graph-0.1.1-py3-none-any.whl

Total release size: 11.5 kB

Release files / cmake2graph-0.1.1.tar.gz

Download URL cmake2graph-0.1.1.tar.gz
Size 5.9 kB
Tags Source
SHA-256 checksum
How to use checksums
9d3ad1a4c64239dcc992987d50777fcc791d823e2858539a42adfc790e435094
BLAKE2b-256 checksum
How to use checksums
734e0ee25c3810584ee1b6e03348dd56e65420e23db0a02da15ebd425ed291fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / cmake2graph-0.1.1-py3-none-any.whl

Download URL cmake2graph-0.1.1-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e949f500d118a9983eb2698ce4f0ecab7d4bf3da20152848bdf7488e2d66de31
BLAKE2b-256 checksum
How to use checksums
07d9a06523cc07c9262aa5f899939c703c0173bd3ff47ad8b485c3bd5c2931f7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Security for cmake2graph 0.1.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page