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.

Source Distribution

clrc-0.0.6.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

clrc-0.0.6-py3-none-any.whl (5.1 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