Skip to main content

Authentification blueprint package for flask

Blueprint defines object User who can register, log in, and log out. User can also update its profile. The data is stored on redis database.

Installing

To install a package, open the terminal and download the GitHub repository:

$  pip3 install --user git+https://github.com/kate-melnykova/authentication

The database for the package is redis, so please make sure that it is started prior to using the package.

Getting started

Create a python project with the following minimal structure

- templates
  -- base.html
- app.py

The file app.py creates a basic flask app and registers the blueprint

from flask import Flask
from authentication import auth

app = Flask(__name__, instance_relative_config=True)
app.register_blueprint(auth)

and base.html contains the base style:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div>
        {% block form %}
        {% endblock %}
    </div>
</body>
</html>

Open the terminal and run

$ export FLASK_APP=app.py
$ flask run

The server will run the app. Note that only pages 'login', ' logout', 'register', and 'update_user' exist.

Release files for authentication 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for authentication 1.1.0
File Size Uploaded
authentication-1.1.0.tar.gz 11.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for authentication 1.1.0
File Interpreter ABI Platform
authentication-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 28.2 kB

Release files / authentication-1.1.0.tar.gz

Download URL authentication-1.1.0.tar.gz
Size 11.4 kB
Tags Source
SHA-256 checksum
How to use checksums
6c9e140de224f365f7152a993b0a0977605ff8765c1d74ac855aa132ef57d85a
BLAKE2b-256 checksum
How to use checksums
48ccdcd254c0e11e371d884aa5ff83a78a4c16bf12beee9c14c0b6cf7fe4f095
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10

Release files / authentication-1.1.0-py3-none-any.whl

Download URL authentication-1.1.0-py3-none-any.whl
Size 16.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
41edaacff46fd4de198265d99601da731790a0e22d9706d10b5b9a406cf36375
BLAKE2b-256 checksum
How to use checksums
c29b272b5c00cf85927e7762a96a5755cb6427cc228d76ef09492e749929870a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.0.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.10

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page