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.

Source Distribution

pyApp-AIOBotocore-1.2.0.tar.gz (4.7 kB view details)

Uploaded Source

Built Distribution

pyApp_AIOBotocore-1.2.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file pyApp-AIOBotocore-1.2.0.tar.gz.

File metadata

  • Download URL: pyApp-AIOBotocore-1.2.0.tar.gz
  • Upload date:
  • Size: 4.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for pyApp-AIOBotocore-1.2.0.tar.gz
Algorithm Hash digest
SHA256 27647b038cb726ac811baa1fd58666f61b50693a716442e973608e5847d67d16
MD5 f179d6b4b139b03c51bef7020b439ea7
BLAKE2b-256 731ac60556fe987281ae4364716bbe0a15f39eb37306543d69401099debfa6c9

See more details on using hashes here.

File details

Details for the file pyApp_AIOBotocore-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: pyApp_AIOBotocore-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

File hashes

Hashes for pyApp_AIOBotocore-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6bd204c48941c1f3e19558941f79d8db508017d4d9ebbc6bb971a6ac07e3939a
MD5 333420b12def8f0f2baa1087acb56891
BLAKE2b-256 a8ad18b8baee4831da049fee162c05b8183fa9dbd57db62d89eb3b032ba37236

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page