2019-11-06 23:19:16 +01:00
2019-10-24 17:44:49 +02:00
2019-10-24 17:44:49 +02:00
2019-10-24 17:44:49 +02:00
2019-10-24 17:44:49 +02:00

excel2myfile

licence Code style: black

A tool to extract data from excel files and write to complex via yaml config defined structures.

Usage

usage: excel2myfile.py yaml_config excel_file out_file

Yaml config

use double {{ or }} if you want a literal { or }.

sheet_name: Sheet1  # workbook sheet
statement: "my statement with \n{sub1}"  # first statement wich is only inserted once, set to {} to use outest statement in every line
substatements:
  sub1: "\tmy statement with a nested substatement ({sub2}) and two placeholders {ph1}, {ph2}\n"
  sub2: "my nested substatement with a placeholder {ph3}"
placeholder_row_start: 2
placeholder_column_mapping:
  ph1: A
  ph2: B
  ph3: C
Description
A tool to extract data from excel files and write to complex via yaml config defined structures.
Readme MIT 32 KiB
Languages
Python 100%