Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
artwork/ | H | 03-May-2022 | - | 20 | 14 | |
docs/ | H | 04-Oct-2021 | - | 13,896 | 10,097 | |
examples/ | H | 04-Oct-2021 | - | 1,138 | 820 | |
requirements/ | H | 03-May-2022 | - | |||
src/ | H | 04-Oct-2021 | - | 8,634 | 6,289 | |
tests/ | H | 04-Oct-2021 | - | 7,673 | 5,514 | |
CHANGES.rst | H A D | 04-Oct-2021 | 52.9 KiB | 1,185 | 1,024 | |
CONTRIBUTING.rst | H A D | 06-Aug-2021 | 6.6 KiB | 230 | 149 | |
LICENSE.rst | H A D | 12-May-2021 | 1.4 KiB | 29 | 23 | |
MANIFEST.in | H A D | 06-Aug-2021 | 206 | 12 | 11 | |
PKG-INFO | H A D | 04-Oct-2021 | 3.5 KiB | 120 | 88 | |
README.rst | H A D | 01-Oct-2021 | 2.1 KiB | 83 | 54 | |
setup.cfg | H A D | 04-Oct-2021 | 2.1 KiB | 100 | 86 | |
setup.py | H A D | 04-Oct-2021 | 374 | 17 | 14 | |
tox.ini | H A D | 10-Aug-2021 | 640 | 32 | 25 |
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