From cf0e5d04eeeb75d02cdf2c422ab3c081d5716d03 Mon Sep 17 00:00:00 2001 From: Friedrich Beckmann Date: Fri, 4 Apr 2025 17:22:06 +0200 Subject: add first course table version without calendar --- csv2json.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 csv2json.py (limited to 'csv2json.py') diff --git a/csv2json.py b/csv2json.py new file mode 100644 index 0000000..20c264d --- /dev/null +++ b/csv2json.py @@ -0,0 +1,9 @@ +import csv +import json + +csvfile = open('kurse.csv', 'r') +jsonfile = open('kurse.json', 'w') + +reader = csv.DictReader( csvfile) +out = json.dumps( [ row for row in reader ] ) +jsonfile.write(out) \ No newline at end of file -- cgit v1.2.3