• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

artwork/H03-May-2022-2014

docs/H04-Oct-2021-13,89610,097

examples/H04-Oct-2021-1,138820

requirements/H03-May-2022-

src/H04-Oct-2021-8,6346,289

tests/H04-Oct-2021-7,6735,514

CHANGES.rstH A D04-Oct-202152.9 KiB1,1851,024

CONTRIBUTING.rstH A D06-Aug-20216.6 KiB230149

LICENSE.rstH A D12-May-20211.4 KiB2923

MANIFEST.inH A D06-Aug-2021206 1211

PKG-INFOH A D04-Oct-20213.5 KiB12088

README.rstH A D01-Oct-20212.1 KiB8354

setup.cfgH A D04-Oct-20212.1 KiB10086

setup.pyH A D04-Oct-2021374 1714

tox.iniH A D10-Aug-2021640 3225

README.rst

1Flask
2=====
3
4Flask is a lightweight `WSGI`_ web application framework. It is designed
5to make getting started quick and easy, with the ability to scale up to
6complex applications. It began as a simple wrapper around `Werkzeug`_
7and `Jinja`_ and has become one of the most popular Python web
8application frameworks.
9
10Flask offers suggestions, but doesn't enforce any dependencies or
11project layout. It is up to the developer to choose the tools and
12libraries they want to use. There are many extensions provided by the
13community that make adding new functionality easy.
14
15.. _WSGI: https://wsgi.readthedocs.io/
16.. _Werkzeug: https://werkzeug.palletsprojects.com/
17.. _Jinja: https://jinja.palletsprojects.com/
18
19
20Installing
21----------
22
23Install and update using `pip`_:
24
25.. code-block:: text
26
27    $ pip install -U Flask
28
29.. _pip: https://pip.pypa.io/en/stable/getting-started/
30
31
32A Simple Example
33----------------
34
35.. code-block:: python
36
37    # save this as app.py
38    from flask import Flask
39
40    app = Flask(__name__)
41
42    @app.route("/")
43    def hello():
44        return "Hello, World!"
45
46.. code-block:: text
47
48    $ flask run
49      * Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
50
51
52Contributing
53------------
54
55For guidance on setting up a development environment and how to make a
56contribution to Flask, see the `contributing guidelines`_.
57
58.. _contributing guidelines: https://github.com/pallets/flask/blob/main/CONTRIBUTING.rst
59
60
61Donate
62------
63
64The Pallets organization develops and supports Flask and the libraries
65it uses. In order to grow the community of contributors and users, and
66allow the maintainers to devote more time to the projects, `please
67donate today`_.
68
69.. _please donate today: https://palletsprojects.com/donate
70
71
72Links
73-----
74
75-   Documentation: https://flask.palletsprojects.com/
76-   Changes: https://flask.palletsprojects.com/changes/
77-   PyPI Releases: https://pypi.org/project/Flask/
78-   Source Code: https://github.com/pallets/flask/
79-   Issue Tracker: https://github.com/pallets/flask/issues/
80-   Website: https://palletsprojects.com/p/flask/
81-   Twitter: https://twitter.com/PalletsTeam
82-   Chat: https://discord.gg/pallets
83