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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file markable-1.0.1.tar.gz.

File metadata

  • Download URL: markable-1.0.1.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for markable-1.0.1.tar.gz
Algorithm Hash digest
SHA256 577bacf1eb247cc942f21bdf69b3137a32f74f3a2956e8fce912bbe49b588d67
MD5 57c65ff5b9fcdbf49393d6fbfcaca5c0
BLAKE2b-256 b2120008890dec217e038fd1a27dfeeb380a238c124ce759ec6f67743d22e990

See more details on using hashes here.

File details

Details for the file markable-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: markable-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.6

File hashes

Hashes for markable-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 01c71074f76414e3485e8caacd338ec027554c049159e7e95be92f5fa8addc87
MD5 d9806d86b1c72b049e74994f96825b9f
BLAKE2b-256 38daa348254c8d34e033f41f4bf038bd96563b8be393cf0859ead94ce295e8bb

See more details on using hashes here.

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