Python - Flask

Frameworks

http://flask.pocoo.org/
http://jinja.pocoo.org/docs/
https://www.fullstackpython.com/flask.html
https://www.raspberrypi.org/learning/python-web-server-with-flask/
https://en.wikipedia.org/wiki/Flask_%28web_framework%29
https://www.airpair.com/python/posts/django-flask-pyramid
http://code.tutsplus.com/tutorials/creating-a-web-app-from-scratch-using-python-flask-and-mysql--cms-22972
https://realpython.com/blog/python/python-web-applications-with-flask-part-i/
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world
https://www.youtube.com/watch?v=M1IVwFAH9Wo

What is Flask?

Flask is a microframework for Python based on Werkzeug, Jinja 2 and good intentions.

How can we install Flask?

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hello World!"

if __name__ == "__main__":
    app.run()
pip install Flask
python hello.py
// Running on http://localhost:5000/

What is included with Flask?

  1. built-in development server and debugger
  2. integrated unit testing support
  3. RESTful request dispatching
  4. uses Jinja2 templating
  5. support for secure cookies (client side sessions)
  6. 100% WSGI 1.0 compliant
  7. Unicode based
  8. extensively documented
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License