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.dev56.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

pyansiescapes-0.0.1.dev56-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev56.tar.gz
  • Upload date:
  • Size: 2.0 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.dev56.tar.gz
Algorithm Hash digest
SHA256 013d3b663d61919f0eef5517ac19498175761e93fa1ca07066d88420dfff2525
MD5 b0ff65869ac38985ee2ea0ea0c4d66c1
BLAKE2b-256 d29f2b928ab0accebb91e7d3cb01af7cf3d99750a9bb1b7d0aff762e662a4422

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev56-py3-none-any.whl
  • Upload date:
  • Size: 2.6 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.dev56-py3-none-any.whl
Algorithm Hash digest
SHA256 12c674f432eb794f15353e63545e7f4241683aa2a7d5a28e227325ea451b8108
MD5 a48113f88010d74ae771d79bdc24ea3a
BLAKE2b-256 33ea5e12e346ca09cff00257db475a439a988eb2f6e6efe65bc8901ba3c69830

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