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:
Release files for paintprint 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| PaintPrint-1.0.6.tar.gz | 3.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| PaintPrint-1.0.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 7.7 kB
Release files / PaintPrint-1.0.6.tar.gz
| Download URL | PaintPrint-1.0.6.tar.gz |
|---|---|
| Size | 3.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a80a7fc0ba870aa4d6f4bc692b5d568a1f8f2007670a96888a94ff78c05806b6
|
|
BLAKE2b-256 checksum How to use checksums |
187fee864d3e802ea72127c27dbde81b3141e31423c28e463a5a8965e619fe76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5 Windows/10
|
Release files / PaintPrint-1.0.6-py3-none-any.whl
| Download URL | PaintPrint-1.0.6-py3-none-any.whl |
|---|---|
| Size | 3.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d399b20dc05011b898b8526e73ad288fc79239037c0ed317fbfa9fdf86f9efa
|
|
BLAKE2b-256 checksum How to use checksums |
dcf22020df3324aa17f27c8cf7b4ad10e4da166ee842b882ee18d1ece44f9cbd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.8 CPython/3.9.5 Windows/10
|