Installation

Requirements

This extension requires Python 3.8 or higher, with a terminal that supports ANSI escape sequences.

Pip

The easiest way to install this extension is through pip:

pip install flask-rich

To upgrade, use:

pip install --upgrade flask-rich

Poetry

It is recommended to use Poetry to manage your project’s dependencies and virtual environment.

To install this extension with Poetry, use:

poetry add flask-rich

From Source

If you prefer to install from source, you need to clone this repository and install the dependencies with Poetry:

git clone https://github.com/zyf722/Flask-Rich.git
cd Flask-Rich/

poetry lock
poetry install
poetry shell

You can also build the source distribution and install it with pip:

poetry build
cd dist/
# Replace *.*.* with the version number
pip install -U Flask_Rich-*.*.*-py3-none-any.whl