Skip to main content

gprint

PyPI - License Mantainer Maintenance PyPI - 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, return_me)

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.

0.0.4
- Fixed problem with rainbow_mode, now it should work with new_line.
- Fixed problem with "RANDOM" string as color, nowit should work faster and with other flags.
- Added new function to get random color, the program now should work faster.

0.0.5
- Updated code with better syntax.
- Now runs faster than ever.

0.0.6
- Fixed bug with new line on rainbow mode.

0.0.7
- Fixed error if a string is provided in rgb.
- Added error handling.

0.0.8
- Updated and checked compatibility with python 3.10

0.0.9 - Updated test - Updated compability with Python 3.11

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gprint-0.0.9-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gprint-0.0.9.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gprint-0.0.9.tar.gz
Algorithm Hash digest
SHA256 90b51827d847ba1714146567453b9ab9a29099b8aca3974cecebfe5b499c3f1e
MD5 f8de41ef43de8f8df37ddc57f385eda0
BLAKE2b-256 2005424cd174510cbdefe7b7d4bdefc0d004fefcf6926f8a664e40051dc77f9f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: gprint-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for gprint-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 736b444971493aa77e5173de4e7cbac736abfa63cec72f7e75db3381b636506f
MD5 8af89075dd2281a52778841f214ccc32
BLAKE2b-256 747b71b7a0fb1bb8dc648569a4e5fad3ac658fa220fd17cc61370210c7d68a6b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page