Print out colorful text.
Project description
MARKABLE
Aim:
- Render text in terminal
- HEX color tag string. e.g.
'#ff00ff'
- RGB tuple. e.g.
(255, 0, 255)
- HEX color tag string. e.g.
- Render single/multiple lines
- Global trigger
How to use:
Note: Marker.print() method inherited few parameters from print(
end='\n'
,flush=False
,file=sys.stdout
)
- Proceed a single line:
from markable import Marker
Marker.print(line='Hello World!', fg='#ff0000') # case-insensitive
Marker.print(line='Hello World!', fg=(255, 0, 0))
- Proceed a multiple lines:
from markable import Marker
Marker.set_color(bg='#ffff00') # set start point
print('SOMETHING') # do
print('TEST') # somethin
print('DEBUG') # here
Marker.reset_color() # reset to default
- Global trigger:
from markable import Marker
Marker.SWITCH = False
If you like my work, please consider buying me a coffee or PayPal Thanks for your support! Cheers! 🎉
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
markable-1.0.1.tar.gz
(3.8 kB
view hashes)