Skip to content

Flask extension to improve shell command for the Flask CLI.

Notifications You must be signed in to change notification settings

junnplus/flask-shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 --help

Usage: 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.

About

Flask extension to improve shell command for the Flask CLI.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages