rich-pixels
A Rich-compatible library for writing pixel images and ASCII art to the terminal.
What it is and what it does
Rich Pixels is a terminal rendering library that bridges Pillow image objects and Rich's console styling to display pixel images and ASCII art grids in the terminal. It provides three main pathways: loading images from file paths, wrapping existing Pillow Image objects, or building styled ASCII grids from character mappings. The library integrates seamlessly with Rich's Console and Textual applications, letting you render visual content alongside Rich's other renderable types.
The package sits between image processing (via Pillow) and terminal output (via Rich), handling the conversion of pixel data or ASCII layouts into terminal-displayable form. It's useful for CLI tools that need visual feedback, debugging utilities that show image previews, or terminal-based dashboards that incorporate graphical elements. With low install friction and no security vulnerabilities, it's straightforward to add to a project, though its dormant maintenance status means you're working with a stable but unmaintained codebase.
Use it for:
- Display image previews in CLI tools or terminal dashboards without leaving the terminal.
- Render ASCII art diagrams with custom styling and colors for documentation or interactive sketches.
- Build Textual TUI applications that need to show pixel images or styled grid layouts.
- Debug image processing pipelines by visualizing intermediate Pillow Image objects in the terminal.
- Create terminal-based art or visualization tools that combine image and text rendering.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Renders pixel images and ASCII art grids to the terminal using Rich's styling system, supporting both file-based images via Pillow and programmatic grid construction.
Yes, if you need terminal image rendering and accept dormant maintenance. The package is stable, has no known vulnerabilities, and integrates well with Rich and Textual. However, verify the license terms before use, and be aware that no active maintenance means compatibility issues with future Pillow or Rich versions will not be addressed by the package maintainer.
Install
rich-pixels on PyPI
pip
pip install rich-pixelsuv
uv add rich-pixelspoetry
poetry add rich-pixelsInstalling rich-pixels
Before you install
Low friction installation with only two runtime dependencies (pillow and rich). Maintenance is dormant—last release was 867 days ago—so expect no active bug fixes or feature updates, though the package remains functional for its stated purpose.
License in practice
License status is unclear; no SPDX identifier or raw license text is available in the metadata. Verify the actual license before use in proprietary or restricted contexts.
Quickstart
from rich_pixels import Pixels
from rich.console import Console
console = Console()
pixels = Pixels.from_image_path("image.png")
console.print(pixels)
Requires Python 3.8 or later; Pillow must be able to open the image format you intend to use.
Verify before relying
- Exact license terms—metadata shows no SPDX or raw license field, making compliance unclear.
- Whether dormant status (867 days since last release) affects compatibility with recent Rich or Pillow versions.
- Performance characteristics when rendering large images or complex grids to terminal.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pillow, rich |
| Maintenance | dormant — 867 days since the last release |
| First released | |
| Downloads | 76,895/month — #14,583 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: rich_pixels-3.0.1-py3-none-any.whl
Tags
More Terminals packages
Wraps any iterable to display a real-time…
copyleft · top 100 on PyPI
richRich renders styled text, tables, progress…
permissive · top 100 on PyPI
coloramaColorama makes ANSI escape sequences for…
permissive · top 100 on PyPI
wcwidthMeasures the displayed width of Unicode strings…
permissive · top 1,000 on PyPI
ptyprocessRun a subprocess in a pseudo terminal (pty) and…
permissive · top 1,000 on PyPI
pexpectPexpect spawns and controls interactive console…
permissive · top 1,000 on PyPI
textual-imageRenders images directly in terminal emulators…
copyleft · top 15,000 on PyPI
rich-pyfigletRenders ASCII art banners in the terminal using…
permissive · top 15,000 on PyPI
ascii-magicConverts images into ASCII art for display in…
permissive · top 15,000 on PyPI
pixeloeConverts standard images into pixel art using…
permissive · top 15,000 on PyPI
climageConverts images to ANSI escape code sequences…
permissive · top 15,000 on PyPI
asciitreeRenders tree data structures as formatted ASCII…
permissive · top 5,000 on PyPI
enrichExtends the rich library with a Console class…
permissive · top 5,000 on PyPI
pycowsayDisplays text in a formatted ASCII art cow…
permissive · top 15,000 on PyPI
artConverts text and generates one-line ASCII art…
permissive · top 5,000 on PyPI