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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file expurgator-0.1.3-py2.py3-none-any.whl.
File metadata
- Download URL: expurgator-0.1.3-py2.py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5b9c79d3d57742f37bd25ef45a772bc556e747fe7f2b92b0fd9947bef58e0d94
|
|
| MD5 |
519e24211c9e4d459fe0834add6dbb42
|
|
| BLAKE2b-256 |
e78c411c5f0f787183e6725694b3096d11c73ac500779c09d523d8774510e215
|