Welcome 👋
Flask-Authlib 🔐
Flask-Authlib - Authentication Library For Flask Web Framework 🔥
Installation
Create a virtual environment for your python project:
1 |
|
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 |
|
1 |
|
1 |
|
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 |
|
From python docs
1 |
|
Install this library by using pip
command:
1 |
|
1 2 3 4 5 6 7 8 9 10 11 |
|
✨ Features
Goal of Project
To allow python developers to add authentication functionality with one line of code!
-
Library adds built-in
frontend
andbackend
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 🙂