GitHub - pallets/flask: A microframework based on Werkzeug, Jinja2 and good inte...
source link: https://github.com/pallets/flask
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Flask
Flask is a lightweight WSGI web application framework. It is designed to make getting started quick and easy, with the ability to scale up to complex applications. It began as a simple wrapper around Werkzeug and Jinja and has become one of the most popular Python web application frameworks.
Flask offers suggestions, but doesn't enforce any dependencies or project layout. It is up to the developer to choose the tools and libraries they want to use. There are many extensions provided by the community that make adding new functionality easy.
Installing
Install and update using pip:
$ pip install -U Flask
A Simple Example
# save this as app.py from flask import Flask app = Flask(__name__) @app.route("/") def hello(): return "Hello, World!"
$ flask run * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
Contributing
For guidance on setting up a development environment and how to make a contribution to Flask, see the contributing guidelines.
Donate
The Pallets organization develops and supports Flask and the libraries it uses. In order to grow the community of contributors and users, and allow the maintainers to devote more time to the projects, please donate today.
Links
Recommend
-
106
Jinja Jinja is a fast, expressive, extensible templating engine. Special placeholders in the template allow writing code similar to Python syntax. Then the template is passed data to render the final document. It includes: ...
-
9
Exploring SSTI in Flask/Jinja2 Larry ...
-
19
README.md mezzio
-
12
README.rst Werkzeug werkzeug German noun: "tool". Etymology: werk ("work"), zeug ("stuff") Werkzeug is a comprehensiv...
-
16
Jinja是组成Flask的模板引擎。可能你还不太了解它是干嘛的,但你对下面这些百分号和大括号肯定不陌生: {% block body %} <ul> {% for user in users %} <li><a href="{{ us...
-
4
New Major Versions Released! Flask 2.0, Werkzeug 2.0, Jinja 3.0, Click 8.0, ItsDangerous 2.0, and MarkupSafe 2.0 written by David Lord on 2021-05-11 in...
-
7
Flask-jinja2 SSTI 一般利用姿势 SSTI 中常用的魔术方法 很多刚开始学习SSTI的新手可能看到上面的利用方法就蒙圈了,不太懂为什么要这么做,下面来讲一下关于Python中类的知识。 面向对象语言的方法来自于类,对于python,有很多好用的...
-
1
Siv Scripts Solving Problems Using Code (Note: This post is part of my
-
4
Templating With Jinja2 in Flask Jinja2 is a template engine written in pure Python. It provides a Django-inspired no...
-
1
Werkzeug简介 Flask 和 Werkzeug 之间的关系可以理解为 Flask 是建立在 Werkzeug 基础之上的一个 Web 框架。要了解它们之间的关系,我们需要先分别理解 Flask 和 Werkzeug 的角色和功能。
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK