Generate GDScript API indexes and enforce public API comment coverage.
Project description
GDScript API Comment Coverage
Generate a Markdown API index for Godot GDScript projects and enforce configurable comment coverage for public classes, signals, exported properties, constants, and public functions.
The goal is practical maintainability: a codebase-level map that can run in CI and catch undocumented public APIs before they spread.
Install
python -m pip install -e .
When published:
python -m pip install gdscript-api-comment-coverage
Quick Start
gdscript-api-coverage C:\Projects\MyGame --min-all 80
gdscript-api-coverage . --min-public-func 80 --min-signal 100
gdscript-api-coverage . --write-docs docs\API_INDEX.md
gdscript-api-coverage . --format json --output gdscript-api-report.json
Run against the sample:
gdscript-api-coverage examples\tiny-godot-project --write-docs API_INDEX.md --fail-on none
What It Finds
class_namedeclarations.signaldeclarations.@export varproperties, including annotation-on-previous-line style.- Public
funcdeclarations that do not start with_. - Public constants.
- Whether each item has an immediately preceding comment.
Comment Style
Prefer Godot doc comments:
## Emitted when data changes.
signal data_changed(id: String)
Single # comments are accepted, but ## is easier to distinguish as public documentation.
Documentation
Development
python -m pip install -e .
python -m unittest discover -s tests -v
gdscript-api-coverage examples\tiny-godot-project --min-all 60 --write-docs API_INDEX.md
Examples and fixtures are generic and should not expose private project content.
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
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_api_comment_coverage-0.1.0.tar.gz.
File metadata
- Download URL: gdscript_api_comment_coverage-0.1.0.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33edbb8235353957591bda16cfa8c77d7d47da09942b6b73a698da370705bea7
|
|
| MD5 |
8a19d1a2ebcb702a73a7cdb19ab20ea0
|
|
| BLAKE2b-256 |
622da939c4db04c7946977aafae376dd4063ebc0bb0c9174888ea5d489efca71
|
Provenance
The following attestation bundles were made for gdscript_api_comment_coverage-0.1.0.tar.gz:
Publisher:
publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gdscript_api_comment_coverage-0.1.0.tar.gz -
Subject digest:
33edbb8235353957591bda16cfa8c77d7d47da09942b6b73a698da370705bea7 - Sigstore transparency entry: 1764440373
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@b5249a89ea0bae45a8dc800c95e329ce64e53de9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gdscript-api-comment-coverage.yml@b5249a89ea0bae45a8dc800c95e329ce64e53de9 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file gdscript_api_comment_coverage-0.1.0-py3-none-any.whl.
File metadata
- Download URL: gdscript_api_comment_coverage-0.1.0-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0598221a6bdb8110f28a409e0d0a13e6a3ece97a8e025c0a1b6e814dd0339604
|
|
| MD5 |
1872cb7b12d67488ae05f76f296c3d67
|
|
| BLAKE2b-256 |
7f8862d557d8f118e5484e48530b0178aa5e07b909d0e163e0f0f8c6b63e45b4
|
Provenance
The following attestation bundles were made for gdscript_api_comment_coverage-0.1.0-py3-none-any.whl:
Publisher:
publish-gdscript-api-comment-coverage.yml on NonniGB/godot-production-toolkit
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gdscript_api_comment_coverage-0.1.0-py3-none-any.whl -
Subject digest:
0598221a6bdb8110f28a409e0d0a13e6a3ece97a8e025c0a1b6e814dd0339604 - Sigstore transparency entry: 1764440580
- Sigstore integration time:
-
Permalink:
NonniGB/godot-production-toolkit@b5249a89ea0bae45a8dc800c95e329ce64e53de9 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NonniGB
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-gdscript-api-comment-coverage.yml@b5249a89ea0bae45a8dc800c95e329ce64e53de9 -
Trigger Event:
workflow_dispatch
-
Statement type: