This module can colorize any text in your terminal
Project description
PaintPrint
This module can colorize any text in your terminal
Author: tankalxat34
Installing
pip install PaintPrint
Quick start
Hello world
This is a simple hello world:
from PaintPrint import *
bprint("Hello world!",
FORMATTING.BOLD,
FOREGROUND.RED,
BACKGROUND.GREEN)
In your console you can see something like this:
Unreadable symbols
If you see incomprehensible symbols instead of colors in the console, perform this function at the beginning of your code:
from PaintPrint import *
neutralizeColorProblem()
Templates
In this module you can use some templates for beautiful print on terminal:
from PaintPrint import *
bprint("TEMPLATES",
FORMATTING.BORDERED,
FORMATTING.BOLD,
FOREGROUND.MAGENTA,
BACKGROUND.WHITE)
print("Template for links: " + bformat("python.org", TEMPLATE.URL))
bprint("This is a `positive` template", TEMPLATE.POSITIVE)
bprint("\tAnd this is a `negative`", TEMPLATE.NEGATIVE)
print("You also can write " + bformat("yes", TEMPLATE.YES) + " and " + bformat("no", TEMPLATE.NO) + " like here")
print("If you like " + bformat("black and white", TEMPLATE.BLACKWHITE1) + " or " + bformat("white and black", TEMPLATE.BLACKWHITE2) + " you can using special templates!")
Result:
All functions
Open test file and perform in your PC. You will see something like this:
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
PaintPrint-1.0.5.tar.gz
(3.7 kB
view hashes)
Built Distribution
Close
Hashes for PaintPrint-1.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2b3f91bc09b19d6ae913bcb0a3c05f97910cd8daefb6385a08ffa260fc1a172 |
|
MD5 | 138b4f405cf2f69998c4cdface7a8961 |
|
BLAKE2b-256 | 3bd8d3a36bcef80480418846a15bd2bd7046443c87dd4f4666a51ff1b68cb026 |