Debian Codegraph @

docs/installation.rst

raw
1 Installation
2 =============
3
4 Installing Flask-Security using::
5
6 pip install flask-security
7
8 will install the basic package along with its required dependencies:
9
10 * Flask
11 * Flask-Login
12 * Flask-Principal
13 * Flask-WTF
14 * email-validator
15 * itsdangerous
16 * passlib
17 * Blinker
18
19 These are not sufficient for a complete application - other packages are
20 required based on features desired, password hash algorithms, storage backend, etc.
21 Flask-Security has additional distribution 'extras' that can reduce the hassle
22 of figuring out all the required packages. You can install these using the
23 standard pip syntax::
24
25 pip install flask-security[extra1,extra2, ...]
26
27 Supported extras are:
28
29 * ``babel`` - Translation services. It will install babel and Flask-Babel.
30 * ``fsqla`` - Use flask-sqlalchemy and sqlalchemy as your storage interface.
31 * ``common`` - Install Flask-Mail, argon2 (the default password hash), bcrypt (old commonly used password hash) and bleach.
32 * ``mfa`` - Install packages used for multi-factor (two-factor, unified signin, WebAuthn):
33 cryptography, qrcode, phonenumberslite (note that for SMS you still need
34 to pick an SMS provider and install appropriate packages), and webauthn.
35
36 Your application will also need a database backend:
37
38 * Sqlite is supported out of the box.
39 * For PostgreSQL install `psycopg2`_.
40 * For MySQL install `pymysql`_.
41 * For MongoDB install `Mongoengine`_.
42
43 For additional details on configuring your database engine connector - refer to `sqlalchemy_engine`_
44
45 .. _psycopg2: https://pypi.org/project/psycopg2/
46 .. _pymysql: https://pypi.org/project/PyMySQL/
47 .. _Mongoengine: https://pypi.org/project/mongoengine/
48 .. _sqlalchemy_engine: https://docs.sqlalchemy.org/en/14/core/engines.html