Skip to main content

Censor sensitive string data in Python.

Project description

expurgator

Censor sensitive string data in Python.

Build Status Coverage Status

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

expurgator-0.1.3-py2.py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page