Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ewen-lbh/python-strip-ansi
Strip ANSI escape sequences from a string
https://github.com/ewen-lbh/python-strip-ansi
Last synced: 12 days ago
JSON representation
Strip ANSI escape sequences from a string
- Host: GitHub
- URL: https://github.com/ewen-lbh/python-strip-ansi
- Owner: ewen-lbh
- Created: 2020-06-20T18:58:44.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-23T16:20:21.000Z (4 months ago)
- Last Synced: 2024-09-29T14:36:07.501Z (about 1 month ago)
- Language: Python
- Size: 4.88 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
strip-ansi
----------Strip ANSI escape sequences from a string
Installation
============`strip-ansi` is available on `on PyPI `_:
.. code:: shell
pip install strip_ansiUsage
=====.. 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... code:: python
>>> from strip_ansi import strip_ansi
>>> strip_ansi("\033[38mLorem ipsum\033[0m")
"Lorem ipsum"