File: etl.cfg

package info (click to toggle)
python-stetl 1.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 89,988 kB
  • sloc: python: 5,007; xml: 707; sql: 430; makefile: 155; sh: 50
file content (24 lines) | stat: -rw-r--r-- 716 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# Trivial example of string templating filter.
# The input data is in input/city.csv but could in practice be a record from a database.
# The template file template_city.xml already contains the main output with symbolic vars
# Variables from the CSV are substituted to produce the output file output/city.xml

[etl]
chains = input_csv|filter_template|output_file

[input_csv]
class = inputs.fileinput.CsvFileInput
file_path = input/city.csv
output_format = record

[filter_template]
class = filters.templatingfilter.StringTemplatingFilter
template_file = city_template.xml

[output_std]
class = outputs.standardoutput.StandardOutput

[output_file]
class = outputs.fileoutput.FileOutput
file_path = output/city.xml