Yet another ANSI escape sequence library for Python - now modernised!
Project description
escapyde
Yet another ANSI escape sequence library for Python - now modernised!
Installation
The package is readily available on PyPI. There are no dependencies, but Python 3.6 or newer is required.
On Windows:
py -m pip install escapyde
On other platforms:
pip3 install escapyde
Usage
import escapyde
from escapyde.examples.text import SKULL
some_text = "Hello, world!"
print(f"I want to print this red: {escapyde.FRED | some_text}, and this yellow: {escapyde.FYELLOW | 'Hi!'}.")
print(f"Here's a cyan skull:\n{escapyde.FCYAN | SKULL}")
As can be seen, the example works perfectly fine:
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
escapyde-0.2.1.tar.gz
(6.6 kB
view hashes)