Skip to main content

Easy to use console prints with colors. clrc.info(), clrc.success() etc

Project description

CLRC - easy print with colors (clrc.info, clrc.warn, etc)

Description

I made this package for easy printing colored messages to output. Under the hood - print function with usage of colorama (https://github.com/tartley/colorama) package colors.

Why? I wanted the simpliest way possible to import package - start right after with colored messages. All functions inside this package satisfy my and possible yours basic needs for colored output

Installation

pipenv install clrc

or

pip install clrc

Usage

You can pass additional *args like in plain print()

import clrc

# Available functions

clrc.info()
clrc.warn()
clrc.success()
clrc.error()
clrc.danger()

# Example:

clrc.error("This is error", True, 2, False, 43.2)

Update Log

0.0.3 - 16.03.2019

- Reformatted code, now using AbstractPrinter and printers instead of raw using of print function
- Now there is way to attach Loguru via LoguruPrinter

Licence

See licence file inside repository. But basically it's good old MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for clrc, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size clrc-0.0.5.tar.gz (2.6 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page