[go: up one dir, main page]

Skip to content
/ gendoc Public

Generate docx from csv file through .docx template.

License

Notifications You must be signed in to change notification settings

MrHeer/gendoc

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

No packages published

Languages