Skip to main content

A simple framework for building complex web applications.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

Flask-2.0.2.tar.gz (628.5 kB view details)

Uploaded Source

Built Distribution

Flask-2.0.2-py3-none-any.whl (95.2 kB view details)

Uploaded Python 3

File details

Details for the file Flask-2.0.2.tar.gz.

File metadata

  • Download URL: Flask-2.0.2.tar.gz
  • Upload date:
  • Size: 628.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Flask-2.0.2.tar.gz
Algorithm Hash digest
SHA256 7b2fb8e934ddd50731893bdcdb00fc8c0315916f9fcd50d22c7cc1a95ab634e2
MD5 f875da30335908956e2f9f3d0f224f2d
BLAKE2b-256 9540b976286b5e7ba01794a7e7588e7e7fa27fb16c6168fa849234840bf0f61d

See more details on using hashes here.

File details

Details for the file Flask-2.0.2-py3-none-any.whl.

File metadata

  • Download URL: Flask-2.0.2-py3-none-any.whl
  • Upload date:
  • Size: 95.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for Flask-2.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cb90f62f1d8e4dc4621f52106613488b5ba826b2e1e10a33eac92f723093ab6a
MD5 ee431da5bffac3fa8266b8ffffbe05ae
BLAKE2b-256 8fb6b4fdcb6d01ee20f9cfe81dcf9d3cd6c2f874b996f186f1c0b898c4a59c04

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page