gz-mindload
A cognitive complexity scorer over CPython's ast, after G. Ann Campbell's
Cognitive Complexity. It never executes the code it scores.
from gz_mindload import score_cognitive
for record in score_cognitive(source, "module.py"):
print(record.name, record.line, record.score)
gz-mindload PATH...
Provenance
Extracted as-is from gzkit at commit
a06a4f36a8e3fc538d8f20b61df91b9bf42d1ee7: src/gzkit/complexity/cognitive.py and its tests. Only import paths
and the module named in the usage line changed.
Development
uv sync --locked
uv run --locked python -m unittest discover -s tests -v
Metadata
Release files for gz-mindload 0.1.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 |
|---|---|---|---|---|
| gz_mindload-0.1.0.tar.gz | 6.2 kB | With provenance | Details for gz_mindload-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gz_mindload-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for gz_mindload-0.1.0-py3-none-any.whl |
Total release size: 13.4 kB
Release files / gz_mindload-0.1.0.tar.gz
| Download URL | gz_mindload-0.1.0.tar.gz |
|---|---|
| Size | 6.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0d95a06352c9508b76fa3521bc082e162fde6704dca18dad7d5dffe7d66ecd1
|
|
BLAKE2b-256 checksum How to use checksums |
1930cd2127658eca1c020700a1afcc07f2ba307867fc76dc231b22ee27008161
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 / gz_mindload-0.1.0-py3-none-any.whl
| Download URL | gz_mindload-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f53a65019463c69116396d3adf65205d8bf5e45ad1d58b1bf4989b5c02e07290
|
|
BLAKE2b-256 checksum How to use checksums |
b2b81e8af777edd14503635833a2e5352943d5124653e2341e5337dfc100b0e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.13.9 {"installer":{"name":"uv","version":"0.13.9","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
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 gz-mindload 0.1.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 gz_mindload-0.1.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.