Skip to content

MrHeer/gendoc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gendoc

Generate docx from csv file through .docx template.

Usage

usage: gendoc.py [-h] [-c CONFIG] [-t THREADS] [-v]

Generate docx from csv file through .docx template.

optional arguments:
  -h, --help            show this help message and exit
  -c CONFIG, --config CONFIG
                        config file
  -t THREADS, --threads THREADS
                        number of threads (max 20)
  -v, --version         version info

Example of the config.json file

{
    "tasks": [
        {
            "input_file": "./input/student.csv",
            "output_dir": "./output/",
            "template_file": "./template/Student.docx"
        },
        {
            "input_file": "./input/teacher.csv",
            "output_dir": "./output/",
            "template_file": "./template/Teacher.docx"
        }
    ]
}

Note: the file_name field is necessary in the input_file.

About

Generate docx from csv file through .docx template.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages