Skip to main content

pyApp Extension for AIOBotocore

Project description

Let us handle the boring stuff!

https://img.shields.io/badge/code%20style-black-000000.svg Maintainability

This extension provides Session and client factories for aiobotocore to allow authorization details to be configured via pyApp settings.

The extension also provides checks to confirm the settings are correct.

The extension now supports the standardised pyApp-Messaging interface.

Installation

Install using pip:

pip install pyapp-aiobotocore

Install using pipenv:

pipenv install pyapp-aiobotocore

Optionally add the AWS_CREDENTIALS block into your runtime settings file, this is only required if you need to apply specific credentials, the default settings provided by this extension work with assumed roles within of the AWS environment:

AWS_CREDENTIALS = {
    "default": {
        "region_name": None,
        "aws_access_key_id": None,
        "aws_secret_access_key": None,
        "aws_session_token": None,
    }
}

Usage

The following example obtains an S3 client:

from pyapp_ext.aiobotocore import create_client

s3 = create_client("S3")

API

pyapp_ext.aiobotocore.create_client(service_name: str, *, credentials: str = None, **client_kwargs)

Get an async botocore service client instance.

pyapp_ext.aiobotocore.get_session(default: str = None) -> Session

Get named Session instance.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pyApp-AIOBotocore, version 1.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pyApp_AIOBotocore-1.2.0-py3-none-any.whl (7.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pyApp-AIOBotocore-1.2.0.tar.gz (4.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page