Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

print in color easily!

Project description

Orchid66: print colorful stuff nicely

version tag pypi tag

yeah just, print colorful stuff nicely

Note: currently only supports linux

example:

from orchid66 import printn

printn("this is in *red*, and this is in *blue*", ('red', 'blue'))
printn("I like *green* && *blue*", ('green', 'blue'))

green_in_blue = ('green', 'blue')

# notice tuple in tuple in second parameter
printn("I like *green in blue*", (green_in_blue,))

# with tuples
red =  (255, 0, 0)
blue = (50, 50, 255)
green = (50, 255, 50)
printn('this word is in *red*, and this is in *blue*', (red, blue))

example output

example gif:

usage gif

installation

through pypi

pip install orchid66

by cloning the repository

  1. clone this repository
  2. change the current directory into this repository
  3. execute pip install .

supported colors

all X11 colors in https://web.archive.org/web/20080502201401/http://cvsweb.xfree86.org/cvsweb/*checkout*/xc/programs/rgb/rgb.txt?rev=1.1

orchid66s' mini language

text between * is rendered as colored, except when preceded by a &

&* refers to a single * that is rendered

&& refers to a single & that is rendered

Project details


Download files

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

Files for orchid66, version 1.1.6
Filename, size File type Python version Upload date Hashes
Filename, size orchid66-1.1.6-py3-none-any.whl (9.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size orchid66-1.1.6.tar.gz (9.9 kB) File type Source Python version None Upload date Hashes View hashes

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