Add cross-platform OOXML backend alongside Windows Excel COM

Linux/macOS default to surgical zip edits that clear/set cells while
preserving queries, styles, and other non-worksheet parts. Windows keeps
the COM + add-in path. Paths remapped via XLSX_CLEAN_ROOT; pywin32 is
Windows-only.

Co-authored-by: Diaco Soltanpour <s-diaco@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-07-22 06:33:43 +00:00
parent 4fdcd9c329
commit 2cfd530ced
11 changed files with 707 additions and 140 deletions

View File

@@ -8,11 +8,14 @@ authors = [
dependencies = [
"beaupy>=3.8.2",
"pandas>=2.2.2",
"pywin32>=306",
"pywin32>=306; sys_platform == 'win32'",
]
readme = "README.md"
requires-python = ">= 3.12"
[project.scripts]
xlsx-clean = "xlsx_clean.clean_cells:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"