aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cli.py11
1 files changed, 4 insertions, 7 deletions
diff --git a/cli.py b/cli.py
index be040cb..99742a3 100644
--- a/cli.py
+++ b/cli.py
@@ -1,6 +1,5 @@
import argparse
-from gdpr_obfuscator.read import DataReader
-from gdpr_obfuscator.obfuscate import obfuscate
+from gdpr_obfuscator import Obfuscator
def main():
@@ -27,14 +26,12 @@ def main():
args = parser.parse_args()
- reader = DataReader()
+ obfuscator = Obfuscator()
if args.local and not args.s3:
- data = reader.read_local(args.local)
+ obfuscated_data = obfuscator.process_local(args.local, args.pii)
else:
- data = reader.read_s3(args.s3)
-
- obfuscated_data = obfuscate(data, args.pii)
+ obfuscated_data = obfuscator.process_s3(args.s3, args.pii)
print(obfuscated_data)
git.ajschof.me — hosted by ajschofield — powered by cgit