A lightweight parser for ANSI escape sequences
Project description
stransi 🖍️
I see a
\033[31m
door, and I want it painted\033[30m
.
stransi is a lightweight parser for ANSI escape sequences. It implements a string-like type 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.
Features
- ✨ Good support of ANSI escape sequences
- 🎨 Focus on coloring and styling
- 🛡️ Unsupported
CSI
escape sequences are emitted as tokens - 🏜️ Only one dependency: ochre
- 🐍 Python 3.8+
Credits
Photo by Tien Vu Ngoc on Unsplash.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
stransi-0.1.0.tar.gz
(7.5 kB
view hashes)