Skip to main content

Color Markup In Python!

Project description

pycolor3

Installation:

For Windows:

pip install pycolor3 --upgrade

For MacOS and Linux:

pip3 install pycolor3 --upgrade

Usage Examples:

from pycolor3 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.6.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

pycolor3-0.0.6-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file pycolor3-0.0.6.tar.gz.

File metadata

  • Download URL: pycolor3-0.0.6.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for pycolor3-0.0.6.tar.gz
Algorithm Hash digest
SHA256 c22f477e3ba459d6eb1920e8b8478970b1ae9a6d006739343ba155b2169ab9e5
MD5 84dcc8a46602fe159b812245546c7501
BLAKE2b-256 89c1e42e682e57285cb4a17282157441761a5c2c963e19e54f17348f81c9003e

See more details on using hashes here.

File details

Details for the file pycolor3-0.0.6-py3-none-any.whl.

File metadata

  • Download URL: pycolor3-0.0.6-py3-none-any.whl
  • Upload date:
  • Size: 3.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.8

File hashes

Hashes for pycolor3-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 821c04bba3b0b2e1e2230bfe7e53fb754c8e251810a3fc673098e6e35b46e9e1
MD5 4dede21e155c771000c9078596d633f5
BLAKE2b-256 38e86d391153dad6f4dcf07b5d70eac9ba673707f477947133a448b9668550fb

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