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

Uploaded Source

Built Distribution

flask-3.0.2-py3-none-any.whl (101.3 kB view details)

Uploaded Python 3

File details

Details for the file flask-3.0.2.tar.gz.

File metadata

  • Download URL: flask-3.0.2.tar.gz
  • Upload date:
  • Size: 675.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for flask-3.0.2.tar.gz
Algorithm Hash digest
SHA256 822c03f4b799204250a7ee84b1eddc40665395333973dfb9deebfe425fefcb7d
MD5 3a419da273f762032d344ea129717171
BLAKE2b-256 3fe0a89e8120faea1edbfca1a9b171cff7f2bf62ec860bbafcb2c2387c0317be

See more details on using hashes here.

File details

Details for the file flask-3.0.2-py3-none-any.whl.

File metadata

  • Download URL: flask-3.0.2-py3-none-any.whl
  • Upload date:
  • Size: 101.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for flask-3.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3232e0e9c850d781933cf0207523d1ece087eb8d87b23777ae38456e2fbe7c6e
MD5 7de254c028a2a8022a31223266a44be7
BLAKE2b-256 93a6aa98bfe0eb9b8b15d36cdfd03c8ca86a03968a87f27ce224fb4f766acb23

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