Skip to main content

Adapt botocore to paste

Project description

Utility for botocore.session.get_session()

Install

from PyPI:

pip install botocore_paste

from source:

$ pip install -e .

How to use

If you use pyramid:

import botocore_paste

def main(global_config, **settings):
    boto_session = botocore_paste.session_from_config(settings)
    config = Configurator(settings=settings)

    # Some your configuration

    return config.make_wsgi_app()

Configuration Keys

See botocore.session.Session’s Documents.

Example ini-file:

botocore.profile =
botocore.credentials_file = ~/.aws/credentials
botocore.config_file = ~/.aws/config
botocore.metadata_service_num_attempts = 1
botocore.provider = aws
botocore.region =
botocore.data_path =
botocore.metadata_service_timeout = 1

All keys are not mandatory. If you don’t write any keys, botocore.session.Session instances are created by default.

Change History

0.1.1 - 2015-04-01

  • typo

0.1 - 2015-04-01

  • Initial release.

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

botocore_paste-0.1.1.tar.gz (3.7 kB view hashes)

Uploaded Source

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