Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 :smile: 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyansiescapes-0.0.1.dev61.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyansiescapes-0.0.1.dev61-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

Details for the file pyansiescapes-0.0.1.dev61.tar.gz.

File metadata

  • Download URL: pyansiescapes-0.0.1.dev61.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyansiescapes-0.0.1.dev61.tar.gz
Algorithm Hash digest
SHA256 5dc4307257bf266582d516eea8b17c33e96c218b62ad6d84c574a5dc1cf96cde
MD5 88bef9b39ab294186b61c8af72558fbb
BLAKE2b-256 088a83e8f98cfd76f83486d5f4f10908730878dc49f83dcc414e7f94d24aa234

See more details on using hashes here.

File details

Details for the file pyansiescapes-0.0.1.dev61-py3-none-any.whl.

File metadata

  • Download URL: pyansiescapes-0.0.1.dev61-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.3

File hashes

Hashes for pyansiescapes-0.0.1.dev61-py3-none-any.whl
Algorithm Hash digest
SHA256 73b5985f7b9c4214f1f29f1855b8462b28bf64288fdd542f95c231fb689b3fc3
MD5 d1417d54ff3fb1a1da88189dfdaedbba
BLAKE2b-256 0ea37087ec193f9c0dec3b9792795125771755a6c87baa5d3ec09622fd40cf50

See more details on using hashes here.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page