{"categories":[{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"}],"enrichment":{"capability":"Generates Word documents (.docx) from templates by embedding Jinja2 tags into a Word document and populating them with context variables at runtime.","skillfed_tags":["document-generation","template-engine","office-automation"],"use_cases":["Generate personalized letters or contracts by inserting recipient data into a pre-formatted Word template.","Create dynamic reports with tables, charts, and formatted sections populated from database queries or API responses.","Automate invoice or receipt generation with company branding and variable line items.","Produce batch documents (certificates, labels, forms) with consistent styling and variable content.","Build document workflows where non-technical users design templates in Word and developers populate them programmatically."],"what_it_does":"docxtpl bridges the gap between python-docx (which excels at creating documents from scratch) and the need to modify or populate existing Word documents. You design your document layout in Microsoft Word\u2014complete with formatting, images, headers, footers, and tables\u2014then insert Jinja2 template tags directly into the document text. Save it as a .docx file, and docxtpl reads that template, processes the Jinja2 tags with your context variables, and generates a new Word document with the populated content.\n\nThe package is built on three core dependencies: python-docx handles the underlying .docx file manipulation, jinja2 provides the templating engine for tag processing, and lxml handles the XML parsing that Word documents rely on. This makes it well-suited for mail-merge workflows, report generation, and document automation where you want fine-grained control over the final document's appearance without writing complex layout code.","worth_installing":"Yes. The package is actively maintained, has low install friction, supports modern Python versions, and solves a real gap in Word document automation. The LGPL-2.1-only license is permissive for most use cases but requires attention if you plan to distribute modified versions. No known vulnerabilities. Install it if you need to generate Word documents from templates with dynamic content."},"id":"docxtpl","links":{"html":"https://skillfed.io/packages/docxtpl","md":"https://skillfed.io/packages/docxtpl.md","pypi":"https://pypi.org/project/docxtpl/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-13","license_spdx":null,"license_treatment":"copyleft","name":"docxtpl","python_support":"supports_current","summary":"Python docx template engine"},"popularity":{"monthly_downloads":3387086,"position":2639,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.20.2"}
