pip install relatorio
python
from relatorio import Report
from relatorio.templates.opendocument import Template
python
template = Template('template.odt', static_path='.')
python
report = Report(template, output='report.pdf')
report.add_query('data', 'SELECT * FROM data.csv')
report.render()