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!
Links
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(5.6 kB
view details)
File details
Details for the file Flask-ShellPlus-0.0.3.tar.gz
.
File metadata
- Download URL: Flask-ShellPlus-0.0.3.tar.gz
- Upload date:
- Size: 5.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 149b09b4f27b8ad71abecbbdaefb84ad35b76d45e0d544b5c03e1beb734779be |
|
MD5 | 33ce7141978a8e30d9e7a218d559fcf0 |
|
BLAKE2b-256 | 27e1570ccbb641a67c8223bc1784a3e7ef75efa48057703591ae1d17c4c91cd1 |