Structural inventory (fast)
from excelminer import analyze_to_dict
result = analyze_to_dict("workbook.xlsx")- Sheets, defined names, connections.
Install, run quickstarts, and discover common workflows.
pip install excelminer
Includes OOXML parsing + openpyxl.
pip install "excelminer[calamine]" pip install "excelminer[com]"
Calamine enables used-range blocks; COM enables Windows Excel automation.
from excelminer import AnalysisOptions, analyze_to_dict
result = analyze_to_dict(
"workbook.xlsx",
options=AnalysisOptions(include_formulas=True),
)
print(result["graph"]["stats"])from excelminer import AnalysisOptions, analyze_workbook
graph, reports, ctx = analyze_workbook(
"workbook.xlsx",
options=AnalysisOptions(include_formulas=True),
)
print(graph.stats())
print(reports)
print(ctx.issues)from excelminer import analyze_to_dict
result = analyze_to_dict("workbook.xlsx")from excelminer import AnalysisOptions, analyze_to_dict
result = analyze_to_dict(
"workbook.xlsx",
options=AnalysisOptions(include_formulas=True),
)Formula text is extracted without evaluation.
from excelminer import AnalysisOptions, analyze_to_dict
result = analyze_to_dict(
"workbook.xlsx",
options=AnalysisOptions(
include_formulas=True,
formula_sheet_names=["Inputs", "Model"],
formula_scan_mode="auto",
formula_large_sheet_cells=10_000,
formula_skip_pivot_cells=True,
),
)Use formula_sheet_indexes for 1-based positions.
from excelminer import AnalysisOptions, analyze_to_dict
result = analyze_to_dict(
"workbook.xlsx",
options=AnalysisOptions(include_cells=True, max_cells_per_sheet=50_000),
)Requires excelminer[calamine].
from excelminer import AnalysisOptions, analyze_to_dict
result = analyze_to_dict(
"workbook.xlsx",
options=AnalysisOptions(include_com=True, include_formulas=True),
)Windows + Excel required. Opt-in for modern formats.
Override by passing backends= to analyze_workbook().