Skip to main content

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

Project description

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.

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.

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

pyansiescapes-0.0.1.dev57.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

pyansiescapes-0.0.1.dev57-py3-none-any.whl (16.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev57.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pyansiescapes-0.0.1.dev57.tar.gz
Algorithm Hash digest
SHA256 de8992f8d4bf6933cc914395c23b4f99b95df5c947661c28527d8f1ab98bf898
MD5 bfa0f6c0418d5e795fabffb9a32f1db2
BLAKE2b-256 6d442aff8cef8e3906951cd959a733d7ae646bbce99d56402cc8bfce8a2ec05e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev57-py3-none-any.whl
  • Upload date:
  • Size: 16.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2

File hashes

Hashes for pyansiescapes-0.0.1.dev57-py3-none-any.whl
Algorithm Hash digest
SHA256 cfe952f995332c7b18d26d8404f92dd462c6248cb56f5e084dc84680e6ba4ab7
MD5 8b942a00d98719616bc625f23c1bcc63
BLAKE2b-256 c1a951cd5d5e1ff20cdef976826238174081a3fc3040641d9f7b28817ef13f89

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