auth-token-0.0.3


توضیحات

Auth token jwt
ویژگی مقدار
سیستم عامل OS Independent
نام فایل auth-token-0.0.3
نام auth-token
نسخه کتابخانه 0.0.3
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Jose Salas
ایمیل نویسنده josephsalas.developer@gmail.com
آدرس صفحه اصلی https://gitlab.com/developerjoseph/auth-token
آدرس اینترنتی https://pypi.org/project/auth-token/
مجوز -
# Auth-token Package Auth token jwt [![pipeline status](https://gitlab.com/developerjoseph/auth-token/badges/master/pipeline.svg)](https://gitlab.com/developerjoseph/auth-token/-/commits/master) [![coverage report](https://gitlab.com/developerjoseph/auth-token/badges/master/coverage.svg)](https://gitlab.com/developerjoseph/auth-token/-/commits/master) ## Package installation - Installation ```shell $ pip3 install auth-token ``` ## Docs - [Readme](https://auth-token-docs.readthedocs.io/en/latest/) ## Examples ```python >>> from auth_token import AuthToken >>> identifier = '12345678' >>> exp_minutes = 60 >>> secret_key = 'secret_key' >>> auth = AuthToken(identifier, exp_minutes, secret_key) >>> response = auth.encode() >>> print(response.token) 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1ODc5NTY5ODQsImlhdCI6MTU4Nzk1NjY4NCwic3ViIjoiMSIsInV1aWQiOiJhYTUwNWE3ZS1hMjEyLTRiOTktYmI3Yy02Njg3MjViZGQ3YTcifQ.l1uGXiZpZHuOt0iWmcksLsdkUQjYesH_OxmCpjJHWDk' ``` [Edit in Gitlab](https://gitlab.com/developerjoseph/auth-token)


نیازمندی

مقدار نام
>=1.7.1 pyjwt


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl auth-token-0.0.3:

    pip install auth-token-0.0.3.whl


نصب پکیج tar.gz auth-token-0.0.3:

    pip install auth-token-0.0.3.tar.gz