Skip to main content

UNKNOWN

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.

Installation

pip is suggested:

pip install flask_shellplus

Usage

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 manage.py 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!

Project details


Download files

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

Source Distribution

Flask-ShellPlus-0.0.1.tar.gz (3.5 kB view details)

Uploaded Source

File details

Details for the file Flask-ShellPlus-0.0.1.tar.gz.

File metadata

File hashes

Hashes for Flask-ShellPlus-0.0.1.tar.gz
Algorithm Hash digest
SHA256 c99e1da0a1333720bc60d25784bb0f2bbef4634733ea53bb9adecc57dae6b958
MD5 9ac9a34dbaf3b10041e9c0f676c59940
BLAKE2b-256 33f46ad8ed6cad670a86c0ac9948dafefc971d9e7631920cf39f9b4284344160

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page