Color-Fi is a tool to color and format strings in python.
Project description
Color-Fi
Color-Fi is a tool to color and format strings in python to enhance user experience and to highlight important information so it does not go unnoticed.
Installation
Color-Fi is a python package which can be found on Python Package Index (PyPi). Run the following command to install:
pip install Color-Fi
Import Color-Fi into your projects
from ColorFi.color_fi import ColorFi
Usage
Display key options:
color_fi = ColorFi()
# Display key options:
color_fi.display_key_options()
Output:
Ground Options: foreground, background
Color Options: black, red, green, yellow, blue, magenta, cyan, white, bright-black, bright-red, bright-green, bright-yellow, bright-blue, bright-magenta, bright-cyan, bright-white
Formatting Options: reset, default, bold, dim, italic, underline, double-underline, slow-blink, rapid-blink, invert, hide, strike
Display all formatting options to help you choose what you want to use in your project:
# Display samples:
color_fi.display_all_formatting_options()
Output as a gif:
View selected formatting options on console
# print message to console with formatting options:
color_fi.print_message('Test Message', 'red', 'foreground', 'invert')
Output as png:
Format message without printing directly to console
msg = color_fi.format_message('Test Message', 'red', 'foreground', 'invert')
print(msg)
Output as png:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Color-Fi-1.0.2.tar.gz
(15.4 kB
view hashes)
Built Distribution
Color_Fi-1.0.2-py3-none-any.whl
(15.7 kB
view hashes)