Skip to main content

Censor sensitive string data in Python.

Project description


Censor sensitive string data in Python.

Build Status Coverage Status


Install with:

pip install expurgator


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>'}


To build this library as a wheel:

python bdist_wheel --universal


First, make sure you have pytest installed:

pip install pytest

To run all tests, simply do:



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.

Filename, size & hash SHA256 hash help File type Python version Upload date
expurgator-0.1.3-py2.py3-none-any.whl (2.7 kB) Copy SHA256 hash SHA256 Wheel py2.py3

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page