raplan.excel
¶
RaPlan I/O with Excel. For this functionality to work, the 'excel' extra should be installed.
from_excel
¶
from_excel(path: str | Path) -> list[Project]
Convert an Excel file to a RaPlan project.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
path
|
str | Path
|
Path to an Excel workbook containing a RaPlan project. |
required |
Source code in src/raplan/excel.py
to_excel
¶
to_excel(
project: Project,
path: str | Path | None = None,
lock: bool = False,
) -> Workbook
Convert a RaPlan project to an Excel workbook.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
project
|
Project
|
RaPlan project to export. |
required |
path
|
str | Path | None
|
Optional filename to save the workbook to. |
None
|
Returns:
| Type | Description |
|---|---|
Workbook
|
An openpyxl Workbook. |