Skip to main content

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} ...]]

Metadata

Release files for simple-colors 0.1.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for simple-colors 0.1.5
File Interpreter ABI Platform
simple_colors-0.1.5-py3-none-any.whl Python 3 none any Details

Release files / simple_colors-0.1.5-py3-none-any.whl

Download URL simple_colors-0.1.5-py3-none-any.whl
Size 2.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e4ce007a2b9f10141282fa0af21b61e071a1b0794f52367a1fe9b31338e65a35
BLAKE2b-256 checksum
How to use checksums
0f07e6710827a51f6bb5ef671f84db98275b122ae3e382726041c823bead1a84
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/28.8.0 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.6.1

Release history Release notifications | RSS feed

This release

0.1.5 This release

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page