diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-11 23:15:45 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-11 23:15:45 +0000 |
| commit | 55fec4960b80bfd94fa094a862a6c84dd30ca874 (patch) | |
| tree | f8dd77b020aea85cab68ed48b5686a926fe8a0fe /src/main.py | |
| parent | ac27aaea71cb9a035446f50d3dc0148ec144ec88 (diff) | |
| download | gdpr-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.py | 8 |
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) |
