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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev1.tar.gz
  • Upload date:
  • Size: 1.9 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.dev1.tar.gz
Algorithm Hash digest
SHA256 244e3cd99df8aa19ae3b3d1c541997e4229391c01681c4a1c15ebea29548e3d8
MD5 8b84ddc94b1cf63bfa209b75b2da8e7c
BLAKE2b-256 8863738743c238fd3aece45320c5932597d3aa476c8b88cd2aa2af40f6667cf9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyansiescapes-0.0.1.dev1-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.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 850b85dfa2b753130cbb6024a56e7ac1e2dfe46fb0a4089f1117c15140f425f2
MD5 82b242613e443ec69e35a708e9e16a91
BLAKE2b-256 fb1c52eb2423fbcad4eea3ecc45bb77678e44677bb3251ac8e94ab2c5d4fc5e2

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