sanic-jwt-1.8.0


توضیحات

JWT oauth flow for Sanic
ویژگی مقدار
سیستم عامل -
نام فایل sanic-jwt-1.8.0
نام sanic-jwt
نسخه کتابخانه 1.8.0
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Adam Hopkins
ایمیل نویسنده admhpkns@gmail.com
آدرس صفحه اصلی https://github.com/ahopkins/sanic-jwt
آدرس اینترنتی https://pypi.org/project/sanic-jwt/
مجوز MIT
# Sanic JWT [![Latest PyPI version](https://img.shields.io/pypi/v/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt) [![Python versions](https://img.shields.io/pypi/pyversions/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt) [![Version status](https://img.shields.io/pypi/status/sanic-jwt.svg)](https://pypi.python.org/pypi/sanic-jwt) [![MIT License](https://img.shields.io/pypi/l/sanic-jwt.svg)](https://raw.githubusercontent.com/ahopkins/sanic-jwt/dev/LICENSE) [![Build Status](https://travis-ci.org/ahopkins/sanic-jwt.svg?branch=master)](https://travis-ci.org/ahopkins/sanic-jwt) [![Documentation](https://readthedocs.org/projects/sanic-jwt/badge/?version=latest)](http://sanic-jwt.readthedocs.io/en/latest/?badge=latest) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/9727756ffccd45f7bc5ad6292596e03d)](https://www.codacy.com/app/ahopkins/sanic-jwt?utm_source=github.com&utm_medium=referral&utm_content=ahopkins/sanic-jwt&utm_campaign=Badge_Grade) [![Test Coverage](https://codecov.io/gh/ahopkins/sanic-jwt/branch/dev/graph/badge.svg)](https://codecov.io/gh/ahopkins/sanic-jwt) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) Sanic JWT adds authentication protection and endpoints to [Sanic]. It is both **easy** to get up and running, and **extensible** for the developer. It can act to **protect endpoints** and also provide **authentication scoping**, all wrapped into a nice [JWT]. [Read the documentation](http://sanic-jwt.rtfd.io/) | [View the source code](https://github.com/ahopkins/sanic-jwt/) ------ **What do I do?** It's easy: (1) install, (2) initialize, and (3) authenticate. **Install:** ``` pip install sanic-jwt ``` [Sanic]: http://sanic.readthedocs.io [JWT]: https://jwt.io **Initialize:** ```python from sanic import Sanic from sanic_jwt import Initialize def my_authenticate(request, *args, **kwargs): ... app = Sanic() Initialize( app, authenticate=my_authenticate ) ``` **Authenticate:** http://localhost/auth ------ **Can I customize it?** Definitely! Sanic JWT is made to allow developers to customize the operation to fit their needs. [Check out the documentation](http://sanic-jwt.rtfd.io/) to learn how.


نیازمندی

مقدار نام
<3.0.0,>=2.1.0 pyjwt
- Sphinx
<3.1 Jinja2
- Sphinx
<3.1 Jinja2


نحوه نصب


نصب پکیج whl sanic-jwt-1.8.0:

    pip install sanic-jwt-1.8.0.whl


نصب پکیج tar.gz sanic-jwt-1.8.0:

    pip install sanic-jwt-1.8.0.tar.gz