Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/junnplus/flask-shell
Flask extension to improve shell command for the Flask CLI.
https://github.com/junnplus/flask-shell
flask flask-cli flask-extension
Last synced: about 1 month ago
JSON representation
Flask extension to improve shell command for the Flask CLI.
- Host: GitHub
- URL: https://github.com/junnplus/flask-shell
- Owner: junnplus
- Created: 2016-07-15T17:32:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-04-29T15:16:10.000Z (over 3 years ago)
- Last Synced: 2024-10-03T14:06:12.855Z (3 months ago)
- Topics: flask, flask-cli, flask-extension
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 14
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Flask-Shell
Flask extension to improve shell command for the Flask CLI.
## Features
- Support ptipython/ptpython/ipython/bpython
## Requirements
- flask >= 1.0.0
## Installation
To install using pip:
```
pip install flask-shell[ipython]
```## Usage
```
> export FLASK_APP=happy.py
> flask shell --helpUsage: flask shell [OPTIONS]
Runs an interactive Python shell in the context of a given Flask
application. The application will populate the default namespace of this
shell according to it's configuration. This is useful for executing small
snippets of management code without having to manually configuring the
application.Options:
--use-shell [ptipython|ptpython|ipython|bpython|plain]
--help Show this message and exit.
```