From 6bc1823fefc7bc1cbf415be44faba751a8f22cf9 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Thu, 24 Aug 2017 07:43:04 -0700 Subject: [PATCH] Update README.rst --- README.rst | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 849dd32..8379c50 100644 --- a/README.rst +++ b/README.rst @@ -1,12 +1,20 @@ requests-http-signature: A Requests auth module for HTTP Signature ================================================================== - **requests-http-signature** is a `Requests `_ `authentication plugin `_ (``requests.auth.AuthBase`` subclass) implementing the `IETF HTTP Signatures draft RFC `_. It has no required dependencies outside the standard library. If you wish to use algorithms other than HMAC (namely, RSA and ECDSA algorithms specified in the RFC), there is an optional dependency on `cryptography `_. +Installation +------------ +:: + + pip install requests-http-signature + +Usage +----- + .. code-block:: python import requests @@ -31,12 +39,6 @@ incoming requests: HTTPSignatureAuth.verify(request, key_resolver=key_resolver) -Installation ------------- -:: - - pip install requests-http-signature - Asymmetric key algorithms (RSA and ECDSA) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ For asymmetric key algorithms, you should supply the private key as the ``key`` parameter to the ``HTTPSignatureAuth()``