Skip to main content

Flask-ShellPlus

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!

Release files for Flask-ShellPlus 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Flask-ShellPlus 0.0.3
File Size Uploaded
Flask-ShellPlus-0.0.3.tar.gz 5.6 kB Details

Release files / Flask-ShellPlus-0.0.3.tar.gz

Download URL Flask-ShellPlus-0.0.3.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
149b09b4f27b8ad71abecbbdaefb84ad35b76d45e0d544b5c03e1beb734779be
BLAKE2b-256 checksum
How to use checksums
27e1570ccbb641a67c8223bc1784a3e7ef75efa48057703591ae1d17c4c91cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.3 This release

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page