Metadata-Version: 1.1
Name: bottlejwt
Version: 1.0.0
Summary: JWT plugin for bottle
Home-page: https://github.com/agalera/bottlejwt
Author: Alberto Galera Jimenez
Author-email: galerajimenez@gmail.com
License: GPL
Description: |pythonversions| |Codecov| |Travis|
        
        bottlejwt
        =========
        
        JWT plugin for bottle
        
        installation
        ------------
        
        Via pip: ``pip install bottlejwt``
        
        Or clone: ``git clone https://github.com/agalera/bottlejwt.git``
        
        example server:
        ---------------
        
        .. code:: python
        
           from bottle import get, install, run
           from bottlejwt import JwtPlugin
        
           def validation(auth, auth_value):
               print(auth, auth_value)
               return True
        
           @get("/", auth="any values and types")
           def example(auth):  # auth argument is optional!
               return "ok"
        
        
           install(JwtPlugin(validation, 'secret', algorithm='HS256'))
           run(host="0.0.0.0", port="9988")
        
        Test:
        -----
        
        .. code:: bash
        
           curl http://localhost:9988/?access_token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ
        
        Create Token:
        -------------
        
        .. code:: python
        
           from bottlejwt import JwtPlugin
        
           # is a singleton, you only need to initialize once.
           # * If you did install () also work
           JwtPlugin(validation, 'secret', algorithm='HS256')
        
           print(JwtPlugin.encode({'name': 'pepito'}))
        
        .. |pythonversions| image:: https://img.shields.io/pypi/pyversions/bottlejwt.svg
           :target: https://pypi.python.org/pypi/bottlejwt
        .. |Codecov| image:: https://img.shields.io/codecov/c/github/agalera/bottlejwt.svg
           :target: https://codecov.io/github/agalera/bottlejwt
        .. |Travis| image:: https://img.shields.io/travis/agalera/bottlejwt.svg
           :target: https://travis-ci.org/agalera/bottlejwt
        
        
        CHANGELOG
        =========
        
        0.0.13 (11-01-2017)
        -------------------
        
        -  Fix install package via pip!
        
        .. _section-1:
        
        0.0.12 (06-01-2017)
        -------------------
        
        -  Fix tests to python 2.6
        
        .. _section-2:
        
        0.0.11 (05-01-2017)
        -------------------
        
        -  Fix compatibility list in pypi
        -  Add python 3.6 to tests in travis
        
        .. _section-3:
        
        0.0.10 (05-01-2017)
        -------------------
        
        -  Add tests
        -  Travis integration
        -  Coverage 100%
        -  Full support python 2.7 and Pypy
        
        .. _section-4:
        
        0.0.9 (05-01-2017)
        ------------------
        
        -  Support python 2 (https://github.com/agalera/bottlejwt/pull/1) by
           stryker250
        
        0.0.1 to 0.0.8
        --------------
        
        -  Initial version
        
Keywords: bottlejwt
Platform: UNKNOWN
Classifier: Development Status :: 5 - Production/Stable
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License (GPL)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
