aboutsummaryrefslogtreecommitdiffstats
path: root/examples/local.py
diff options
context:
space:
mode:
authorAlex Schofield <git@ajschof.me>2025-02-26 16:13:36 +0000
committerAlex Schofield <git@ajschof.me>2025-02-26 16:13:36 +0000
commite476403c59e922512d06ef5489a07fba87615998 (patch)
treeaf61af1c775bd63b1ec1bcfb0010cf5e6d21b22d /examples/local.py
parente8788272eda9c2ab74fa6ee1a2cc260ed7e87e76 (diff)
downloadgdpr-obfuscator-e476403c59e922512d06ef5489a07fba87615998.tar.gz
gdpr-obfuscator-e476403c59e922512d06ef5489a07fba87615998.zip
add ability to read path & pii fields from json strings as input
Diffstat (limited to 'examples/local.py')
-rw-r--r--examples/local.py5
1 files changed, 4 insertions, 1 deletions
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))
git.ajschof.me — hosted by ajschofield — powered by cgit