From e476403c59e922512d06ef5489a07fba87615998 Mon Sep 17 00:00:00 2001 From: Alex Schofield Date: Wed, 26 Feb 2025 16:13:36 +0000 Subject: add ability to read path & pii fields from json strings as input --- examples/local.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/local.py b/examples/local.py index 73b8530..befd9f2 100644 --- a/examples/local.py +++ b/examples/local.py @@ -2,5 +2,8 @@ from gdpr_obfuscator import Obfuscator obfuscator = Obfuscator() +json_input = ( + '{"file_path": "./test/data/mock_data.csv", "pii_fields": ["name", "email"]}' +) -print(obfuscator.process_local(path="mock_data.csv", pii_fields=["name", "email"])) +print(obfuscator.process_local(json_input)) -- cgit v1.2.3