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.2.5.tar.gz (697.8 kB view details)

Uploaded Source

Built Distribution

Flask-2.2.5-py3-none-any.whl (101.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: Flask-2.2.5.tar.gz
  • Upload date:
  • Size: 697.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for Flask-2.2.5.tar.gz
Algorithm Hash digest
SHA256 edee9b0a7ff26621bd5a8c10ff484ae28737a2410d99b0bb9a6850c7fb977aa0
MD5 bbca6fb017f4d338cfddfd673e203779
BLAKE2b-256 5f76a4d2c4436dda4b0a12c71e075c508ea7988a1066b06a575f6afe4fecc023

See more details on using hashes here.

File details

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

File metadata

  • Download URL: Flask-2.2.5-py3-none-any.whl
  • Upload date:
  • Size: 101.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for Flask-2.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 58107ed83443e86067e41eff4631b058178191a355886f8e479e347fa1285fdf
MD5 37b0afe5d9c9aca85f00e1967efb8822
BLAKE2b-256 9f1a8b6d48162861009d1e017a9740431c78d860809773b66cac220a11aa3310

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