CLI tool that analyzes GDScript codebases and produces a structured JSON graph of files, metrics, and relationships.
Project description
gdscript-code-graph
CLI tool that statically analyzes GDScript (Godot Engine) projects and outputs a structured JSON graph of files, code metrics, and inter-file relationships.
Installation
Requires Python 3.10+.
pip install gdscript-code-graph
Usage
# Analyze a Godot project (output to stdout)
gdscript-code-graph analyze <project-dir>
# Write output to a file
gdscript-code-graph analyze <project-dir> -o graph.json
# Custom repo name and directory exclusions
gdscript-code-graph analyze <project-dir> -o graph.json --repo-name my-game -e addons -e test
Options
| Flag | Description |
|---|---|
-o, --out |
Output file path (default: stdout) |
--repo-name |
Repository name in output (default: directory name) |
-e, --exclude |
Directory names to exclude (repeatable) |
Output
The output format is documented in simple-code-graph-viewer/docs/schema.md.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gdscript_code_graph-1.0.1.tar.gz.
File metadata
- Download URL: gdscript_code_graph-1.0.1.tar.gz
- Upload date:
- Size: 39.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a0af1bf825f30b2fa5620ae32e205cb3530f54f3d2ea65b930d5760ffe4ac5cd
|
|
| MD5 |
f9997765a47ce083ced5c23c29c81329
|
|
| BLAKE2b-256 |
3462d4e329b333bff05fa13801763853e9bf799d9b9cd8010c7a52b2f7475836
|
File details
Details for the file gdscript_code_graph-1.0.1-py3-none-any.whl.
File metadata
- Download URL: gdscript_code_graph-1.0.1-py3-none-any.whl
- Upload date:
- Size: 16.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2de0247a450dd7e25d737b64e48e504cc95fe3f4e06821958113b7eb2d92f1b2
|
|
| MD5 |
f3139ff36ed6976da2c53b173cea78b8
|
|
| BLAKE2b-256 |
15db3cc476e58727362d58ff909c342b068355ad5e06ae6dfc633becd9fa3ae4
|