https://github.com/keyan/pour
An ultra-lightweight command line tool to quickly generate a bare flask app file for prototyping.
https://github.com/keyan/pour
Last synced: about 1 year ago
JSON representation
An ultra-lightweight command line tool to quickly generate a bare flask app file for prototyping.
- Host: GitHub
- URL: https://github.com/keyan/pour
- Owner: keyan
- Created: 2015-03-08T02:57:29.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-07-04T07:19:17.000Z (almost 11 years ago)
- Last Synced: 2025-03-15T09:27:31.536Z (over 1 year ago)
- Language: Python
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
pour: flask boilerplate
=========================
.. image:: https://img.shields.io/pypi/v/pour.svg
:target: https://pypi.python.org/pypi/pour
.. image:: https://img.shields.io/pypi/dm/pour.svg
:target: https://pypi.python.org/pypi/pour
An ultra-lightweight command line tool to quickly generate a bare Flask app
file for prototyping.
Installation
------------
To install pour, simply:
.. code-block:: bash
$ pip install pour
Usage
-----
::
$ pour --help
usage: pour [-n NAME] [-t]
A lightweight Flask app generator.
--------------------------------------------------------------------------
https://github.com/keyanp/pour
optional arguments:
--help Show this help message and exit
-n NAME Set a name for the generated app (default is app)
-t Include test file
For example, typing:
.. code-block:: bash
$ pour
Saves a file named ``app.py`` to the current working directory:
.. code-block:: python
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return 'Hello World!'
if __name__ == '__main__':
app.run(debug=True)