idchlife / clrc

Simple Python package to print colorized messages as simple as clrc.info, clrc.warn etc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Simple Python package to print colorized messages as simple as clrc.info, clrc.warn etc

License:MIT License


Languages

Language:Python 100.0%