Skip to main content

Color Markup In Python!

Project description

pycolor2

Installation:

For Windows:

pip install pycolor2 --upgrade

For MacOS and Linux:

pip3 install pycolor2 --upgrade

Usage Examples:

from pycolor2 import color


# Colorful Text

print(color("green", "Hello World")) # print "Hello World" in green
print(color("l-red", "This is light red!")) # print "This is light red!" in light red

# Background Colors

print(color("bg-cyan", "This has a cyan background!")) # prints text with a cyan background
print(color("bg-green", "This has a green background!")) # prints text with green background

A list of all available colors:

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

you can prefix "l-" to any color to make it light.

you can also prefix "bg-" to any color to make it background.

for a light background, you can use "l-bg-" as a prefix.

NOTE: there isn't a "l-" prefix for white.

License: The MIT License (MIT)

By github.com/0Exe

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

pycolor3-0.0.3.tar.gz (2.8 kB view hashes)

Uploaded Source

Built Distribution

pycolor3-0.0.3-py3-none-any.whl (3.1 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