Excel Exporter¶
pyconvexity.io.excel_exporter
¶
Excel exporter for PyConvexity energy system models. Exports complete network models to Excel workbooks with multiple sheets.
ExcelModelExporter
¶
Export entire network model to Excel workbook
export_model_to_excel(db_path: str, output_path: str, scenario_id: Optional[int] = None, progress_callback: Optional[callable] = None) -> Dict[str, Any]
¶
Export complete network model to Excel workbook
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
db_path
|
str
|
Database path |
required |
output_path
|
str
|
Excel file output path |
required |
scenario_id
|
Optional[int]
|
Scenario ID (defaults to master scenario) |
None
|
progress_callback
|
Optional[callable]
|
Optional callback for progress updates |
None
|
Returns:
| Type | Description |
|---|---|
Dict[str, Any]
|
Export statistics and metadata |