Expand description
§mollify-graph
Discovers Python modules, assigns path-sorted stable FileIds (ADR-004
analog), builds the internal import graph, computes reachability from
entry points, and answers symbol-usage queries. Pure structure — the
mollify-core crate turns these into mollify_parse-backed findings.
Structs§
- FileId
- Stable, path-sorted module identifier.
- Module
Graph - The whole project graph.
- Module
Info - One module node in the graph.
- Unresolved
Import - An import that looks first-party/relative but resolves to no module.
Functions§
- discover_
python_ files - Walk
rootfor*.pyand*.ipynbfiles, honoring.gitignore. Deterministic order. - read_
source - Read a module’s source. For
.ipynb, extract and concatenate code cells into one Python source (line numbers are relative to that concatenation — a documented v1 simplification). Jupyter magics/shell-escapes are skipped.