Skip to content

keyan/pour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

pour: flask boilerplate

image

image

An ultra-lightweight command line tool to quickly generate a bare Flask app file for prototyping.

Installation

To install pour, simply:

$ 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:

$ pour 

Saves a file named app.py to the current working directory:

from flask import Flask
app = Flask(__name__)


@app.route('/')
def index():
    return 'Hello World!'

if __name__ == '__main__':
    app.run(debug=True)

About

An ultra-lightweight command line tool to quickly generate a bare flask app file for prototyping.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages