A single Python script for easily sanitizing and redacting text.
str = String("hello, world")
# Redaction
print(str.redact()) # [REDACTED][REDACTED]
# Sanitization
print(str.sanitize()) # █████ █████
This is a Python port of this Ruby library.
Licensed under MIT License (which is the same license as the original Ruby version).