Introduction

ansiscape is a Python package and CLI tool for creating and interpreting ANSI escape codes.

  • Support for named, 8-bit and 24-bit colours.
  • Create formatted strings with nested sequences and property reversions.
  • Convert embedded escape codes into explanatory dictionaries.
  • Write sequences as fully resolved strings and explanatory JSON.

Installation

ansiscape requires Python 3.8 or later.

pip install ansiscape

Feedback

Please raise bugs, request features and ask questions at github.com/cariad/ansiscape/issues.

Mention if you're a sponsor to ensure I respond as a priority. Thank you!

Project

The source for ansiscape is available at github.com/cariad/ansiscape under the MIT licence.

And, hello! I'm Cariad Eccleston and I'm an independent/freelance software engineer. If my work has value to you, please consider sponsoring.