A wrapper library to read, manipulate and write data in xlsx and xlsm format
76
Create a helper that converts a mapping of sheet names to row data into an XLSX workbook using streaming write-only writes so large datasets can be exported without holding full workbook state in memory.
@generates
from typing import Any, BinaryIO, Dict, Iterable, Optional, Sequence, Union
def write_workbook(sheets: Dict[str, Iterable[Sequence[Any]]], target: Union[str, BinaryIO]) -> Optional[bytes]:
"""
Writes the provided sheets to an XLSX workbook using streaming write-only output.
When a file path is provided, writes to disk and returns None.
When a binary stream is provided, writes to the stream and returns the written bytes.
"""Provides XLSX streaming read/write support.
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