Skip to main content

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

Metadata

Release files for markable 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for markable 1.0.1
File Size Uploaded
markable-1.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for markable 1.0.1
File Interpreter ABI Platform
markable-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.7 kB

Release files / markable-1.0.1.tar.gz

Download URL markable-1.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
577bacf1eb247cc942f21bdf69b3137a32f74f3a2956e8fce912bbe49b588d67
BLAKE2b-256 checksum
How to use checksums
b2120008890dec217e038fd1a27dfeeb380a238c124ce759ec6f67743d22e990
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / markable-1.0.1-py3-none-any.whl

Download URL markable-1.0.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
01c71074f76414e3485e8caacd338ec027554c049159e7e95be92f5fa8addc87
BLAKE2b-256 checksum
How to use checksums
38daa348254c8d34e033f41f4bf038bd96563b8be393cf0859ead94ce295e8bb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page