This package provides human readable functions for adding ANSI escapes sequences to your python console outputs. It's loosy based on ansiescapes, however offers more convenience functions for formatting Rich Text.
Update: Ships with emojis, so you can use 😄 in your messages(strings) pass to ansi.format()-calls.
pip install pyansiescapes
import pyansiescapes.commands as ansi
# Print blue text on white background:
print(ansi.format("Hello ANSI!", color = 'blue', background = 'white'))
The documentation is hosted on readthedocs.io
You can also access the docs using help(ansi)
in a python REPL.
This repository is licensed under the MIT License. See LICENSE for details.