Skip to main content

Flask-Beet Extension

build status codecov

Flask-beet is a Flask extension for allow login (flask-security/flask-login) via signed messages and the Beet app.

The login requires a unique string to be signed and submitted. The signature is created with the memo key of an account on the BitShares Blockchain,

Installation

Install the extension with one of the following commands:

$ pip install flask_beet

Usage

Using Flask-Beet is fairly straightforward. Begin by importing the extension and then passing your application object back to the extension, like this:

from flask import Flask
from flask_beet import Beet
app = Flask(__name__)
beet = Beet(app)

You'll also need to extend your user model with the BeetMixin mixin:

from flask_beet import BeetMixin

# Replace
-class User(db.Model, UserMixin):

# with
+class User(db.Model, UserMixin, BeetMixin):

Documentation

The Sphinx-compiled documentation is available here: flask-beet.rtfd.io

Development

This tool uses semversioner to track changes. After changes, please use

semversioner add-change --type patch --description "Fix security vulnerability with authentication."

to track them.

Metadata

Release files for Flask-Beet 0.2.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 Flask-Beet 0.2.0
File Size Uploaded
Flask-Beet-0.2.0.tar.gz 214.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for Flask-Beet 0.2.0
File Interpreter ABI Platform
Flask_Beet-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 429.7 kB

Release files / Flask-Beet-0.2.0.tar.gz

Download URL Flask-Beet-0.2.0.tar.gz
Size 214.8 kB
Tags Source
SHA-256 checksum
How to use checksums
4326a639ec1fe00d422af0aba7ad3851bb0eca32ac4420daddcb68ed757f1dd5
BLAKE2b-256 checksum
How to use checksums
39dffdb5741d6b898b976b153562cc71072cb105bacb5e3865aafaa3a6fcd3ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release files / Flask_Beet-0.2.0-py3-none-any.whl

Download URL Flask_Beet-0.2.0-py3-none-any.whl
Size 214.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a82aa9100917be2d8edbcc41ddf4446042b7e7b075ad186d9b3a9db2b1c7c648
BLAKE2b-256 checksum
How to use checksums
32fffdc293e8138bdcd56c341263deadacf70021b4c22f7f3bcced0f9786e4b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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