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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file escapyde-0.2.0.tar.gz.

File metadata

  • Download URL: escapyde-0.2.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.2 Linux/5.11.0-1025-azure

File hashes

Hashes for escapyde-0.2.0.tar.gz
Algorithm Hash digest
SHA256 6714a0a06e0e56b99aa1a59fc8448532236d91722d61f71d479d16d3e10661e6
MD5 4568722a6d82391c4e7ba8afe34ea52e
BLAKE2b-256 c37a5c0ecb8eb0fb94ee1292dea2f0554701de2027c109dde62038687b50d9a6

See more details on using hashes here.

File details

Details for the file escapyde-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: escapyde-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.8.2 Linux/5.11.0-1025-azure

File hashes

Hashes for escapyde-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0bc3d31d3fe738e33b1b7c01358afa33eeba9c7728def380761804d57497915c
MD5 6cff3c9751e2422b365140e2c7f52ead
BLAKE2b-256 513dffb0de4402cdb56c34d5ba27ecfd1d05c622d968bdba7ac43d588c093ba1

See more details on using hashes here.

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