Скачать flask для python для windows

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.

Donate

The Pallets organization develops and supports Flask and the libraries
it uses. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, please
donate today.

Links

  • Documentation: https://flask.palletsprojects.com/

  • Changes: https://flask.palletsprojects.com/changes/

  • PyPI Releases: https://pypi.org/project/Flask/

  • Source Code: https://github.com/pallets/flask/

  • Issue Tracker: https://github.com/pallets/flask/issues/

  • Chat: https://discord.gg/pallets

Download files

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

Source Distribution

Built Distribution

Warning: This is the development version. The latest stable version is Version 3.0.x.

Python Version¶

We recommend using the latest version of Python. Flask supports Python 3.8 and newer.

Dependencies¶

These distributions will be installed automatically when installing Flask.

  • Werkzeug implements WSGI, the standard Python interface between
    applications and servers.

  • Jinja is a template language that renders the pages your application
    serves.

  • MarkupSafe comes with Jinja. It escapes untrusted input when rendering
    templates to avoid injection attacks.

  • ItsDangerous securely signs data to ensure its integrity. This is used
    to protect Flask’s session cookie.

  • Click is a framework for writing command line applications. It provides
    the flask command and allows adding custom management commands.

  • Blinker provides support for Signals.

Optional dependencies¶

These distributions will not be installed automatically. Flask will detect and
use them if you install them.

  • python-dotenv enables support for Environment Variables From dotenv when running flask
    commands.

  • Watchdog provides a faster, more efficient reloader for the development
    server.

greenlet¶

You may choose to use gevent or eventlet with your application. In this
case, greenlet>=1.0 is required. When using PyPy, PyPy>=7.3.7 is
required.

These are not minimum supported versions, they only indicate the first
versions that added necessary features. You should use the latest
versions of each.

Virtual environments¶

Use a virtual environment to manage the dependencies for your project, both in
development and in production.

What problem does a virtual environment solve? The more Python projects you
have, the more likely it is that you need to work with different versions of
Python libraries, or even Python itself. Newer versions of libraries for one
project can break compatibility in another project.

Virtual environments are independent groups of Python libraries, one for each
project. Packages installed for one project will not affect other projects or
the operating system’s packages.

Python comes bundled with the venv module to create virtual
environments.

Create an environment¶

Create a project folder and a .venv folder within:

$ mkdir myproject
$ cd myproject
$ python3 -m venv .venv

Activate the environment¶

Before you work on your project, activate the corresponding environment:

Your shell prompt will change to show the name of the activated
environment.

Install Flask¶

Within the activated environment, use the following command to install
Flask:

Flask is now installed. Check out the Quickstart or go to the
Documentation Overview.

Flask is a lightweight WSGI web application framework designed to help developers get started with their web applications quickly and easily with the ability to scale up to complex applications. Being a “micro” framework does not mean that your whole web application must fit into a single Python file (although it can) or that it be limited; rather it means that Flask aims to keep the core simple but extensible.

Flask offers suggestions, but it won’t make any decisions for you such as what database to use or what dependencies or project layout to choose. You get to choose the tools and libraries you want to use, so Flask can be everything you need and nothing you don’t.

Flask has become one of the most popular Python web application frameworks, and has amassed a great number of extensions provided by the community that make adding new functionality easy.

Features

  • Very simple and easy
  • Supports numerous extensions
  • Includes many hooks to customize its behavior

Project Samples

A simple example

License

BSD License

Complex websites made easy. Icon

Concrete5 has allowed individuals involved with websites to easily manage their content and their site structure. Above all else, the goal behind concrete5 has always been to make it easy for anyone to run a website!

User Reviews

Flask

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.

Donate

The Pallets organization develops and supports Flask and the libraries
it uses. In order to grow the community of contributors and users, and
allow the maintainers to devote more time to the projects, please
donate today.

Links

  • Documentation: https://flask.palletsprojects.com/
  • Changes: https://flask.palletsprojects.com/changes/
  • PyPI Releases: https://pypi.org/project/Flask/
  • Source Code: https://github.com/pallets/flask/
  • Issue Tracker: https://github.com/pallets/flask/issues/
  • Chat: https://discord.gg/pallets

Flask is basically a Python module. It can work with Python only and it is a web-developing framework. It is a collection of libraries and modules. Frameworks are used for developing web platforms. Flask is such a type of web application framework. It is completely written in Python language. Unlike Django, it is only written in Python. As a new user, Flask is to be used. As it is easier to handle. As it is only written in Python, before installing Flask on the machine, Python should be installed previously.  

Features of Python Flask:

  • Flask is easy to use and easily understandable for new users in Web Framework.
  • It can also be used as any third-party plugin extension.
  • It is also used for prototyping purposes.

Install Virtual Environment

We use a module named virtualenv which is a tool to create isolated Python environments. virtualenv creates a folder that contains all the necessary executables to use the packages that a Python project would need.

pip install virtualenv

Create Python virtual environment

Go to the local directory where you want to create your Flask app.

virtualenv venv

Activate a virtual environment based on your OS

For windows > venv\Scripts\activate
For linux > source ./venv/bin/activate

Install Virtual Environment

Install Flask on Windows or Linux

Step 1: Make sure that Python PIP should be installed on your OS. You can check using the below command.

pip -V
or
pip --version

Step 2: At first, open the command prompt in administrator mode. Then the following command should be run. This command will help to install Flask using Pip in Python and will take very less time to install. According to the machine configuration, a proper Flask version should be installed. Wait for some time till the process is completed. After completion of the process, Flask is completed successfully, the message will be displayed. Hence Installation is successful.

pip install flask

Install Flask on Windows

Step 3: After that, also the following two commands should be run. These commands will start Flask in the command prompt. Hence, the process is completed successfully.

python
import flask

Install Flask on Linux

Last Updated :
21 Jun, 2023

Like Article

Save Article

  • Скачать firefox для windows 7 на русском официальный сайт
  • Скачать epson iprint для ноутбука windows 10 скачать бесплатно
  • Скачать fastboot для windows 10 msi
  • Скачать flashtool для windows 10 64 bit
  • Скачать epson event manager для windows 10