--- id: blessed version: "1.48.0" license: MIT license_treatment: permissive maintenance: active --- # blessed — Easy, practical library for making terminal apps, by providing an elegant, well-documented interface for Terminals. License: permissive · Maintenance: active · Downloads: 14.6M/mo ## What it is and what it does Blessed is a terminal UI library that abstracts away the complexity of low-level curses programming. Instead of juggling terminfo calls, terminal detection, and escape sequences, you import Terminal and call methods like term.bold(), term.color_rgb(), term.inkey(), and term.location() to style text, read keyboard input, and position the cursor. It handles the messy details: detecting whether output is piped to a file (and stripping sequences accordingly), managing terminal capabilities across different systems, and safely entering modes like fullscreen or raw input through context managers. The package is designed for developers building CLI tools, terminal games, or text-based dashboards who want cross-platform compatibility without wrestling with curses. It works on Windows, Mac, Linux, and BSD, supports Python 3.8+, and includes features like 24-bit color, unicode keyboard handling, terminal-aware text wrapping, and cursor location queries. The API is intentionally minimal—Terminal is the only class you typically need to import. Use it for: - Build colorful, styled CLI applications with text formatting and colors without curses boilerplate. - Create interactive terminal games or fullscreen applications that respond to keyboard input and terminal size changes. - Add keyboard-driven menus or prompts to command-line tools with safe input handling and cursor control. - Develop terminal dashboards that position and update text at specific screen locations. - Write terminal utilities that gracefully degrade when output is piped to files or other commands. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Blessed provides a clean Python interface for terminal styling, colors, keyboard input, and cursor positioning, replacing low-level curses calls with an intuitive API that works across Windows, Mac, Linux, and BSD. Yes. Blessed is actively maintained, has no known vulnerabilities, low install friction, permissive licensing, and a stable API. Install it if you're building any terminal UI, need cross-platform keyboard handling, or want to avoid curses complexity. ## Install pip install blessed uv add blessed poetry add blessed ## Installing blessed Before you install: Low install friction with only two runtime dependencies (wcwidth and jinxed). The package is actively maintained with a recent release and production-stable status. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions—suitable for both open-source and commercial projects. Quickstart: pip install blessed from blessed import Terminal term = Terminal() print(term.bold('Hello') + ' ' + term.underline('world')) with term.cbreak(): inp = term.inkey() ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: active - Downloads: 14.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags terminal colors and styling, keyboard input handling, cursor positioning, terminal UI library, cross-platform terminal control, ansi escape sequences, cli text formatting, terminal-ui, keyboard-input, ansi-colors [View on SkillFed](https://skillfed.io/packages/blessed) · [View on PyPI](https://pypi.org/project/blessed/)