Metadata-Version: 2.0
Name: requests-awsv2-auth
Version: 1.1
Summary: AWS v2 auth support for Python-Requests.
Home-page: https://github.com/brutasse/requests-awsv2-auth
Author: Bruno Renié
Author-email: UNKNOWN
License: BSD
Platform: any
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: System Administrators
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Requires-Dist: requests

Requests-awsv2-auth
===================

AWS v2 signing support for Python-Requests.

Installation::

    pip install requests-awsv2-auth

Usage:

.. code-block:: python

    import requests
    from awsv2_auth import AwsV2Auth

    auth = AwsV2Auth('my-key', 'my-secret')
    response = requests.get('https://sos.exo.io/my-bucket',
                            auth=auth)

This can be used to generate pre-signed URLs as well:

.. code-block:: python

    auth = AwsV2Auth('my-key', 'my-secret')
    url = auth.pre_sign('https://sos.exo.io/my-bucket/path/to/file.txt',
                        method='GET',
                        expires=int(time.time()) + 3600,
                        headers=None)


