Easily create authentication, user management, and multilingual systems with Flask-AppBuilder

Tried environment

OSX, Python2.7.13, virtualenv

Flask-AppBuilder (F.A.B or FAB) https://github.com/dpgaspar/Flask-AppBuilder

Installation details

http://flask-appbuilder.readthedocs.io/en/latest/installation.html

% virtualenv env 

% source env/bin/activate

% pip install flask-appbuilder

% fabmanager create-app testapp

% fabmanager create-app
Your new app name: testapp
Your engine type, SQLAlchemy or MongoEngine [SQLAlchemy]: 
Downloaded the skeleton app, good coding!

% cd testapp

#Create an admin user
% fabmanager create-admin 
Username [admin]:
User first name [admin]:
User last name [user]:
Email [[email protected]]:
Password:
Repeat for confirmation:
...
Recognized Database Authentications.
2017-05-08 22:39:16,699:INFO:flask_appbuilder.security.sqla.manager:Added user admin
Admin User admin created.

#Enable Japanese
% vi config.py
#coding:utf8 # <--Put at the beginning of the file

#Find the following and add or replace ja
LANGUAGES = {
    'en': {'flag': 'gb', 'name': 'English'},
    'ja': {'flag': 'jp', 'name': u'Japanese'},
}

% fabmanager run
...
2017-05-08 22:43:34,014:WARNING:werkzeug: * Debugger is active!
2017-05-08 22:43:34,030:INFO:werkzeug: * Debugger PIN: ....

Access http: // localhost: 8080 / with a browser

  1. Top page a1.png

  2. Login screen a2.png

  3. After logging in a3.png

  4. Try changing to Japanese a4.png

  5. User list page a5.png

  6. User information edit page a6.png

  7. Security csrf is also supported by default a7.png

The airbnb superset is created with Flask-AppBuilder. https://github.com/airbnb/superset

By the way, the CI of master and a part of the management screen were broken, so I threw a PR https://github.com/dpgaspar/Flask-AppBuilder/commit/ad0c16e960d2923184cf15b5788338ad66289011 https://github.com/dpgaspar/Flask-AppBuilder/commit/d469462425a4756b4b9cf2a0b2313ee7f65769e5

Recommended Posts

Easily create authentication, user management, and multilingual systems with Flask-AppBuilder
Create APIs around user authentication with Django REST Framework
Create an authentication feature with django-allauth and CustomUser in Django
Create user authentication function in Airflow
Authentication process with gRPC and Firebase Authentication
Basic authentication and Digest authentication with Flask
About package management with conda and pip
Passwordless authentication with RDS and IAM (Python)
Python installation and package management with pip
Create and decrypt Caesar cipher with python
Easily download mp3 / mp4 with python and youtube-dl!
Easily implement login authentication function with Laravel
Let's make a nervous breakdown application with Vue.js and Django-Rest-Framework [Part 6] ~ User Authentication 2 ~
Let's make a nervous breakdown application with Vue.js and Django-Rest-Framework [Part 5] ~ User authentication ~