aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-11 23:15:45 +0000
committerAlex Schofield <git@ajschof.me>2025-02-11 23:15:45 +0000
commit55fec4960b80bfd94fa094a862a6c84dd30ca874 (patch)
treef8dd77b020aea85cab68ed48b5686a926fe8a0fe /src/main.py
parentac27aaea71cb9a035446f50d3dc0148ec144ec88 (diff)
downloadgdpr-obfuscator-55fec4960b80bfd94fa094a862a6c84dd30ca874.tar.gz
gdpr-obfuscator-55fec4960b80bfd94fa094a862a6c84dd30ca874.zip
rename csv_reader.py to main.py
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