Skip to main content

Bring colors to your terminal.

Project description

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


  • 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.


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


pip install pastel

Project details

Release history Release notifications

This version
History Node


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pastel-0.1.0-py3-none-any.whl (6.7 kB) Copy SHA256 hash SHA256 Wheel py3
pastel-0.1.0.tar.gz (4.5 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page