Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!


Project Description

Flask shell command based on Flask-Script to enhance its shell.

It will automatically use your favorite Python REPL shell instead of the default one. The order is BPython to ptiPython to IPython to ptPython to Python.


pip is suggested:

pip install flask_shellplus


Use it with Flask-Script:

from flask_shellplus import Shell

def make_context():
    return dict(app=app, db=db, models=models)

manager.add_command('shell', Shell(make_context=make_context))

Run this in your shell:

python shell

Flask-ShellPlus will find the first available one in BPython, ptiPython, IPython, ptPython, and Python.

Or you can manually define the preferred shell with flag --plain, --bpython, --ptipython, --ipython or --ptpython just like shell_plus in DjangoExtensions.

Enjoy it!

Release History

This version
History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(5.6 kB) Copy SHA256 Hash SHA256
Source None Apr 18, 2016

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers