Flask-CLI 0.4.0
pip install Flask-CLI
Latest version
Released:
Backport of Flask 1.0 new click integration.
Navigation
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD
- Author: Invenio Collaboration
Classifiers
- Development Status
- Programming Language
- Topic
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
Initialize the extension like this:
from flask import Flask
from flask_cli import FlaskCLI
app = Flask('myapp')
FlaskCLI(app)
@app.cli.command()
def mycmd():
click.echo("Test")
@app.shell_context_processor
def myctx():
return {'myvar': 'value'}
Import from this library instead of flask.cli:
from flask_cli import FlaskGroup
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
Verified details
These details have been verified by PyPIMaintainers
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: BSD
- Author: Invenio Collaboration
Classifiers
- Development Status
- Programming Language
- Topic
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file Flask-CLI-0.4.0.tar.gz
.
File metadata
- Download URL: Flask-CLI-0.4.0.tar.gz
- Upload date:
- Size: 21.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6604ab407c0a2f6cdb51e1f64bdb01b8b135d547a0a99189b9158353ded6eeb9 |
|
MD5 | 6c14202e4f7c3d4d6bdfafe334cb2a6c |
|
BLAKE2b-256 | 96aa12256c6efd795e4d14a3b22a021ec337b403680ec57127a546c4b72daeb0 |
File details
Details for the file Flask_CLI-0.4.0-py2.py3-none-any.whl
.
File metadata
- Download URL: Flask_CLI-0.4.0-py2.py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 625b534f1bd4d05cbd2084b6b820e2d8cbfea8bc08dd3ee786f365bc0591f1d8 |
|
MD5 | 0cde271f7071d3d96c75c69994d8069b |
|
BLAKE2b-256 | 2e6c67a364327f720806ebdd6ff3e98d7f9789971b34477e97ef8e77a0c45056 |