Metadata-Version: 2.1
Name: pastel
Version: 0.1.0
Summary: Bring colors to your terminal.
Home-page: https://github.com/sdispater/pastel
Author: Sébastien Eustace
Author-email: sebastien@eustace.io
License: MIT
Download-URL: https://github.com/sdispater/pastel/archive/0.1.0.tar.gz
Platform: UNKNOWN
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy

Pastel: Bring colors to your terminal
#####################################

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

.. image:: 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 <https://github.com/sdispater/cleo>`_.
* Supports Python **2.7+**, **3.5+** and **PyPy**.


Usage
=====

.. code-block:: python

    >>> 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``


