ansi-codes
A lightweight Sphinx extension that renders ANSI-colored and formatted terminal output directly in your documentation.