Skip to main content

Blackout the string (str)

Project description

strblackout

CI and CD PyPI version fury.io License: MIT codecov

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


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)

Uploaded Source

Built Distribution

strblackout-0.1.1-py3-none-any.whl (3.4 kB view hashes)

Uploaded 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