Module to strip ANSI escape codes from strings
Project description
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'
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ansistrip-0.2.0.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ansistrip-0.2.0.tar.gz.
File metadata
- Download URL: ansistrip-0.2.0.tar.gz
- Upload date:
- Size: 2.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4bb55de0f6c22ef6842e9b0205842d15742db669f7b2412a6cbb14c26d688266
|
|
| MD5 |
d7fe04aec87da7dacdbfc340877bc1dc
|
|
| BLAKE2b-256 |
1ff76cf3e15adbeea90026a8ebdc30932762bfef8512172ed8b7731fc5f7d5df
|
File details
Details for the file ansistrip-0.2.0-py3-none-any.whl.
File metadata
- Download URL: ansistrip-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e9d66920734ff5746df13dcc68c6ba24fc2c16cb3b93ee7b955b8ee007043ce2
|
|
| MD5 |
aabee88145dccf2f2f66301c92d79f21
|
|
| BLAKE2b-256 |
161c26c9d9ead89bb670a5dd2cf2f53b0d1d2d46da07a2f0486ab2fa898408fe
|