aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.py')
-rw-r--r--src/main.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/main.py b/src/main.py
new file mode 100644
index 0000000..23afc66
--- /dev/null
+++ b/src/main.py
@@ -0,0 +1,8 @@
+import csv
+from io import StringIO
+from typing import List, Dict
+
+def csv_reader(content: str) -> List[Dict[str, str]]:
+ f = StringIO(content)
+ reader = csv.DictReader(f)
+ return list(reader)
git.ajschof.me — hosted by ajschofield — powered by cgit