Blackout the string (str)
Project description
strblackout
String replacement or Blackout text with *** e.g. 08*****123
Installation
pip install strblackout
Usage
from strblackout import blackout
blackout("123456789") == "123456789"
blackout("123456789", left=5) == "*****6789"
blackout("123456789", right=3) == "123456***"
blackout("123456789", left=3, replacement="x") == "xxx456789"
blackout("123", left=10, right=20) == "***"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
strblackout-0.1.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for strblackout-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5fad93b90ef2fbe555e6bbe8407abd5e772f54cac078e210443c59046b3f513c |
|
MD5 | 1114422a19041ae71e00a1ab03cf1d20 |
|
BLAKE2b-256 | 360596ddde498dff2d3abceb04ea804986bc812464266241a8f290be9dc9bf08 |