This is the first release of stransi 🎉, a lightweight parser library for ANSI escape code sequences written in Python.
stransi implements a string-like type (`Ansi`) that is aware of its own ANSI escape sequences, and can be used to parse most of the common escape sequences used in terminal output manipulation.
Notable features
- Parse either
- raw escapes (e.g., `Escape('\x1b[31m')`), or
- meaningful instructions (e.g., `SetColor(role=<ColorRole.FOREGROUND: 30>, color=Ansi256(1))`)
- Wide range of [recognized ANSI Sequences](https://github.com/getcuia/stransi/blob/main/FEATURES.md#recognized-ansi-sequences)
- Strong focus on coloring and styling
- Well tested
- Only one dependency: [ochre](https://github.com/getcuia/ochre)
- Python 3.8+