A wrapper library to read, manipulate and write data in xlsx and xlsm format
76
Applies structured edits to an XLSX workbook using a workbook and sheet abstraction for cell-level updates and sheet creation.
destination. @test@generates
from pathlib import Path
from typing import Any, Dict, List, Optional, Sequence, TypedDict
class SheetEdit(TypedDict, total=False):
sheet: str
create_if_missing: bool
cells: Dict[str, Any]
append_rows: List[List[Any]]
def apply_workbook_edits(
destination: Path,
edits: Sequence[SheetEdit],
source: Optional[Path] = None,
) -> Path:
"""Load or create an XLSX workbook, apply cell updates and row appends per sheet, and save to destination."""Provides workbook and sheet abstractions for creating sheets, editing cell values, appending rows, and saving XLSX content efficiently.
Install with Tessl CLI
npx tessl i tessl/pypi-pyexcel-xlsxdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10