# erikrose/blessings

A thin, practical wrapper around terminal capabilities in Python

Repository: https://github.com/erikrose/blessings
Canonical: https://ross.abutalabs.com/products/blessings
Homepage: http://pypi.python.org/pypi/blessings
Language: Python
License: MIT
License Family: permissive
Last push: 2025-08-28T12:20:17+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 39, release rhythm 35, longevity 100
- inputs: {"age_days": 5413, "days_push": 370, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1485, forks 151 (observed 2026-08-28T04:04:51.801409+00:00)

## What it is
Blessings is a thin Python library that wraps terminal capabilities for coloring, styling, and cursor positioning without the complexity of curses. It provides a simple Terminal object that handles tty detection and gracefully omits control codes when output is redirected.

## Use cases
- print colored and styled text in a python cli
- position text at a specific screen location in the terminal
- format terminal output that survives being piped to a file
- replace verbose curses tigetstr/tparm calls with clean python
- build a well-behaved command-line app that preserves scrollback

## When to choose
- you need simple terminal styling or cursor positioning in Python without full-screen control
- you want output that degrades gracefully when redirected to files or pipes
- you find curses too low-level for basic color and formatting tasks

## When to avoid
- you need full-screen terminal UIs with panels and event loops (use urwid or textual)
- you are starting a new project and can use the maintained Blessings fork (blessed)
- you need terminal control in a language other than Python

## Facets
- artifact type: library
- maturity: maintenance
- function: developer-tools, cli, terminal-ui
- domain: developer-tools
- platform: python, cli, cross-platform
- tags: terminal-formatting, ansi-colors, curses-wrapper, tty, command-line

## Member repositories
- erikrose/blessings (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:51.801409+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:33:55.778157+00:00, confidence not recorded.
  - readme: https://github.com/erikrose/blessings (fetched 2026-08-28T04:04:51.801409+00:00, sha 0e75c65d4020)
  - homepage: http://pypi.python.org/pypi/blessings (fetched 2026-08-29T11:40:08.619679+00:00, sha b1aae6374c4d)
  - registry_pypi: https://pypi.org/pypi/blessings/json (fetched 2026-08-29T11:40:08.652404+00:00, sha 9389ae5c280e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
