
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
A Python library for creating and applying full-color, linear, and circular gradients to text with easy color management.
A Python library for creating and applying full-color, linear, and circular gradients to text with easy color management. Includes utilities for ANSI styling, colored prints, and more.
pip install richstyle
Basic Styling
from richstyle import bold, italic, underline, strikethrough
print(bold("Bold text"))
print(italic("Italic text"))
print(underline("Underlined text"))
print(strikethrough("Strikethrough text"))
Bullet Lists
from richstyle import bullet_list, bold
tasks = [
"Complete report",
"Send email to client",
"Buy groceries"
]
print(bold("Task List:"))
print(bullet_list(*tasks))
Colors and Gradients
from richstyle import presets, foreground, background
print(foreground(presets.red, "Red text"))
print(background(presets.blue, "Text with blue background"))
Colors and Gradients
from richstyle import presets, foreground, background
print(foreground(presets.red, "Red text"))
print(background(presets.blue, "Text with blue background"))
Rainbow Text
from richstyle import rainbow_text
print(rainbow_text("This is a rainbow text message."))
Utility Prints
from richstyle import info, success, warn, error, timed_print
info("This is an informational message.")
success("This is a success message.")
warn("This is a warning message.")
error("This is an error message.")
timed_print("This is a timed print message.")
Mutable Print
from richstyle import mutable_print
from time import sleep
mutable = mutable_print("Loading")
sleep(1)
mutable("Still loading...")
sleep(1)
mutable("Done!\n")
[!WARNING]
You can only use a mutable print when it's the last print.
See the examples/
directory for more usage examples.
This project is licensed under the MIT License
.
FAQs
A Python library for creating and applying full-color, linear, and circular gradients to text with easy color management.
We found that rich-style 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.