Metadata-Version: 2.0
Name: aap-client-python
Version: 0.1.2
Summary: AAP Client
Home-page: https://github.com/EMBL-EBI-TSI/aap-client-python
Author: Pau Ruiz Safont
Author-email: psafont@ebi.ac.uk
License: BSD-2-Clause
Keywords: aap jose jwt auth flask
Platform: UNKNOWN
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: BSD License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Requires-Python: !=2.6, !=3.1, !=3.2, !=3.3, <4.0
Requires-Dist: future (==0.16.0)
Requires-Dist: pyjwt[crypto] (==1.5.2)
Provides-Extra: dev
Requires-Dist: flask (==0.12.2); extra == 'dev'
Provides-Extra: flask
Requires-Dist: flask (==0.12.2); extra == 'flask'
Provides-Extra: test
Requires-Dist: flask (==0.12.2); extra == 'test'
Requires-Dist: pytest; extra == 'test'
Requires-Dist: python-testdata-tsi (==0.2.0.1); extra == 'test'
Requires-Dist: unittest2; extra == 'test'

.. image:: https://travis-ci.org/EMBL-EBI-TSI/aap-client-python.svg?branch=master
    :target: https://travis-ci.org/EMBL-EBI-TSI/aap-client-python

Overview
########

This library can be used to interface with the AAP, although it is also able to sign tokens.
(for testing the verification is done correctly)

Cryptographic files here shouldn't be used in production, they're just for testing :)

Usage
#####

To install the package, enable the virtual environment where it's going to be used and run
``$ pip install aap-client-python``

To use the Flask functionality this needs to be installed:
``$ pip install aap-client-python[flask]``

Developing
##########

To prepare the environment for developing the library, create a virtual environment, go to project root and then run:

::

  $ pip install -e .[dev]

Testing
#######
The recommended way is to test using detox.
This allows for testing in all the supported python versions using virtual environments effortlessly.
To use, install it, then run in the project root:

::

  $ pip install detox
  $ detox

Alternatively, testing can be done in the same environment as the dev one by installing it's dependecies, then running pytest:

::

  $ pip install -e .[test]
  $ python -m pytest -s


