Skip to content

v0.10.0

Latest

Choose a tag to compare

@realrazdev realrazdev released this 06 Sep 16:32
c9ea858

Highlights

intents()

Inspect semantic intent configuration directly from code:

from raztint import intents
print(intents("success"))

tint.preview()

Inspect terminal and RazTint configuration at a glance:

from raztint import tint
print(tint.preview())

tint.transient()

Show temporary terminal output that clears itself when done:

import time
from raztint import tint

with tint.transient("Working..."):
    time.sleep(2)
print("Done!")

case()

Render output based on application state, mapped to labels and intents:

from raztint import case

status = "done"
print(case(
    status,
    {
        "done": ("Done", "success"),
        "pending": ("Pending", "warning"),
    },
))

Under the hood

  • Improved type safety for dynamic method registration
  • Fixed ty type-checking errors in dynamic color, background, style, and icon helpers
  • Aligned dynamic method registration with the FormatTarget protocol

Compatibility

  • No breaking changes
  • No migration required

For full details, see CHANGELOG.md.