feather shell launches an interactive Python shell with your Flask application context
pre-loaded. This is invaluable for debugging, data exploration and administrative tasks,
especially in production.
Auto-loaded:
app — the Flask application instance
db — the SQLAlchemy database instance
- Every model from your
models/ directory
Example session
In production
Reach it through docker compose exec web feather shell, or plain SSH access to your
server.
Install IPython (pip install ipython) and the shell uses it automatically, for tab
completion and syntax highlighting.