Backport of Flask 1.0 new click integration.
Project description
About
Flask-CLI is a backport of Flask 1.0 new click integration to Flask 0.10. Do not install this package if you use Flask 1.0+.
Installation
Flask-CLI is on PyPI so all you need is:
pip install flask-cli
Usage
Use this library as fallback when importing from flask.cli.
try:
from flask.cli import FlaskGroup
except ImportError
from flask_cli.cli import FlaskGroup
Note Flask-CLI is only a backport of flask.cli. Most noteably, there’s no integration into the Flask application object. E.g. the following won’t work:
app = Flask(__name__)
@app.cli.command()
def initdb():
"""Initialize the database."""
print 'Init the db'
Documentation
Documentation is readable at http://flask-cli.readthedocs.org or can be build using Sphinx:
pip install Sphinx python setup.py build_sphinx
Testing
Running the test suite is as simple as:
python setup.py test
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Flask-CLI-0.1.0.tar.gz
(17.6 kB
view hashes)
Built Distribution
Close
Hashes for Flask_CLI-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 00a3a57119519ee76d2daccdc519eaab38a9a93476846ee786bf292cc1a8c03c |
|
MD5 | 5e008e325deae840ff1c6543562bebe1 |
|
BLAKE2b-256 | d183001462a432473af204ecc06bdeddb99e7f08afe28c47ed42d359e15a8717 |