Flask
Flask
|
|
---|---|
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:
- Handling of authentication , cookies , sessions
- configurable caching
- internationalization
- an abstraction layer for databases that dynamically generates SQL (ORM, Object-Relational Mapping )
- Compatibility with many database systems (currently Informix IDS , Db2 , Drizzle , Firebird , SAP MaxDB , Microsoft Access , Microsoft SQL Server , MySQL , Oracle Database , PostgreSQL , SQLite and Sybase ASE , MongoDB )
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
- Django (Python Web Framework)
- TurboGears (Python Web Framework that uses SQLAlchemy as the ORM by default )
- web2py (Python Web Framework)
- Bottle (Python Web Micro Framework)
Web links
- Flask (English)
- Introduction to Flask (English)
- Documentation (English)
- Presentation of Flask at Pycon Atlanta 2011 (English)
- Instructions for internationalization Flask (English)
Individual evidence
- ↑ Armin Ronacher . Retrieved May 29, 2016.
- ↑ Release 1.1.2 . April 3, 2020 (accessed April 4, 2020).
- ↑ Flask Extensions . Retrieved May 22, 2012.
- ↑ Armin Ronacher: Opening the Flask (PDF; 2.8 MB) Retrieved on May 22, 2012.
- ^ Armin Ronacher: April 1st Post Mortem . Retrieved May 22, 2012.
- ↑ Powered by Flask . Retrieved June 19, 2013.
- ^ Francisco Souza: Flying with Flask on Google App Engine . Retrieved May 29, 2012.
- ↑ Getting Started with Python on Heroku / Cedar . Retrieved May 29, 2012.