A thin, practical wrapper around terminal capabilities in Python
13.39 MB
built 2026-10-17 07:45:35 GMT
Description
Blessed is a thin, practical wrapper around terminal styling, screen
positioning, and keyboard input.
It provides:
- 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.
Dependencies
15 totalRequires14
- (python3dist(flit-core) < 4~~ with python3dist(flit-core) >= 3.11)
- (python3dist(tomli) if python3-devel < 3.11)
- pyproject-rpm-macros
- python3-devel
- python3-devel
- python3-pytest
- python3dist(packaging)
- python3dist(pip) >= 19
- python3dist(wcwidth) >= 0.6
- rpmlib(CompressedFileNames) <= 3.0.4-1
- rpmlib(DynamicBuildRequires) <= 4.15.0-1
- rpmlib(FileDigests) <= 4.6.0-1
- rpmlib(RichDependencies) <= 4.12.0-1
- rpmlib(TildeInVersions) <= 4.10.0-1
Provides1
- python3-blessed = 1.38.0-4.fc45
ObsoletesNo Obsoletes
ConflictsNo Conflicts
RecommendsNo Recommends
SuggestsNo Suggests
SupplementsNo Supplements
EnhancesNo Enhances
Files
2Name ![]() |
Size |
|---|---|
| blessed-1.38.0.tar.gz | 13.36 MB |
| python-blessed.spec | 9.64 KB |
Files 1–2 of 2
Component of
buildroots that installed this RPMNo Buildroots
