Skip to content
Implementation of Flask-login on top of Dash.
Python Jupyter Notebook
Branch: master
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
assets Initial commit - Non operational Oct 15, 2018
views Initial release Oct 23, 2018
LICENSE Initial commit Oct 9, 2018
add_remove_users.ipynb Initial release Oct 23, 2018 Initial release Oct 23, 2018
config.txt Initial commit - Non operational Oct 15, 2018
requirements.txt Initial release Oct 23, 2018



This is an example of Flask-login implementation on top of a Dash application for users authentication.

The example comes with users authentication through a sqlite3 database, however you can use your own database by changing the con parameter with your database URI in the config.txt file.

The example comes with the a standard username test and password test1 but you can add more users using the add_remove_users.ipynb jupyter notebook or the functions available in the

Files description:

add_remove_users.ipynb: A jupyter notebook to help creating and removing users The app initial screen python script to initialize the configuration included in the config.txt file
config.txt: configuration file input configuration file to be used together with pip-tools
requirements.txt: configuration file generated bypip-tools the app initialization file
users.db: sqlite3 database with user information helper file for the user management process

Running an app locally

To run an app locally:

  1. (optional) create and activate new virtualenv:
pip install virtualenv
virtualenv venv
source venv/bin/activate
  1. pip install -r requirements.txt
  2. flask run
  3. open in your browser or
  4. flask run --host= to open for external connections


PRs accepted! Please contribute if you believe this example can be improved.

You can’t perform that action at this time.