Flask is a very lightweight Python Web Framework, easily helping beginners learn Python to create small websites.
Flask-Security allows you to quickly add common security mechanisms to your Flask application. Many of these features are made possible by integrating various Flask extensions and libraries. They include:
- Flask-Login
- Flask-Mailman
- Flask-Principal
- Flask-WTF
- itsdangerous
- passlib
- QRCode
- webauthn
- authlib
Use the package manager pip to install foobar.
pip install flask
# Create an environment
> python -m venv .venv
> .venv\Scripts\activate
# setup file, setup debug rerender, and flask run or python fileName.py
> set FLASK_APP=run.py
# Debugger is active!
> set FLASK_DEBUG=1
> python -m flask run
# or
> python run.py
# to open the interpreter
python
>>> import flask
>>> exit()
-
Activate virtual env (.venv\Scripts\activate)
-
Go to your project root directory
-
Get all the packages along with dependencies in requirements.txt
pip freeze > requirements.txt
- You don't have to worry about anything else apart from making sure next person installs the requirements recursively by following command
pip install -r requirements.txt