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 Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev0-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.dev0-py3-none-any.whl
Algorithm Hash digest
SHA256 8694b32eeb92769e3d8a82becff49aa0498dfd5ccd1c106509e0536d3efd60de
MD5 8fa8b22f25fd1e11e9e844ac7129b0e8
BLAKE2b-256 2d0c9bb9f78b82464e441239a3829089f46fa2683310dbc4612699c241e9c607

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