flask-praetorian-1.4.0
توضیحات
Strong, Simple, and Precise security for Flask APIs (using jwt)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | flask-praetorian-1.4.0 |
| نام | flask-praetorian |
| نسخه کتابخانه | 1.4.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Tucker Beck |
| ایمیل نویسنده | tucker.beck@gmail.com |
| آدرس صفحه اصلی | https://flask-praetorian.readthedocs.io/en/latest/ |
| آدرس اینترنتی | https://pypi.org/project/flask-praetorian/ |
| مجوز | MIT |
.. image:: https://badge.fury.io/py/flask-praetorian.svg
:target: https://badge.fury.io/py/flask-praetorian
:alt: Latest Published Version
.. image:: https://travis-ci.org/dusktreader/flask-praetorian.svg?branch=master
:target: https://travis-ci.org/dusktreader/flask-praetorian
:alt: Build Status
.. image:: https://readthedocs.org/projects/flask-praetorian/badge/?version=latest
:target: http://flask-praetorian.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Build Status
******************
flask-praetorian
******************
---------------------------------------------------
Strong, Simple, and Precise security for Flask APIs
---------------------------------------------------
API security should be strong, simple, and precise like a Roman Legionary.
This package aims to provide that. Using `JWT <https://jwt.io/>`_ tokens as
implemented by `PyJWT <https://pyjwt.readthedocs.io/en/latest/>`_,
*flask_praetorian* uses a very simple interface to make sure that the users
accessing your API's endpoints are provisioned with the correct roles for
access.
This project was heavily influenced by
`Flask-Security <https://pythonhosted.org/Flask-Security/>`_, but intends
to supply only essential functionality. Instead of trying to anticipate the
needs of all users, *flask-praetorian* will provide a simple and secure mechanism
to provide security for APIs specifically.
This extension offers a batteries-included approach to security for your API.
For essential security concerns for Flask-based APIs,
`flask-praetorian <https://github.com/dusktreader/flask-praetorian>`_ should
supply everything you need.
The *flask-praetorian* package can be used to:
* Hash passwords for storing in your database
* Verify plaintext passwords against the hashed, stored versions
* Generate authorization tokens upon verification of passwords
* Check requests to secured endpoints for authorized tokens
* Supply expiration of tokens and mechanisms for refreshing them
* Ensure that the users associated with tokens have necessary roles for access
* Parse user information from request headers for use in client route handlers
* Support inclusion of custom user claims in tokens
* Register new users using email verification
All of this is provided in a very simple to configure and initialize flask
extension. Though simple, the security provided by *flask-praetorian* is strong
due to the usage of the proven security technology of JWT
and python's `PassLib <http://pythonhosted.org/passlib/>`_ package.
Super-quick Start
-----------------
- requirements: `python` versions 3.6+
- install through pip: `$ pip install flask-praetorian`
- minimal usage example: `example/basic.py <https://github.com/dusktreader/flask-praetorian/tree/master/example/basic.py>`_
Documentation
-------------
The complete documentation can be found at the
`flask-praetorian home page <http://flask-praetorian.readthedocs.io>`_
نیازمندی
| مقدار | نام |
|---|---|
| >=2.0,<3.0 | pyjwt |
| >=2.1,<3.0 | pendulum |
| >=1.7,<2.0 | passlib |
| >=0.1.7 | flask-buzz |
| >=0.9.1,<0.10.0 | flask-mail |
| >=1.0,<3.0 | flask |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl flask-praetorian-1.4.0:
pip install flask-praetorian-1.4.0.whl
نصب پکیج tar.gz flask-praetorian-1.4.0:
pip install flask-praetorian-1.4.0.tar.gz