A thin, practical wrapper around terminal capabilities in Python

Coding with Blessings looks like this…

from blessings import Terminal

t = Terminal()

print(t.bold('Hi there!'))
print(t.bold_red_on_bright_green('It hurts my eyes!'))

with t.location(0, t.height - 1):
    print('This is at the bottom.')

Or, for byte-level control, you can drop down and play with raw terminal capabilities:

print('{t.bold}All your {t.red}bold and red base{t.normal}'.format(t=t))
print(t.wingo(2))

Full API Reference

The Pitch

Blessings lifts several of curses‘ limiting assumptions, and it makes your code pretty, too: