Generate CSVs dynamically with Jinja
Create a CSV file with Jinja
{%- set csv_data = [ { "name": "rewsty", "address": "123 rewsty lane", "timezone": "EST" } ] -%}{{- csv_data | csv(fieldnames = csv_data[0].keys() | list) -}}
Example output
name,address,timezone
rewsty,123 rewsty lane,ESTBenefits of dynamic CSV generation with Jinja
Last updated
Was this helpful?

