gituser/docker_multiarch/: pastel-0.2.1 metadata and description
Bring colors to your terminal.
| author | Sébastien Eustace |
| author_email | sebastien@eustace.io |
| classifiers |
|
| description_content_type | text/x-rst |
| license | MIT |
| project_urls |
|
| 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
|
|
Pastel is a simple library to help you colorize strings in your terminal.
It comes bundled with predefined styles:
info: green
comment: yellow
question: black on cyan
error: white on red
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