GroupDocs.Assembly for Python via .NET is a document automation and report generation API: it fills templates - ordinary Word, Excel, PowerPoint, OpenDocument, email, HTML, Markdown and text documents with tags such as <<[customer.Name]>> - with your data, and saves the result in the template’s format or another, such as PDF. The data can be Python dicts and lists, JSON, XML and CSV files, or the tables of other documents, with no MS Office or OpenOffice installation required.
Quick example
fromgroupdocs.assemblyimportDataSourceInfo,DocumentAssembler# Fill the tags of hello-world.docx, such as <<[customer.Name]>>, with a dict and save a PDFcustomer={"Name":"Quayside Bistro","Product":"Harbor Blend whole bean coffee"}DocumentAssembler().assemble_document("hello-world.docx","hello-world.pdf",DataSourceInfo(customer,"customer"))
Features
Python data as it is: Dicts and lists, with their numbers, strings, dates and Decimal values, are read by the template’s tags as objects: customer.Name, o.OrderDate.Month.
Data files and documents: JSON, XML and CSV files, and the tables of Word, Excel and PowerPoint documents, as data sources.
Template syntax: Expressions, formatting and data bands, with Sum, Where, GroupBy, OrderBy and other sequence operations written in the template.
Every kind of report: Tables, lists, charts, images, barcodes, hyperlinks, bookmarks, check boxes and inserted documents.
Email: Messages whose sender, recipients, subject and body come from data.
Any output format: Save a report in the template’s format, or a Word template as PDF, HTML, XPS, Markdown and more.
Assembly options: Update fields and formulas, remove empty paragraphs, and write template errors into the report instead of raising.
Supported File Formats
GroupDocs.Assembly works with more than 40 file formats: it fills templates of 35 of them and saves reports to all of them. For a complete list, see the full list of supported formats.
Word Processing (DOC, DOCX, DOCM, DOT, DOTX, DOTM, RTF, ODT, OTT, TXT, MD)
For practical code examples and explanations of the template-and-data workflow, see the Developer Guide section. It covers the template syntax, every data source, and table, list, chart, image, barcode and email reports in each document format.
AI Agents and LLM Integration
The package ships an AGENTS.md reference for AI coding assistants, and the documentation is available to them through an MCP server and as machine-readable text. See AI agents and LLM integration.
Technical Support
If you experience any issues or have suggestions, please refer to the Technical Support topic. This topic provides multiple support channels tailored to your needs.
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.
On this page
Analyzing your prompt, please hold on...
An error occurred while retrieving the results. Please refresh the page and try again.