A wrapper library to read, manipulate and write data in xlsx and xlsm format
76
A utility that builds, reads, and updates Excel workbooks entirely in memory, avoiding any filesystem writes.
@generates
from typing import Any, BinaryIO, Mapping, MutableMapping, Sequence
def create_workbook_bytes(sheets: Mapping[str, Sequence[Sequence[Any]]]) -> bytes:
"""
Build an Excel workbook from an ordered mapping of sheet names to row data
using only in-memory buffers.
"""
def load_workbook(workbook_input: bytes | BinaryIO) -> MutableMapping[str, list[list[Any]]]:
"""
Read workbook content from bytes or a binary stream and return sheet data
with rows preserved in order.
"""
def append_row(workbook_input: bytes | BinaryIO, sheet_name: str, row: Sequence[Any]) -> bytes:
"""
Append a row to the given sheet (creating it when missing) using only in-memory
buffers and return updated workbook bytes.
"""Enables reading and writing Excel workbooks from bytes, streams, and raw content without disk I/O.
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