Skip to content

ewen-lbh/python-strip-ansi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strip-ansi

Strip ANSI escape sequences from a string

Installation

strip-ansi is available on on PyPI:

pip install strip_ansi

Usage

Warning

This package only supports python 3.6 and up. It may work on older versions (maybe even python 2) but I'm not sure.

>>> from strip_ansi import strip_ansi
>>> strip_ansi("\033[38mLorem ipsum\033[0m")
"Lorem ipsum"

About

Strip ANSI escape sequences from a string

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages