This python library will be useful for you to print beautiful colored texts with decorations and other utilities.
How to Usage
Install Library
pip install mgprint
Import Library
importmgprint# orfrommgprintimport*
Syntax 'mg' and examples
Font color
Background colors
Text decorations
Some functions puts the reset char by default.
Usage
frommgprintimport*# Combine flagsmprint("%Rw% WARNING[!] %;r% Undefinded values...")
mprint("%g*%[SUCCESS]%;m% Process finished")
mprint("%Bw_% Links ")
# Print all text of red since this pointmprint("%r%Red text%;%", True)
print("No styled text")
mprint("%r%Red text forever...", True) # don't put reset charprint("This")
print("text")
print("is")
print("red")
# Resetmreset()
print("Normal print")
# Print an bannerprintHead("Hello world!", 50)
# You can replace '%' to '&' eventuallymprint("&g&Value: &;y& %d\n"% (5.3))
Output
Functions
Name
Description
mprint(str string, bool strict=False)
Print string using mg syntax and if strict is true doesn't put reset char.
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.