diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-18 23:34:26 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-18 23:34:26 +0000 |
| commit | 90542cfe838376988982fb5c9062fc8dee0b7c87 (patch) | |
| tree | e2096c282bdcab9b7c92e1ed6511f65fdd5caead /cli.py | |
| parent | a655b62cbf2899e683a152039a8c6bd38b9d636d (diff) | |
| download | gdpr-obfuscator-90542cfe838376988982fb5c9062fc8dee0b7c87.tar.gz gdpr-obfuscator-90542cfe838376988982fb5c9062fc8dee0b7c87.zip | |
update cli.py to use create_byte_stream
Diffstat (limited to 'cli.py')
| -rw-r--r-- | cli.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
