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) == "***"
Release files for strblackout 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| strblackout-0.1.1.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| strblackout-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Release files / strblackout-0.1.1.tar.gz
| Download URL | strblackout-0.1.1.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbff6026825bb157f57d72a82b65904f5169cfd09dc5f6b052f96acba2d750f8
|
|
BLAKE2b-256 checksum How to use checksums |
f6597be1a87243e0403ee0fd62ed206a1e86885218524440f61e56120696c391
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / strblackout-0.1.1-py3-none-any.whl
| Download URL | strblackout-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5fad93b90ef2fbe555e6bbe8407abd5e772f54cac078e210443c59046b3f513c
|
|
BLAKE2b-256 checksum How to use checksums |
360596ddde498dff2d3abceb04ea804986bc812464266241a8f290be9dc9bf08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|