This release adds 1 notable feature for engineering teams evaluating rollout.
Published 12d
Developer Productivity
✓ No known CVEs patched
✓ No known CVEs patched in this version
Topics
compound-file
deterministic
excel
file-format
macro-extraction
ms-cfb
+13 more
ms-ovba
office-automation
openxml
pure-python
python
roundtrip
vba
vba-macros
xlam
xls
xlsb
xlsm
zero-dependencies
Summary
AI summaryAdded ExcelFile.create_new(path) to generate a fresh macro‑enabled workbook programmatically.
Full changelog
Added
ExcelFile.create_new(path)-- create a brand-new macro-enabled
workbook from scratch in pure Python, without ever launching Excel.
The new file ships with a fresh VBA project containingThisWorkbook,
Sheet1, and an emptyModule1, opens cleanly in Excel with no
"found a problem with some content" repair prompt, and is ready for
immediate edits via the normalvba_project()/save()flow.- New
TestExcelFileCreateNewtest class covering write-out, expected
modules, emptyModule1, round-trip with user code, overwrite of an
existing file, and creation of missing parent directories.
Internal
- New
src/pyopenvba/_templates/__init__.pymodule embedding a
byte-for-byte clone of a freshly Excel-authored empty.xlsmas a
zlib-compressed base85 constant. No binary fixtures are shipped in the
wheel; the template is regenerated byscripts/bake_empty_template.py
fromtests/live_excel_testing/freshly_touched.xlsm.
Weekly OSS security release digest.
The CVE patches and breaking changes that affected production tools this week. One email, every Sunday.
No spam, unsubscribe anytime.
Share this release
About WilliamSmithEdward/pyOpenVBA
All releases →Related context
Related tools
Beta — feedback welcome: [email protected]