Skip to main content

Censor sensitive string data in Python.

Project description

# expurgator

Censor sensitive string data in Python.

[![Build Status](https://travis-ci.org/Iress/expurgator.svg?branch=master)](https://travis-ci.org/Iress/expurgator)
[![Coverage Status](https://coveralls.io/repos/github/Iress/expurgator/badge.svg?branch=master)](https://coveralls.io/github/Iress/expurgator?branch=master)

## Quickstart

Install with:

```sh
pip install expurgator
```


## Usage

Like so:

```python
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:

```sh
python setup.py bdist_wheel --universal
```


## Testing

First, make sure you have pytest installed:

```sh
pip install pytest
```

To run all tests, simply do:

```sh
py.test
```


## Legal

Copyright 2018 [IRESS Ltd](https://www.iress.com/).

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 Distribution

expurgator-0.1.0.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file expurgator-0.1.0.tar.gz.

File metadata

  • Download URL: expurgator-0.1.0.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • 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/2.7.14

File hashes

Hashes for expurgator-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4ca3371aa7af2bd817c6fb8767209844678a1e5192d8894ffc7ae036b5b7c989
MD5 e03fae2acf941cae83e85010cd4604ef
BLAKE2b-256 ba7b4ba15b532253e9737974b079147282058f275debe2c8b763b343613f3e70

See more details on using hashes here.

Supported by

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