linexcel¶
Data lineage analysis for Excel workbooks.
Extracts every formula, groups stretched patterns (R1C1 canonicalization), builds a dependency graph (cells, ranges, defined names, VBA), decomposes composite functions with step-by-step evaluation, and optionally documents calculations via AI.
Install¶
Quick start¶
from linexcel import analyze
result = analyze("workbook.xlsx")
result.save_html("out.html")
print(result.stats)
See the Quick start guide for more.
Or without writing any Python¶
See the command line reference.
What would you like to investigate?¶
| Goal | Start here |
|---|---|
| Explore one sheet in a large report | Use the Graph sheet selector; directly connected cross-sheet nodes remain visible. |
| Explain a particular total | Target its output cell and trace its upstream calculations. |
| Find what an input feeds | Look up nodes and their dependents in a whole-workbook analysis. |
| Resolve linked workbook inputs | Pass --refs-dir ./linked; see lineage coverage. |
| Share findings without installing a viewer | Export a standalone offline HTML report. |
| Add explanations from your chosen model | Enable optional AI documentation. |
| Browse imported source cells | Open the embedded Datasette data browser in serve. |
| Read VBA in a workbook or add-in | Use static VBA reading; inspect source and provenance without execution. |
Guide¶
- Quick start. Analyse a workbook, explore it, and export it.
- Command line. Run the same analysis from a shell, with no install.
- Lineage coverage. What is in the graph, and what is not.
- HTML export. The standalone offline report.
- Workbook context & screenshots. What a reader sees, not only what the file computes.
- Source data browser. Read-only worksheet tables and provenance.
- Static VBA and add-ins. Modules and procedures without execution.
- Choosing an AI provider. Local runtime, hosted gateway, or your own callable; none is chosen for you.
- AI documentation. Evidence-based cards, quotation checks, token accounting and budgets.
- Languages. Nine locales, for both the prompt and the interface.
- Data handling. What leaves the machine, and when.
Maintenance and evidence¶
- Continuous improvement plan. Priorities, issue evidence gates, specialized AI review and Markdown cleanup decisions.
- Open-source package research. Optional trials, including Excelize display formatting.
- Local acceptance. Complete generation and independent factual and visual review on the current working tree.
- Specialized factual AI review. Typed claim evidence, independent source/image review and reproducible before/after comparison.