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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file strblackout-0.1.1.tar.gz.

File metadata

  • Download URL: strblackout-0.1.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.12

File hashes

Hashes for strblackout-0.1.1.tar.gz
Algorithm Hash digest
SHA256 fbff6026825bb157f57d72a82b65904f5169cfd09dc5f6b052f96acba2d750f8
MD5 5c4a23a9eada83c5351feae331976495
BLAKE2b-256 f6597be1a87243e0403ee0fd62ed206a1e86885218524440f61e56120696c391

See more details on using hashes here.

File details

Details for the file strblackout-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: strblackout-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.7.12

File hashes

Hashes for strblackout-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5fad93b90ef2fbe555e6bbe8407abd5e772f54cac078e210443c59046b3f513c
MD5 1114422a19041ae71e00a1ab03cf1d20
BLAKE2b-256 360596ddde498dff2d3abceb04ea804986bc812464266241a8f290be9dc9bf08

See more details on using hashes here.

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