Skip to main content

hypergumbo-lang-scip-python

SCIP-backed Python analyzer for hypergumbo, driven by scip-python (pyright).

This optional package is the second opt-in fidelity backend (after hypergumbo-lang-rust-analyzer) and the first that executes nothing from the analysed repository: pyright performs static inference only. It runs beside the ast-based python analyzer, never instead of it — the two producers' records for one declaration are folded into one node by the ADR-0057 merge pass, and every disagreement stays visible in the provenance slot.

What it adds, measured

On hypergumbo-core's own 179 source files (2026-09-19, scip-python 0.6.6): the syntax arm left 4,133 method-call receivers untyped (obj.method() with obj of unknown module); scip-python typed 3,973 of them (96.1%) — 3,840 to the stdlib (builtins.str, dict, list, pathlib.Path, re.Pattern, …), 96 in-repo, 37 third-party. That module is what hypergumbo verify-claims's I/O-boundary and taint verdicts key on. The Rust backend measured zero receivers typed.

Enabling it

npm install -g --prefix "$HOME/.local" @sourcegraph/scip-python@0.6.6   # the producer (Node 16+), into ~/.local/bin
pipx install 'hypergumbo[scip-python]'                                   # this wrapper
hypergumbo survey . --backend scip-python                                # one run

hypergumbo finds scip-python on PATH only. A run that cannot find it prints the install steps for that machine, including Node.js and the PATH lines when those are missing.

Durably, as a preference in either ADR-0045 config tier (allowed because the backend executes nothing):

# $XDG_CONFIG_HOME/hypergumbo/config.toml  or  <repo>/.hypergumbo.toml
[backends]
scip_python = true

HYPERGUMBO_SCIP_PYTHON=1 is the environment spelling; --backend tree-sitter turns every opt-in backend off for one run. Precedence: flag > environment > project config > user config.

When enabled but the binary or this package is missing, the CLI exits 2 with the install line rather than silently falling through.

What the translation does with scip-python's output

  • Global definitions become Symbols through the shared importer (hypergumbo_core.scip); scip-python declares no Document.language and no SymbolInformation.kind, so the importer reads the file extension and the SCIP descriptor grammar instead.
  • Parameter symbols and the per-module __init__: declaration are dropped: the syntax arm models neither, and a node nothing can pair with is noise.
  • References to in-repo definitions become calls / references edges.
  • References to external callables (stdlib, third-party) become external call edges carrying the receiver's module — python:pathlib.Path:0-0:glob:unresolved with a structured dst_ref — the same shape the syntax arm mints when it knows the module, so the two arms are comparable at every call site.

Recorded fixture

recorded/sample_project/ is a three-file package and the index.scip scip-python 0.6.6 emitted for it (metadata.project_root normalised). Every cross-backend test reads that recording, never anything derived from the syntax arm's own output (ADR-0057 §12).

Metadata

Release files for hypergumbo-lang-scip-python 10.0.0

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

Source distribution (sdist)

Source distribution for hypergumbo-lang-scip-python 10.0.0
File Size Uploaded Provenance Actions
hypergumbo_lang_scip_python-10.0.0.tar.gz 25.7 kB Without provenance Details for hypergumbo_lang_scip_python-10.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for hypergumbo-lang-scip-python 10.0.0
File Interpreter ABI Platform Actions
hypergumbo_lang_scip_python-10.0.0-py3-none-any.whl Python 3 none any Details for hypergumbo_lang_scip_python-10.0.0-py3-none-any.whl

Total release size: 39.5 kB

Release files / hypergumbo_lang_scip_python-10.0.0.tar.gz

Download URL hypergumbo_lang_scip_python-10.0.0.tar.gz
Size 25.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4c9fe34b401486b07ad67d17e95c4721f03ea18744e0a26db1b9dd3e609ddb19
BLAKE2b-256 checksum
How to use checksums
fd84b4c2cbc26015acbb0fd7bf84dbb4f6d9c7c798f761d88276afe3eed9b7f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Release files / hypergumbo_lang_scip_python-10.0.0-py3-none-any.whl

Download URL hypergumbo_lang_scip_python-10.0.0-py3-none-any.whl
Size 13.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e2e990fb549d076e09da9f06d7b2d3c450ca0d2581e2d0d28258d30fe8e57774
BLAKE2b-256 checksum
How to use checksums
b44222414c38bf4f47ceced230c5c12a48813ae33a7f0cdfcf8945027d38ae1d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for hypergumbo-lang-scip-python 10.0.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.

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.

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