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

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 2Python 3

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

Hashes for expurgator-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 5b9c79d3d57742f37bd25ef45a772bc556e747fe7f2b92b0fd9947bef58e0d94
MD5 519e24211c9e4d459fe0834add6dbb42
BLAKE2b-256 e78c411c5f0f787183e6725694b3096d11c73ac500779c09d523d8774510e215

See more details on using hashes here.

Supported by

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