gituser/test_manylinux/: pastel-0.2.1 metadata and description

Homepage Simple index

Bring colors to your terminal.

author Sébastien Eustace
author_email sebastien@eustace.io
classifiers
  • License :: OSI Approved :: MIT License
  • Programming Language :: Python :: 2
  • Programming Language :: Python :: 2.7
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.4
  • Programming Language :: Python :: 3.5
  • Programming Language :: Python :: 3.6
  • Programming Language :: Python :: 3.7
  • Programming Language :: Python :: 3.8
  • Programming Language :: Python :: 3.9
description_content_type text/x-rst
license MIT
project_urls
  • Repository, https://github.com/sdispater/pastel
requires_python >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
File Tox results History
pastel-0.2.1-py2.py3-none-any.whl
Size
6 KB
Type
Python Wheel
Python
2.7

Pastel is a simple library to help you colorize strings in your terminal.

It comes bundled with predefined styles:

https://raw.githubusercontent.com/sdispater/pastel/master/assets/screenshot.png

Features

  • Use predefined styles or add you own.

  • Disable colors all together by calling with_colors(False).

  • Automatically disables colors if the output is not a TTY.

  • Used in cleo.

  • Supports Python 2.7+, 3.5+ and PyPy.

Usage

>>> import pastel
>>> print(pastel.colorize('<info>Information</info>'))
'Information'  # Green string by default
>>> print(pastel.colorize('<fg=red;options=bold>This is bold red</>'))
'This is bold red'

Installation

pip install pastel