Skip to content

Welcome 👋

Flask-Authlib 🔐

Flask-Authlib - Authentication Library For Flask Web Framework 🔥


Installation

Create a virtual environment for your python project:

1
python -m venv env

Virtual Environment

The venv module provides support for creating lightweight “virtual environments” with their site directories, optionally isolated from system site directories.

Python docs - Creation of virtual environments

Activate it:

1
$ source env/bin/activate
1
C:\> env\Scripts\activate.bat
1
PS C:\> <venv>\Scripts\Activate.ps1

Note

On Microsoft Windows, it may be required to enable the Activate.ps1 script by setting the execution policy for the user. You can do this by issuing the following PowerShell command:

1
PS C:> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser

From python docs

1
$ source env/Scripts/activate

Install this library by using pip command:

1
$ pip install -U flask_authlib
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
$ pip show flask_authlib

Name: Flask-Authlib
Version: 1.5.0
Summary: Authentication library for Flask Web Framework
Home-page: https://github.com/AbduazizZiyodov/flask-authlib
Author: Abduaziz Ziyodov
Author-email: abduaziz.ziyodov@mail.ru
License: MIT
Location: ...
Requires: ...

✨ Features

Goal of Project

To allow python developers to add authentication functionality with one line of code!

  • Library adds built-in frontend and backend that implements authentication functionality to your flask application automatically.

  • The login and registration pages are ready for use. After starting and initializing your flask application templates (templates/) and static (static/) files will be copied on your app's folder (if you want, you can change these files any time).

  • Better customization! You can customize this library by its configs. There are three types of configs:

  • Base config
  • Templates config
  • Alerts config (alert messages)

Flask For Beginners

If you are a beginner in flask development, you can learn the basics of the flask on the Flask For Beginners section 🙂

Back to top