Skip to main content

A lightweight Python package for colorful output at the command line.

Project description

color50

A lightweight Python package for colorful output at the command line.

Created as a final project submission for Harvard University's CS50P course, color50 is a package I designed to add a little extra flavor to standard output print statements. This is my first ever attempt at making a Python package from scratch, and I'm excited to share it with fellow Python developers and CS50 students.

Included modules

  • color
    • Color class
  • core_functions
    • rgb function
    • hexcode function
    • css function
    • colorize function (decorator)
  • colorstr
    • ColorStr class
  • constants

Installation

To install color50, execute the following command using the pip installer:

pip install color50

Sample usage

With color50 installed, the following code would print "Hello, World!" to standard output as purple-colored text.

from color50 import rgb, constants

my_color = rgb(128, 0, 128)
print(my_color + "Hello, World!" + constants.RESET)

For more detailed information on using color50 in your Python projects, please refer to the documentation at color50.readthedocs.io.

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

color50-1.0.1.tar.gz (12.0 kB view hashes)

Uploaded Source

Built Distribution

color50-1.0.1-py3-none-any.whl (14.2 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