Skip to main content

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:

A screenshot of the example run on IPython on Windows.

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.0.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

escapyde-0.2.0-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page