Replace the default flask shell command with a similar one running PTPython.
Python Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
.travis.yml
LICENSE
README.rst
flask_shell_ptpython.py
pytest.ini
run-tests.sh
setup.py

README.rst

Flask-Shell-PTPython

https://travis-ci.org/jacquerie/flask-shell-ptpython.svg?branch=master

About

Replace the default flask shell command with a similar one running PTPython. Inspired by flask-shell-ipython by @ei-grad.

Install

flask-shell-ptpython is on PyPI, so all you have to do is:

$ pip install flask-shell-ptpython

Usage

flask-shell-ptpython hooks itself into Flask through an entry point, so all you have to do is:

$ flask shell

Alternatives

If you prefer BPython you can use flask-shell-bpython, while if you prefer IPython you can use flask-shell-ipython.

Author

Jacopo Notarstefano (@Jaconotar)

License

MIT