This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Adapt boto3 to pyramid with pyramid_services


from PyPI:

pip install pyramid_boto3

How to use

In configuration phase, include pyramid_boto3 after pyramid_services:

from pyramid.config import Configurator

def main(global_config, **settings):
    config = Configurator(settings=settings)

    # Your configuration

    return config.make_wsgi_app()

In view or traversing, you can get predefined boto3’s Client or Resource instances through request.find_service():

def some_view(request):
    client = request.find_service(name='boto3.client.filepot')

You need to define servie’s name (ex/ 'boto3.client.filepot') and arguments in your config file:


# your-config

boto3.sessions = mysession
boto3.session.mysession.core.config_file = /path/to/aws/config.ini
boto3.session.mysession.core.credentials_file = /path/to/aws/credentials.ini
boto3.session.mysession.core.profile = prof1
boto3.clients = filepot
boto3.client.filepot.session = mysession
boto3.client.filepot.service_name = s3

Configuration Keys

boto3. namespace prefix
boto3.sessions list of session’s names
boto3.session.NAME.* See: boto3.session.Session’s docs. param botocore_session are created from blow core. sub params.
boto3.session.NAME.core. See: botocore.session.Session’s docs.
boto3.configs list of client config’s names
boto3.config.NAME.* See: botocore.config.Config’s docs.
boto3.config.NAME.s3.* See: s3 parameter in botocore.config.Config’s docs.
boto3.clients list of client’s names
boto3.client.NAME.session name of session to create client.
boto3.client.NAME.config (optional) name of config to create client.
boto3.client.NAME.* See: boto3.session.Session.client()’s docs.
boto3.resources list of resource’s names.
boto3.resource.NAME.session name of session to create resource.
boto3.resource.NAME.config (optional) name of config to create resource.
boto3.resource.NAME.* See: boto3.session.Session.resource()’s docs.

Change History

0.1 - 2016-04-09

  • Initial release.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pyramid_boto3-0.1.tar.gz (5.9 kB) Copy SHA256 Checksum SHA256 Source Apr 9, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS HPE HPE Development Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting