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.
- Host: GitHub
- URL: https://github.com/carlosplanchon/ansistrip
- Owner: carlosplanchon
- License: gpl-3.0
- Created: 2019-03-20T05:00:13.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2020-06-17T20:10:06.000Z (over 5 years ago)
- Last Synced: 2025-07-02T18:07:16.853Z (7 months ago)
- Topics: ansi, carlosplanchon, code, escape, graphics, python, python3, strip
- Language: Python
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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'
```