Skip to main content

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:
Formatting Samples

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:
message Sample

Format message without printing directly to console

msg = color_fi.format_message('Test Message', 'red', 'foreground', 'invert')
print(msg)

Output as png:
message Sample

Project details


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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

Color_Fi-1.0.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file Color-Fi-1.0.2.tar.gz.

File metadata

  • Download URL: Color-Fi-1.0.2.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for Color-Fi-1.0.2.tar.gz
Algorithm Hash digest
SHA256 205a7d99f1a217e1fb52959297ac116c9721f1b22022597ec42863dd4e7082c9
MD5 45536efee0872fffcfe91ce65b3f478c
BLAKE2b-256 48af1bbb8e03f4f6ef08b339406199110a50e346f050be28cdd94582995308d5

See more details on using hashes here.

File details

Details for the file Color_Fi-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: Color_Fi-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.9.12

File hashes

Hashes for Color_Fi-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f69ff7c329093c5af56e4a5887ec90843e140c9be559bc54dc6802b1eea68362
MD5 a43a6be6d9cea8b58a34dea64e8fe49a
BLAKE2b-256 1874f9651e0668519fd40c0aced16f551c7f053c8519b914d8ddb05ff385a09d

See more details on using hashes here.

Supported by

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