
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Print Color is a minimalist approach to terminal color printing in Python. It is a wrapper around the print()
function, and simply allows you to provide extra optional parameters such as:
tag
tag_color
or tag_colour
color
or colour
background
format
It aims to be a customizable logger for your applications, and makes formatting warnings, info messages and errors a breeze.
This project has no dependencies, apart from pytest
for testing.
Check out this project on PyPi here.
Colors:
purple
blue
green
yellow
red
magenta
cyan
white
black
tag
tag_color
or tag_colour
color
or colour
background
format
pip3 install print-color
from print_color import print
print("Hello world", tag='success', tag_color='green', color='white')
print("Error detected", tag='failure', tag_color='red', color='magenta')
print("Printing in color", color='green', format='underline', background='grey')
Feel free to add or improve this project :) Just create a pull request and explain the changes you propose. Note that as this is a very simple project, feature requests should be kept minimal - things like more colors, formats etc would be ideal.
Built with Python Poetry.
FAQs
A simple package to print in color to the terminal
We found that print-color demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.