Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
Initial support for Amazon DynamoDB. The module is implemented in two…
Browse files Browse the repository at this point in the history
… layers, a very low-level layer called Layer1 and a higher-level API called Layer2. This includes reasonable tests for both layers.
  • Loading branch information
garnaat committed Jan 18, 2012
1 parent 8b1ac91 commit 8ef550e
Show file tree
Hide file tree
Showing 15 changed files with 882 additions and 842 deletions.
16 changes: 16 additions & 0 deletions boto/__init__.py
Expand Up @@ -502,6 +502,22 @@ def connect_ia(ia_access_key_id=None, ia_secret_access_key=None,
calling_format=OrdinaryCallingFormat(),
is_secure=is_secure, **kwargs)

def connect_dynamodb(aws_access_key_id=None,
aws_secret_access_key=None,
**kwargs):
"""
:type aws_access_key_id: string
:param aws_access_key_id: Your AWS Access Key ID
:type aws_secret_access_key: string
:param aws_secret_access_key: Your AWS Secret Access Key
:rtype: :class:`boto.dynamodb.Layer2`
:return: A connection to the Layer2 interface for DynamoDB.
"""
from boto.dynamodb.layer2 import Layer2
return Layer2(aws_access_key_id, aws_secret_access_key, **kwargs)

def check_extensions(module_name, module_path):
"""
This function checks for extensions to boto modules. It should be called in the
Expand Down

0 comments on commit 8ef550e

Please sign in to comment.