v2e4lisp / termcolor2

simple wrapper for termcolor (cli colored stirng)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A simple wrapper for termcolor

install

pip install termcolor2

useage

from termcolor2 import c

# termcolor2
print c("hello").red.on_white.blink.underline.dark

# ---  this is equal to the following ---

# termcolor
print colored("hello", "red", "on_white", ["blink", "underline", "dark"])

About

simple wrapper for termcolor (cli colored stirng)

License:MIT License


Languages

Language:Python 100.0%