Censor sensitive string data in Python.
Project description
expurgator
Censor sensitive string data in Python.
Quickstart
Install with:
pip install expurgator
Usage
Like so:
from expurgator import shallow_dict_expurgator orig_dict = {'user': 'johnsmith', 'pass': 'supersecret'} censored_dict = shallow_dict_expurgator(orig_dict) # censored_dict is now: # {'user': 'johnsmith', 'pass': '<SensitiveString>'}
Building
To build this library as a wheel:
python setup.py bdist_wheel --universal
Testing
First, make sure you have pytest installed:
pip install pytest
To run all tests, simply do:
py.test
Legal
Copyright 2018 IRESS Ltd.
License: Apache License 2.0.
Project details
Release history Release notifications
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size expurgator-0.1.3-py2.py3-none-any.whl (2.7 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes View hashes |
Close
Hashes for expurgator-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b9c79d3d57742f37bd25ef45a772bc556e747fe7f2b92b0fd9947bef58e0d94 |
|
MD5 | 519e24211c9e4d459fe0834add6dbb42 |
|
BLAKE2-256 | e78c411c5f0f787183e6725694b3096d11c73ac500779c09d523d8774510e215 |