Flask-Beet-0.2.0
توضیحات
A flask extension that allows login via Beet app
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | Flask-Beet-0.2.0 |
| نام | Flask-Beet |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Fabian Schuh |
| ایمیل نویسنده | fabian@chainsquad.com |
| آدرس صفحه اصلی | http://bitshares.eu/ |
| آدرس اینترنتی | https://pypi.org/project/Flask-Beet/ |
| مجوز | MIT |
# Flask-Beet Extension
[](https://travis-ci.org/#!/blockchainprojects/flask_beet)
[](https://codecov.io/gh/blockchainprojects/flask_beet)
Flask-beet is a Flask extension for allow login (flask-security/flask-login)
via signed messages and the [Beet app](http://get-beet.io).
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:
```python
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:
```python
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](http://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.
نیازمندی
| مقدار | نام |
|---|---|
| - | bitshares |
| - | Flask |
| - | Flask-Login |
| - | Flask-Security |
| - | Flask-Session |
| - | SQLAlchemy |
| - | WTForms |
| - | Werkzeug |
| - | blinker |
نحوه نصب
نصب پکیج whl Flask-Beet-0.2.0:
pip install Flask-Beet-0.2.0.whl
نصب پکیج tar.gz Flask-Beet-0.2.0:
pip install Flask-Beet-0.2.0.tar.gz