Skip to main content

Colorful output in terminal

Project description

Simple Colors

Colorful output in terminal.

Installation

pip install simple-colors

Usage

from simple_colors import *

print(green('hello'))
print(green('hello', 'bold'))
print(green('hello', ['bold', 'underlined']))

Inlucded colors

  • black
  • red
  • green
  • yellow
  • blue
  • magenta
  • cyan

Included styles:

  • bold
  • bright
  • dim
  • italic
  • underlined
  • blink
  • reverse

CLI Usage

$ simple-colors -h
usage: simple-colors [-h]
                     [-s [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]]]
                     {black,red,green,yellow,blue,magenta,cyan} text

positional arguments:
  {black,red,green,yellow,blue,magenta,cyan}
  text                  text of file path

optional arguments:
  -h, --help            show this help message and exit
  -s [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]], --style [{bright,bold,dim,italic,underlined,blink,reverse} [{bright,bold,dim,italic,underlined,blink,reverse} ...]]

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

simple_colors-0.1.5-py3-none-any.whl (2.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page