# 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.
[WSGI]: https://wsgi.readthedocs.io/
[Werkzeug]: https://werkzeug.palletsprojects.com/
[Jinja]: https://jinja.palletsprojects.com/
## Installing
Install and update from [PyPI][] using an installer such as [pip][]:
```
$ pip install -U Flask
```
[PyPI]: https://pypi.org/project/Flask/
[pip]: https://pip.pypa.io/en/stable/getting-started/
## A Simple Example
```python
# 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][].
[contributing guidelines]: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst
## 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][].
[please donate today]: https://palletsprojects.com/donate
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
flask-3.0.3.tar.gz (231个子文件)
make.bat 760B
style.css 2KB
test.css 18B
.env 33B
.flaskenv 28B
.gitignore 119B
.gitignore 119B
index.html 3KB
base.html 1KB
xhr.html 933B
fetch.html 852B
index.html 790B
base.html 752B
update.html 690B
jquery.html 666B
create.html 447B
register.html 428B
login.html 424B
escaping_template.html 147B
_macro.html 55B
template_test.html 51B
context_template.html 36B
template_filter.html 26B
index.html 24B
simple_template.html 23B
index.html 22B
index.html 21B
typing.in 91B
docs.in 67B
tests.in 64B
dev.in 54B
build.in 6B
tox.ini 1KB
config.json 54B
Makefile 634B
README.md 2KB
README.md 950B
README.md 228B
PKG-INFO 3KB
debugger.png 203KB
pycharm-run-config.png 97KB
flask-horizontal.png 24KB
flask-vertical.png 16KB
flaskr_edit.png 13KB
flaskr_index.png 11KB
flaskr_login.png 7KB
shortcut-icon.png 4KB
app.py 59KB
test_basic.py 51KB
app.py 37KB
cli.py 35KB
scaffold.py 30KB
test_blueprints.py 28KB
blueprints.py 24KB
helpers.py 23KB
test_cli.py 20KB
ctx.py 15KB
sessions.py 14KB
config.py 13KB
test_templating.py 12KB
test_testing.py 10KB
test_helpers.py 10KB
testing.py 10KB
tag.py 9KB
test_json.py 9KB
test_reqctx.py 8KB
test_user_error_handler.py 8KB
test_config.py 8KB
provider.py 7KB
templating.py 7KB
views.py 7KB
test_views.py 7KB
debughelpers.py 6KB
wrappers.py 6KB
__init__.py 5KB
test_appctx.py 5KB
test_signals.py 5KB
blueprints.py 4KB
conftest.py 4KB
test_instance_config.py 3KB
test_async.py 3KB
blog.py 3KB
auth.py 3KB
conf.py 3KB
typing.py 3KB
__init__.py 3KB
typing_route.py 2KB
test_logging.py 2KB
test_blog.py 2KB
logging.py 2KB
test_auth.py 2KB
test_json_tag.py 2KB
globals.py 2KB
conftest.py 1KB
__init__.py 1KB
db.py 1KB
test_converters.py 1KB
__init__.py 1019B
views.py 954B
test_session_interface.py 792B
共 231 条
- 1
- 2
- 3
资源评论
假技术po主
- 粉丝: 517
- 资源: 4308
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功