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

Metadata

Release files for gprint 0.0.9

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gprint 0.0.9
File Size Uploaded Provenance Actions
gprint-0.0.9.tar.gz 6.2 kB Without provenance Details for gprint-0.0.9.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for gprint 0.0.9
File Interpreter ABI Platform Actions
gprint-0.0.9-py3-none-any.whl Python 3 none any Details for gprint-0.0.9-py3-none-any.whl

Total release size: 12.9 kB

Release files / gprint-0.0.9.tar.gz

Download URL gprint-0.0.9.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
90b51827d847ba1714146567453b9ab9a29099b8aca3974cecebfe5b499c3f1e
BLAKE2b-256 checksum
How to use checksums
2005424cd174510cbdefe7b7d4bdefc0d004fefcf6926f8a664e40051dc77f9f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Release files / gprint-0.0.9-py3-none-any.whl

Download URL gprint-0.0.9-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
736b444971493aa77e5173de4e7cbac736abfa63cec72f7e75db3381b636506f
BLAKE2b-256 checksum
How to use checksums
747b71b7a0fb1bb8dc648569a4e5fad3ac658fa220fd17cc61370210c7d68a6b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.1

Security for gprint 0.0.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page