Skip to main content

A fast way to print in color.

Project description

gprint

Mantainer Maintenance Python-version PyPI

gprint is a Python module that allows to print color on almost any terminal.

How to import

from gprint import *

Usage

gprint(message, rgb, new_line, rainbow_mode)

message = String with the text to be printed. rgb = A list of 3 Integers from 0 to 255 that represents every color on rgb scale, a color code (RED, BLUE....) can be used too. Defaults to "default" (white text). new_line = A boolean that represents if you want a new line after the printed text or not. Defaults to True. rainbow_mode = A boolean that allows the command to print every character from a pseudo-randomized color. Defaults to False. return_me = A boolean that allows to return of the colorized text instead of printing it directly (useful for other commands like input() ). Defaults to False.

Errors and contact

guillermo@guillerpsanchez.dev

Feel free to contact me at any time.

Changelog

0.0.1 - Initial release

0.0.2 - Added rainbow_mode - Added new_line

0.0.3 - Fixed problem with randomized colors. - Added return_me

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

gprint-0.0.3.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

gprint-0.0.3-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file gprint-0.0.3.tar.gz.

File metadata

  • Download URL: gprint-0.0.3.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for gprint-0.0.3.tar.gz
Algorithm Hash digest
SHA256 661272685655f22ef8c7d755a0c0859ec7046b2dd4cfdd5d67bd481928efb1fd
MD5 c999bc40fe132242687450ff44afc8cc
BLAKE2b-256 53ffe446ed8c0202f36e07b97e4c210db3043f1e321e2d1b7f48ee6864c52a2b

See more details on using hashes here.

File details

Details for the file gprint-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: gprint-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 5.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for gprint-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f9f424500b45c880bde0b53d6802e2b18872c3ec909ec5c646bd576a05174ba1
MD5 79dc24676dc7b08be3ce07669a15e3f7
BLAKE2b-256 17fc9b175806487ce3eb1364d8b8958d56d2757a3e92c9818c0093d2fef95ae3

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