Skip to main content

This module can colorize any text in your terminal

Project description

PaintPrint

This module can colorize any text in your terminal

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!")

All functions

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.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

PaintPrint-1.0.3-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file PaintPrint-1.0.3.tar.gz.

File metadata

  • Download URL: PaintPrint-1.0.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Windows/10

File hashes

Hashes for PaintPrint-1.0.3.tar.gz
Algorithm Hash digest
SHA256 ce5340a3708c15c3085d9f59343beda375c8969af3cdefbff76384d85226f273
MD5 cd661ba2846f3363375323a31c5d5eab
BLAKE2b-256 973e6f9e27550a8d4aaf4dce0e9bcda68e9610be10ec8d23e692c13295c7214c

See more details on using hashes here.

File details

Details for the file PaintPrint-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: PaintPrint-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.8 CPython/3.9.5 Windows/10

File hashes

Hashes for PaintPrint-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 42b1817ada95e9b1616869642c077484b184aa6e0e635774e6203c30f970cc53
MD5 a87ae150d2730a9196bf4f89f69af596
BLAKE2b-256 40311fc79800d1ccb6a5c8c84966359c903d5eb4ace49a13ab7498a68016e8ec

See more details on using hashes here.

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