Skip to content

Python package for quick and readable console manipulation using ANSI Escapes Sequences

License

Notifications You must be signed in to change notification settings

tillhainbach/pyansiescapes

Repository files navigation

PyANSIEscapes - Console Manipulation using ANSI Escapes Sequences

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.

Installation

pip install pyansiescapes

Usage

import pyansiescapes.commands as ansi

# Print blue text on white background:
print(ansi.format("Hello ANSI!", color = 'blue', background = 'white'))

API-Reference

The documentation is hosted on readthedocs.io

You can also access the docs using help(ansi) in a python REPL.

License

This repository is licensed under the MIT License. See LICENSE for details.

About

Python package for quick and readable console manipulation using ANSI Escapes Sequences

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages