aboutsummaryrefslogtreecommitdiffstats
path: root/cli.py
diff options
context:
space:
mode:
authorAlex <git@ajschof.me>2025-02-18 23:34:53 +0000
committerGitHub <noreply@github.com>2025-02-18 23:34:53 +0000
commitf24955044c4c05e37aba4efb505ec63b44113912 (patch)
treee2096c282bdcab9b7c92e1ed6511f65fdd5caead /cli.py
parenteb0d30d0235dbadd1d5c385a0a49d4cd8aea021e (diff)
parent90542cfe838376988982fb5c9062fc8dee0b7c87 (diff)
downloadgdpr-obfuscator-f24955044c4c05e37aba4efb505ec63b44113912.tar.gz
gdpr-obfuscator-f24955044c4c05e37aba4efb505ec63b44113912.zip
Merge pull request #7 from ajschofield/feat/csv-writer
add create_byte_stream for obfuscation output
Diffstat (limited to 'cli.py')
-rw-r--r--cli.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/cli.py b/cli.py
index b1d4000..f2c8771 100644
--- a/cli.py
+++ b/cli.py
@@ -3,6 +3,7 @@ import json
from obfuscator.csv_reader import CSVReader
from obfuscator.obfuscate import obfuscate
from obfuscator.logger import get_logger
+from obfuscator.csv_writer import create_byte_stream
# Create the logger
logger = get_logger("CLI")
@@ -44,6 +45,7 @@ def main():
obfuscated_data = obfuscate(data, args.pii)
# For debug purposes, log the obfuscated data as JSON for readability
logger.debug("Obfuscated data (JSON): " + json.dumps(obfuscated_data, indent=4))
+ return create_byte_stream(obfuscated_data)
# If the script is run directly (as it should be), call the main function
git.ajschof.me — hosted by ajschofield — powered by cgit