From 9a065a6327ade1f7ea287c8b4b40822a97d52c22 Mon Sep 17 00:00:00 2001 From: Albert Solana Date: Fri, 19 Jul 2019 10:33:11 +0200 Subject: [PATCH 1/2] Added requests as a requisit --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 4b4705e..f340656 100644 --- a/README.md +++ b/README.md @@ -16,6 +16,10 @@ Quick Start Guide ```sh $ pip install cryptography ``` +- `requests` library (just for testing and demo) + ```sh + $ pip install requests + ``` #### Running the included demo From c5e9cc4f953995ed1cb44f6d5cbcbec82d82762f Mon Sep 17 00:00:00 2001 From: Albert Solana Date: Fri, 19 Jul 2019 11:21:03 +0200 Subject: [PATCH 2/2] Update README.md --- README.md | 40 +++++++++++++++++++++++++++++++++------- 1 file changed, 33 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index f340656..09f77ec 100644 --- a/README.md +++ b/README.md @@ -11,17 +11,13 @@ Quick Start Guide #### Requirements - Python 3.6 or higher -- Cryptograhic libraries with RSA support and X509 capabilities +- Cryptograhic libraries with RSA support and X509 capabilities. This library will be auto-installed with `eidas_bridge` package - In python use `cryptography`, an easy-to-use library that contains the required crypto & x509 functions: ```sh $ pip install cryptography ``` -- `requests` library (just for testing and demo) - ```sh - $ pip install requests - ``` -#### Running the included demo +#### Running the included demo (from github repo) Clone the repository ```sh @@ -39,9 +35,39 @@ $ python3 -m venv env $ source env/bin/activate ``` +Install required `requests` library: +- `requests` library (just for testing and demo) + ```sh + $ pip install requests + ``` + Execute `eidas_demo`: ```sh -$ python eidas_demo.py +$ python demo/eidas_demo.py +``` + + +#### Installing eidas_bridge library + +Move to the base directory (example: `test-eidas-bridge`) +```sh +$ cd test-eidas-bridge +``` + +Create and activate python virtual environment: +```sh +$ python3 -m venv env +$ source env/bin/activate +``` + +Install `eidas-bridge`: + ```sh + $ python -m pip install [path_to_the_eidas_bridge_lib_file]/dist/eidas_bridge-0.1.0-py3-none-any.whl + ``` +If you want to test the demo, download demo directory from github repo, install required `requests` library and execute `eidas_demo.py`: +```sh +$ pip install requests +$ python demo/eidas_demo.py ``` #### Running Pytest suite tests