django-rich
Extensions for using Rich with Django.
Decision gist · record as of 2026-08-14
Yes. django-rich is production-stable, actively maintained, has no known vulnerabilities, and adds meaningful developer experience improvements with minimal friction. Install it if you use Django's shell, write management commands, or want better test output readability—the setup is trivial and the benefits are immediate.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Django 4.2 to 6.0 and Python 3.9 to 3.14; features like automatic Rich imports in shell only activate on Django 5.2+.
- Low install friction with only two runtime dependencies (django and rich).
- Actively maintained with recent releases; last commit on 2026-08-13 and production-stable status.
License · maintenance · safety
MIT (permissive) — MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
last release 2025-09-18 (330 days) · last repo commit 2026-08-13 · 154 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 226,927 downloads/mo, #9,191 on PyPI
Alternatives
Verify before relying
pip install django-rich
# In settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = [
...,
"django_rich",
]
# Or subclass RichCommand for custom management commands:
from django_rich.management import RichCommand
class Command(RichCommand):
def handle(self, *args, **options):
self.console.print("[bold]Hello[/bold]")- Whether the shell command integration works with IPython or only the standard Python REPL
- Performance impact of colorization on large test suites or CI environments
What it is and what it does
django-rich bridges Rich, a terminal formatting library, with Django's built-in development tools. It provides three main extensions: an enhanced shell command that enables Rich's pretty-printing and auto-imports key Rich functions (on Django 5.2+), a RichCommand base class for custom management commands that adds a Rich Console to your command's output, and a RichRunner test class that replaces Django's default test runner with colorized output and Rich's traceback rendering.
The package is designed to improve developer experience during local development and testing. It requires minimal setup—just add it to INSTALLED_APPS for shell integration, or point TEST_RUNNER to the RichRunner class. All features respect Django's color control flags (--no-color, --force-color), and the test runner's output width can be tuned via the COLUMNS environment variable for CI systems.
Use it for
- Run Django shell with automatic Rich pretty-printing and inspect/print/pprint functions available without manual import.
- Write custom management commands with colorized, formatted console output using self.console from RichCommand.
- Run tests with colorized output and Rich's traceback rendering to see source code and local values per frame.
- Debug test failures in CI by setting COLUMNS environment variable to control Rich's terminal width detection.
- Combine RichRunner with other test runner classes for customized test output while keeping Rich's formatting.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes.
django-rich is production-stable, actively maintained, has no known vulnerabilities, and adds meaningful developer experience improvements with minimal friction. Install it if you use Django's shell, write management commands, or want better test output readability—the setup is trivial and the benefits are immediate.
Install
django-rich on PyPI
Before you install
Low install friction with only two runtime dependencies (django and rich). Actively maintained with recent releases; last commit on 2026-08-13 and production-stable status. No known vulnerabilities.
Requires Django 4.2 to 6.0 and Python 3.9 to 3.14; features like automatic Rich imports in shell only activate on Django 5.2+.
License in practice
MIT license permits unrestricted use, modification, and distribution with minimal restrictions—suitable for commercial and open-source projects alike.
Quickstart
pip install django-rich
# In settings.py, add to INSTALLED_APPS:
INSTALLED_APPS = [
...,
"django_rich",
]
# Or subclass RichCommand for custom management commands:
from django_rich.management import RichCommand
class Command(RichCommand):
def handle(self, *args, **options):
self.console.print("[bold]Hello[/bold]")
Verify before relying
- Whether the shell command integration works with IPython or only the standard Python REPL
- Performance impact of colorization on large test suites or CI environments
Package facts
| License | MIT permissive |
| Python support | Supports the current Python release >=3.9 |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagesdjangorich |
| Maintenance | Actively maintained 330 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 226,927 / month, #9,191 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 5 - Production/StableFramework :: Django :: 4.2Framework :: Django :: 5.0Framework :: Django :: 5.1Framework :: Django :: 5.2Framework :: Django :: 6.0Intended Audience :: DevelopersNatural Language :: EnglishOperating System :: OS IndependentProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonTyping :: Typed |
Evidence: django_rich-2.2.0-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “django shell rich formatting”
- django-richIntegrates Rich's terminal formatting and pretty-printing into…
- django-ckeditor-5Integrates CKEditor 5, a modern rich-text editor, into Django models…
- django-tinymcedjango-tinymce provides a Django form widget and model field that…
Give your agent the search over MCP, or paste the wish link into any chat.
More Application Frameworks packages
FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.
Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.
Textual is a Python framework for building cross-platform user interfaces that run in the terminal or web browser using a modern, component-based API.
Install it if you're developing CLI tools, dashboards, or interactive terminal applications.
Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.
Install it if you are building CLIs in Python.
Build and connect to Model Context Protocol servers that expose tools, resources, and prompts to LLM applications over stdio, HTTP, or SSE transports.
Install it if you need to build or connect to servers.
Werkzeug is a WSGI utility library providing request/response objects, URL routing, an interactive debugger, HTTP utilities, and a development server for building web applications.
See also colour-runner · rich · rich-argparse · rich-click · django-click · simple-colors · django-typer · prettyprinter · pdbr · ansicolors