awesome-repositories.com
Blog
awesome-repositories.com

Descubre los mejores repositorios open-source con nuestra búsqueda potenciada por IA.

ExplorarBúsquedas curadasAlternativas open-sourceSoftware autohospedableBlogMapa del sitio
ProyectoAcerca deCómo clasificamosPrensaServidor MCP
Aviso legalPrivacidadTérminos
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
elapouya avatar

elapouya/python-docx-template

0
View on GitHub↗
2,552 estrellas·429 forks·Python·lgpl-2.1·5 vistas

Python Docx Template

python-docx-template is a template engine for generating Microsoft Word documents by merging .docx files with data contexts using a logic-based markup syntax. It functions as a document automator that injects variables, images, and sub-documents into Word files while maintaining the original styling.

The project uses a rendering system based on Jinja2 to apply template logic and filters to Office Open XML files. It allows for the creation of custom template filters to transform data during the rendering phase and includes a command line interface for producing documents by passing a template and data context.

The engine covers conditional structure control for paragraphs, table rows, and columns, as well as the embedding of sub-documents and dynamic image insertion. It handles rich text automation through dynamic styling of colors and fonts, manages table layouts including cell spanning, and provides detection for missing variables in the data context.

Features

  • DOCX Automation Libraries - Provides a library for injecting variables, images, and sub-documents into Word files while preserving styling.
  • Data-Driven Document Generation - Populates content dynamically within files using a markup syntax based on a provided data context.
  • Document Content Manipulation - Programmatically modifies the underlying OpenXML structure to inject dynamic content while preserving native formatting.
  • Word Processing Document Generation - Creates Microsoft Word files by merging a template with a data context using a logic-based markup syntax.
  • Document Templating Systems - Implements a logic-based engine for building complex documents with conditional sections and sub-documents.
  • Dynamic Report Generation - Provides the ability to generate professional reports by merging data contexts with Word templates.
  • Structural Content Injection - Inserts variables and logic into paragraphs, tables, and columns using specialized tags to maintain structure.
  • Dynamic Document Generators - Uses a Jinja2-based rendering system to inject logic and real-time data into Office Open XML templates.
  • Template Engines - Functions as a template engine that merges .docx files with data using a logic-based markup syntax.
  • Structural Conditional Logic - Conditionally adds or removes entire paragraphs, table rows, and columns using specialized tags.
  • Context-Aware Variable Resolution - Implements mechanisms for retrieving values from data objects based on template scopes and hierarchical context.
  • Jinja2 Template Renderers - Uses a Jinja2-based rendering engine to apply logic and filters to document content.
  • Rich Text Document Automation - Allows programmatic injection of custom colors, fonts, and rich text formatting into documents.
  • Command-Line Document Processors - Provides a command-line interface to automate document generation by passing template files and data contexts.
  • Recursive Template Merging - Integrates the XML content of external files into the main document stream to support nested templates.
  • Embedded Media Replacements - Swaps existing images or embedded objects in the body, headers, or footers with new files.
  • XML Media Embeddings - Embeds image files and media objects by directly manipulating the underlying OpenXML relationship and target definitions.
  • Sub-document Embedding - Inserts the contents of another file or programmatically generated document into a template variable.
  • Bulk Document Templating - Uses a command line interface or script to produce many customized Word files from a single template and data source.
  • Image Insertion Utilities - Embeds images into the document at runtime by specifying file paths and dimensions.
  • Data Transformation Filters - Enables the creation of custom filters to transform data directly during the template rendering phase.
  • Rich Text Styling - Provides capabilities for applying dynamic inline formatting such as custom colors, fonts, and sizes.
  • Table Layout Engines - Controls horizontal and vertical cell spanning and background colors for document tables.
  • Document and File Processing - Edits Word documents using Jinja2 templating.
  • Office Document Tools - Edit Word documents using Jinja2 templates.

Historial de estrellas

Gráfico del historial de estrellas de elapouya/python-docx-templateGráfico del historial de estrellas de elapouya/python-docx-template

Búsqueda con IA

Explora más repositorios increíbles

Describe lo que necesitas en lenguaje sencillo: la IA clasifica miles de proyectos open-source curados por relevancia.

Start searching with AI

Alternativas open-source a Python Docx Template

Proyectos open-source similares, clasificados según cuántas características comparten con Python Docx Template.
  • python-openxml/python-docxAvatar de python-openxml

    python-openxml/python-docx

    5,442Ver en GitHub↗

    python-docx is an OOXML document manipulation library used for creating, reading, and updating Microsoft Word files. It functions as a generator for building formatted documents and a parser for extracting text, metadata, and structural elements from existing files. The project provides a comprehensive style management system for defining and applying character, paragraph, and table styles within OpenXML documents. It allows for the programmatic control of document appearance through an object-oriented approach to the underlying XML schema. Capabilities cover a wide range of document generat

    Python
    Ver en GitHub↗5,442
  • sayi/poi-tlAvatar de Sayi

    Sayi/poi-tl

    5,114Ver en GitHub↗

    poi-tl is a Java-based template engine for generating DOCX files. It functions as a document generator that populates predefined Word templates with dynamic data and logic to automate the production of reports and contracts. The library enables complex document assembly through recursive template nesting and conditional section rendering. It supports the embedding of images from local paths or URLs and the generation of dynamic tables and lists based on provided data structures. The system handles data-driven reporting by replacing placeholders while preserving original formatting and styles

    Javadocxexportjava
    Ver en GitHub↗5,114
  • iofficeai/officecliAvatar de iOfficeAI

    iOfficeAI/OfficeCLI

    8,092Ver en GitHub↗

    OfficeCLI is a headless office suite and automation tool designed for programmatically reading, editing, and generating Microsoft Office documents. It functions as an OOXML manipulation library and a document templating engine, providing a standalone binary that allows for the management of Word, Excel, and PowerPoint files without requiring a local installation of office software. The project distinguishes itself by exposing document operations as tools for AI agents via a JSON-RPC server and the Model Context Protocol. It enables advanced customization through raw XML manipulation using XPa

    C#
    Ver en GitHub↗8,092
  • jmcnamara/xlsxwriterAvatar de jmcnamara

    jmcnamara/XlsxWriter

    3,911Ver en GitHub↗

    XlsxWriter is a library for generating spreadsheets in the XLSX format, functioning as an Excel workbook writer and file generator. It provides the capability to write data, apply cell formatting, and build complex layouts across multiple worksheets. The project distinguishes itself with a memory-optimized writing mode that flushes large datasets to disk row-by-row, enabling the creation of files exceeding 4 GB while minimizing RAM consumption. It also includes a specialized mechanism for embedding binary project files and digital signatures to enable VBA macros and signed scripts within work

    Pythonchartslibxlsxwriterpandas
    Ver en GitHub↗3,911
Ver las 30 alternativas a Python Docx Template→

Preguntas frecuentes

¿Qué hace elapouya/python-docx-template?

python-docx-template is a template engine for generating Microsoft Word documents by merging .docx files with data contexts using a logic-based markup syntax. It functions as a document automator that injects variables, images, and sub-documents into Word files while maintaining the original styling.

¿Cuáles son las características principales de elapouya/python-docx-template?

Las características principales de elapouya/python-docx-template son: DOCX Automation Libraries, Data-Driven Document Generation, Document Content Manipulation, Word Processing Document Generation, Document Templating Systems, Dynamic Report Generation, Structural Content Injection, Dynamic Document Generators.

¿Qué alternativas de código abierto existen para elapouya/python-docx-template?

Las alternativas de código abierto para elapouya/python-docx-template incluyen: python-openxml/python-docx — python-docx is an OOXML document manipulation library used for creating, reading, and updating Microsoft Word files.… sayi/poi-tl — poi-tl is a Java-based template engine for generating DOCX files. It functions as a document generator that populates… iofficeai/officecli — OfficeCLI is a headless office suite and automation tool designed for programmatically reading, editing, and… jmcnamara/xlsxwriter — XlsxWriter is a library for generating spreadsheets in the XLSX format, functioning as an Excel workbook writer and… dolanmiu/docx — docx is a JavaScript and TypeScript library for the programmatic generation and manipulation of Word documents. It… rstudio/rmarkdown — rmarkdown is a dynamic document generator and markdown rendering engine used to create reproducible reports, analysis,…