An open API service indexing awesome lists of open source software.

https://github.com/carlosplanchon/ansistrip

Module to strip ANSI Escape codes from a string.
https://github.com/carlosplanchon/ansistrip

ansi carlosplanchon code escape graphics python python3 strip

Last synced: 4 months ago
JSON representation

Module to strip ANSI Escape codes from a string.

Awesome Lists containing this project

README

          

# Ansistrip
*Module to strip ANSI Escape codes from a string.*

## Installation
### Install with pip
```
pip3 install -U ansistrip
```

## Usage
```
In [1]: import ansistrip

In [2]: text = "\x1b[1m\x1b[38;5;10mtest\x1b0m"

In [3]: ansistrip.ansi_strip(text)

Out[3]: 'test'
```