{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing/3"}],"enrichment":{"capability":"Performs mail merge operations on docx files by replacing merge fields with data, without requiring Microsoft Office to be installed.","skillfed_tags":["document-automation","office-integration"],"use_cases":["Generate personalized letters or invoices by merging customer data into Word templates without manual editing.","Create bulk reports by duplicating a template for each data record and separating them with page breaks.","Populate dynamic tables in docx files by expanding template rows with lists of records.","Automate document generation in server-side applications where Microsoft Office is unavailable.","Preserve merge fields in output documents for later re-merging or manual updates in Word."],"what_it_does":"docx-mailmerge2 is a Python library that automates the population of Microsoft Word templates by replacing merge fields with data. It reads docx files, identifies MERGEFIELD placeholders, substitutes them with values you provide, and writes the result to a new docx file\u2014all without needing Microsoft Office installed. The library handles simple field replacement, table row templating (expanding or replacing rows based on data lists), and template duplication with page or section breaks between copies.\n\nThe package supports field formatting for numeric, text, conditional, and date values, and can work with nested fields like INCLUDEPICTURE and IF statements (though these may require manual field updates in Word afterward). It offers configuration options to control empty table removal, field preservation, automatic field updates on document open, and conditional field evaluation. The single runtime dependency is lxml, making it lightweight and portable across systems.","worth_installing":"Yes. The package is actively maintained, has no known vulnerabilities, carries a permissive MIT license, and solves a real problem (docx templating without Office) with low install friction. It is suitable for production use in document automation workflows, particularly where server-side generation or batch processing is needed."},"id":"docx-mailmerge2","links":{"html":"https://skillfed.io/packages/docx-mailmerge2","md":"https://skillfed.io/packages/docx-mailmerge2.md","pypi":"https://pypi.org/project/docx-mailmerge2/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-12-28","license_spdx":null,"license_treatment":"permissive","name":"docx-mailmerge2","python_support":"supports_current","summary":"Performs a Mail Merge on docx (Microsoft Office Word) files"},"popularity":{"monthly_downloads":133147,"position":11525,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"1.0.1"}
