Flask

from Wikipedia, the free encyclopedia
Flask

Flask logo.svg
Basic data

developer Armin Ronacher
Publishing year April 1, 2010
Current  version 1.1.2
( April 3, 2020 )
operating system cross-platform
programming language python
category Web framework
License BSD license
palletsprojects.com/p/flask/

Flask is a web framework written in Python by the Austrian programmer Armin Ronacher . Flask's focus is on expandability and good documentation. The only dependencies are Jinja2 , a template engine , and tools , a library for building WSGI applications.

Flask communicates via the WSGI - Interface , currently the latest development for communication between Web servers and Web applications in the Python environment. The web server supplied by Flask can be used for test purposes and during development.

In contrast to other frameworks such as Django or Web2py , Flask does not provide components for which solutions already exist, but allows existing libraries to be easily integrated. This allows the core functionality of Flask to be kept simple and minimal. There are extensions for most common functions, such as:

The development of Flask began in 2010 as an April Fool's joke under the name Denied. Due to the surprisingly large number of positive feedback, Armin Ronacher started the Flask project.

A number of applications are based on Flask. An overview can be found on the project homepage. Flask is compatible with numerous Platform-as-a-Service services, such as Google App Engine or Heroku .

example

The following source code represents a simple web application that outputs Hello World on the start page :

from flask import Flask
app = Flask(__name__)

@app.route("/")
def hello():
    return "Hallo Welt"

if __name__ == "__main__":
    app.run()

See also

Web links

Individual evidence

  1. Armin Ronacher . Retrieved May 29, 2016.
  2. Release 1.1.2 . April 3, 2020 (accessed April 4, 2020).
  3. Flask Extensions . Retrieved May 22, 2012.
  4. Armin Ronacher: Opening the Flask (PDF; 2.8 MB) Retrieved on May 22, 2012.
  5. ^ Armin Ronacher: April 1st Post Mortem . Retrieved May 22, 2012.
  6. Powered by Flask . Retrieved June 19, 2013.
  7. ^ Francisco Souza: Flying with Flask on Google App Engine . Retrieved May 29, 2012.
  8. Getting Started with Python on Heroku / Cedar . Retrieved May 29, 2012.