Repository navigation
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
tytype-checking errors in dynamic color, background, style, and icon helpers - Aligned dynamic method registration with the
FormatTargetprotocol
Compatibility
- No breaking changes
- No migration required
For full details, see CHANGELOG.md.