Skip to main content

A modern module for colored output.

Project description

tests PyPI - Downloads License PyPI - Version CodeFactor

ExenColor

A modern module for colored output.

Installation

The module is available for installation from PyPI via pip:

$ pip install exencolor

Examples

Foreground

from exencolor import colored, Color

print(colored("Hello World!", foreground=Color.GREEN))

output

Background

from exencolor import colored, Color

print(colored("Hello World!", background=Color.BLUE))

output

Decorations

from exencolor import colored, Decoration

print(colored("Hello World!", decoration=Decoration.UNDERLINE))

output

from exencolor import colored, Decoration

print(colored("Hello World!", decorations=[Decoration.UNDERLINE, Decoration.BOLD]))

output

Combined

from exencolor import colored, Decoration, Color

print(colored("Hello World!", foreground=Color.BRIGHT_CYAN, background=Color.BRIGHT_YELLOW, decoration=Decoration.UNDERLINE))

output

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

exencolor-1.1.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

exencolor-1.1.3-py3-none-any.whl (3.5 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