Skip to content

jojoee/strblackout

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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) == "***"