blessed 1.53.0


pip install blessed

  Latest version

Released: Nov 20, 2026


Meta
Author: Jeff Quast, Erik Rose, Avram Lubkin
Requires Python: >=3.9

Classifiers

Intended Audience
  • Developers

Natural Language
  • English

Development Status
  • 5 - Production/Stable

Environment
  • Console
  • Console :: Curses

Operating System
  • POSIX
  • Microsoft :: Windows

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14
  • Python :: 3.15

Topic
  • Software Development :: Libraries
  • Software Development :: User Interfaces
  • Terminals

Typing
  • Typed
Downloads codecov.io Code Coverage Windows supported Linux supported MacOS supported BSD supported

Introduction

Blessed is an easy, practical library for making terminal apps, by providing an elegant, well-documented interface to Colors, Keyboard input, and screen position and Location capabilities.

from blessed import Terminal

term = Terminal()

print(term.home + term.clear + term.move_y(term.height // 2))
print(term.black_on_darkkhaki(term.center('press any key to continue.')))

with term.cbreak(), term.hidden_cursor():
    inp = term.inkey()

print(term.move_down(2) + 'You pressed ' + term.bold(repr(inp)))
Animation of running the code example

It’s meant to be fun and easy, to do basic terminal graphics and styling with Python using blessed. Terminal is the only class you need to import and the only object you should need for Terminal capabilities.

Whether you want to improve CLI apps with colors, or make fullscreen applications or games, blessed should help get you started quickly. Your users will love it because it works on Windows, Mac, and Linux, and you will love it because it has plenty of documentation and examples!

Full documentation at https://blessed.readthedocs.io/en/latest/

Examples

animations of x11-colorpicker.py, bounce.py, worms.py, and plasma.py

x11-colorpicker.py, bounce.py, worms.py, and plasma.py demonstration programs from our repository.

colored and dimensional cellular automata in scrolling animation

cellestial.py demonstration program from our repository.

Exemplary 3rd-party examples which use blessed,

Screenshot of 'Voltron' (By the author of Voltron, from their README).

Voltron is an extensible debugger UI toolkit written in Python

Animation of 'cursewords' (By the author of cursewords, from their README).

cursewords is “graphical” command line program for solving crossword puzzles in the terminal.

Animations from 'Dashing' (By the author of Dashing, from their README)

Dashing is a library to quickly create terminal-based dashboards.

Animations from 'Enlighten' (By the author of Enlighten, from their README)

Enlighten is a console progress bar library that allows simultaneous output without redirection.

Requirements

Blessed works with Windows, Mac, Linux, and BSD’s, on Python 3.9+.

Brief Overview

Blessed is more than just a Python wrapper around curses:

  • Styles, Colors, and maybe a little positioning without necessarily clearing the whole screen first.

  • Works great with Python’s new f-strings or any other kind of string formatting.

  • Provides up-to-the-moment Location and terminal height and width, so you can respond to terminal size changes.

  • Avoids making a mess if the output gets piped to a non-terminal, you can output sequences to any file-like object such as StringIO, files, pipes or sockets.

  • Uses terminfo(5) so it works with any terminal type and capability: No more C-like calls to tigetstr and tparm.

  • Non-obtrusive calls to only the capabilities database ensures that you are free to mix and match with calls to any other curses application code or library you like.

  • Provides context managers Terminal.fullscreen() and Terminal.hidden_cursor() to safely express terminal modes, curses development will no longer fudge up your shell.

  • Act intelligently when somebody redirects your output to a file, omitting all of the special sequences colors, but still containing all of the text.

Blessed is a fork of blessings, which does all of the same above with the same API, as well as following enhancements:

Before And After

With the built-in curses module, this is how you would typically print some underlined text at the bottom of the screen:

from curses import tigetstr, setupterm, tparm
from fcntl import ioctl
from os import isatty
import struct
import sys
from termios import TIOCGWINSZ

# If we want to tolerate having our output piped to other commands or
# files without crashing, we need to do all this branching:
if hasattr(sys.stdout, 'fileno') and isatty(sys.stdout.fileno()):
    setupterm()
    sc = tigetstr('sc')
    cup = tigetstr('cup')
    rc = tigetstr('rc')
    underline = tigetstr('smul')
    normal = tigetstr('sgr0')
else:
    sc = cup = rc = underline = normal = ''

# Save cursor position.
print(sc)

if cup:
    # tigetnum('lines') doesn't always update promptly, hence this:
    height = struct.unpack('hhhh', ioctl(0, TIOCGWINSZ, '\000' * 8))[0]

    # Move cursor to bottom.
    print(tparm(cup, height - 1, 0))

print(f'This is {underline}underlined{normal}!')

# Restore cursor position.
print(rc)

The same program with Blessed is simply:

from blessed import Terminal

term = Terminal()
with term.location(0, term.height - 1):
    print('This is ' + term.underline('underlined') + '!', end='')
1.53.0 Nov 20, 2026
1.52.0 Oct 20, 2026
1.51.0 Oct 15, 2026
1.50.0 Sep 14, 2026
1.49.0 Aug 31, 2026
1.48.0 Aug 07, 2026
1.47.0 Jul 09, 2026
1.46.0 Jul 03, 2026
1.45.0 Jun 29, 2026
1.44.0 May 24, 2026
1.43.0 May 23, 2026
1.42.0 May 20, 2026
1.41.0 May 19, 2026
1.40.0 May 19, 2026
1.39.0 May 04, 2026
1.38.0 Mar 30, 2026
1.37.0 Mar 28, 2026
1.36.0 Mar 28, 2026
1.35.0 Mar 27, 2026
1.34.0 Mar 26, 2026
1.33.0 Mar 07, 2026
1.32.0 Feb 28, 2026
1.31.0 Feb 28, 2026
1.30.0 Feb 06, 2026
1.29.0 Feb 01, 2026
1.28.0 Jan 27, 2026
1.27.0 Jan 20, 2026
1.26.0 Jan 19, 2026
1.25.0 Nov 18, 2025
1.24.0 Nov 16, 2025
1.23.0 Nov 03, 2025
1.22.0 Sep 15, 2025
1.21.0 Apr 26, 2025
1.20.0 Feb 04, 2023
1.19.1 Jan 20, 2022
1.19.0 Sep 21, 2021
1.18.1 Jun 14, 2021
1.18.0 Feb 25, 2021
1.17.12 Nov 28, 2020
1.17.11 Oct 14, 2020
1.17.10 Aug 23, 2020
1.17.9 Jul 28, 2020
1.17.8 Jun 08, 2020
1.17.7 Jun 07, 2020
1.17.6 May 25, 2020
1.17.5 Apr 26, 2020
1.17.4 Mar 23, 2020
1.17.3 Mar 20, 2020
1.17.2 Feb 03, 2020
1.17.1 Feb 02, 2020
1.17.0 Jan 18, 2020
1.16.1 Oct 22, 2019
1.16.0 Oct 18, 2019
1.15.0 Jun 20, 2018
1.14.2 Mar 26, 2017
1.14.1 Dec 21, 2015
1.14.0 Nov 08, 2015
1.13.0 Nov 08, 2015
1.12.0 Oct 13, 2015
1.11.0 Oct 10, 2015
1.10.0 Oct 03, 2015
1.9.5 Jan 04, 2015
1.9.4 Sep 07, 2014
1.9.3 Sep 01, 2014
1.9.2 Aug 24, 2014
1.9.1 Jun 29, 2014
1.9.0 Jun 29, 2014
1.8.9 Jun 08, 2014
1.8.8 May 18, 2014
1.8.7 May 18, 2014
1.8.6 May 04, 2014
1.8.5 Apr 28, 2014
1.8.4 Apr 05, 2014
1.8.3 Apr 02, 2014
1.8.2 Mar 26, 2014
1.8.1 Mar 25, 2014
1.8 Mar 25, 2014
1.7 Mar 24, 2014

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
wcwidth (>=0.9.4)
jinxed (<3,>=2.1.1)