aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-19 15:40:39 +0000
committerAlex Schofield <git@ajschof.me>2025-02-19 15:40:39 +0000
commitef3f16de8d93821d54344d5cdd16d8deee0b016c (patch)
tree10e76d2b97fba4efadb6ad8fe2ea423b4bdc8b5a /cli.py
parent1608d01bb68c1f6292b04c70caa609d34943b371 (diff)
downloadgdpr-obfuscator-ef3f16de8d93821d54344d5cdd16d8deee0b016c.tar.gz
gdpr-obfuscator-ef3f16de8d93821d54344d5cdd16d8deee0b016c.zip
wrap write functions in class and update references
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cli.py b/cli.py
index 5100e2b..bd49707 100644
--- a/cli.py
+++ b/cli.py
@@ -1,8 +1,8 @@
import argparse
from obfuscator.read import DataReader
+from obfuscator.write import DataWriter
from obfuscator.obfuscate import obfuscate
from obfuscator.logger import get_logger
-from obfuscator.csv_writer import create_byte_stream
def main():
@@ -43,7 +43,9 @@ def main():
obfuscated_data = obfuscate(data, args.pii)
- return create_byte_stream(obfuscated_data)
+ writer = DataWriter()
+
+ return writer.create_byte_stream(obfuscated_data)
if __name__ == "__main__":
git.ajschof.me — hosted by ajschofield — powered by cgit