diff options
| author | Alex Schofield <git@ajschof.me> | 2025-02-26 16:13:36 +0000 |
|---|---|---|
| committer | Alex Schofield <git@ajschof.me> | 2025-02-26 16:13:36 +0000 |
| commit | e476403c59e922512d06ef5489a07fba87615998 (patch) | |
| tree | af61af1c775bd63b1ec1bcfb0010cf5e6d21b22d /examples/local.py | |
| parent | e8788272eda9c2ab74fa6ee1a2cc260ed7e87e76 (diff) | |
| download | gdpr-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.py | 5 |
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)) |
