Ansible Anonymizer
Project description
Library to clean up Ansible tasks from any Personally Identifiable Information (PII)
Free software: Apache Software License 2.0
Features
The library can be used to remove the PII from a multi level structure:
$ python3
>>> from ansible_anonymizer import anonymizer
>>> example = [{"name": "foo bar", "email": "my-email@address.com"}]
>>> anonymizer.anonymize_struct(example)
['- email: lucas27@example.com\n name: foo bar\n']
But you can also anonymize a block of text:
>>> from ansible_anonymizer import anonymizer
>>> some_text = """
... - name: a task
... a_module:
... secret: foobar
... """
>>> anonymizer.anonymize_text_block(some_text)
'\n- name: a task\n a_module:\n secret: {{ }}\n'
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansible-anonymizer-1.1.1.tar.gz
(12.4 kB
view hashes)
Built Distribution
Close
Hashes for ansible_anonymizer-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bf32e76b6e583cc4da6b53049fc6c3839e0bafe69656d5696eafd7c0d620022 |
|
MD5 | 7899d92a1959b641dd34381a233e3dd3 |
|
BLAKE2b-256 | 396f1846a9c99dbfa7a6e3e4d149845f250e03ee9808dab1ac08ea82e15cbd72 |