Skip to main content

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)
  • 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! 🎉 Buy Me A Coffee

Project details


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)

Uploaded Source

Built Distribution

markable-1.0.1-py3-none-any.whl (5.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page