Skip to content

Simple tool to generate a word document from .docx template and YAML variables (using py-docx-tpl)

License

Notifications You must be signed in to change notification settings

Ventto/odocxtpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ODocxTpl

License Status

ODocxTpl is a simple tool to generate a word document from .docx template and YAML variables (using py-docx-tpl).

Requirements

  • python3.5
  • python-argparse
  • python-pip - The PyPA recommended tool for installing Python packages
  • python-yaml - Python bindings for YAML, using fast libYAML library

Installation

Install python-docx-template:

$ pip install docxtpl

Before usage:

$ chmod +x src/odocxtpl.py

Usage

$ python odocxtpl.py file1.docx meta.yaml out.docx
  • file1.docx: Word document containing context {{ vars }}
  • meta.yaml: Variable values
  • out.docx: Output file

About

Simple tool to generate a word document from .docx template and YAML variables (using py-docx-tpl)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages