Package Info

python-blessed


Wrapper around terminal styling, screen positioning, and keyboard input


Unspecified

Blessed is a thin, practical wrapper around terminal capabilities in Python.

Brief Overview

Blessed is a more simplified wrapper around curses, providing :

  • Styles, color, and maybe a little positioning without necessarily clearing the whole screen first.
  • Works great with standard Python string formatting.
  • Provides up-to-the-moment 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: outputs to any file-like object such as StringIO, files, or pipes.
  • Uses the terminfo(5)_ database so it works with any terminal type and supports any terminal capability: No more C-like calls to tigetstr_ and tparm_.
  • Keeps a minimum of internal state, so you can feel free to mix and match with calls to curses or whatever other terminal libraries you like.
  • Provides plenty of context managers to safely express terminal modes, automatically restoring the terminal to a safe state on exit.
  • Act intelligently when somebody redirects your output to a file, omitting all of the terminal sequences such as styling, colors, or positioning.
  • Dead-simple keyboard handling: safely decoding unicode input in your system's preferred locale and supports application/arrow keys.
  • Allows the printable length of strings containing sequences to be determined.

Blessed does not provide...

  • Windows command prompt support. A PDCurses_ build of python for windows provides only partial support at this time -- there are plans to merge with the ansi module in concert with colorama to resolve this.

License: MIT
URL: https://github.com/jquast/blessed

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
1.17.5-bp156.3.2 info GA Release 2023-07-24 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-blessed
1.17.5-bp155.2.12 info GA Release 2023-05-22 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-blessed
1.17.5-bp154.1.30 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python3-blessed
1.17.5-bp153.1.20 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-blessed
  • python3-blessed
1.17.5-bp152.1.1 info GA Release 2020-05-07 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-blessed
  • python3-blessed
1.15.0-bp151.1.3 info GA Release 2019-07-17 15 SP1
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • python2-blessed
  • python3-blessed