backends.dynamodb

AWS DynamoDB result store backend.

Module Contents

Classes

DynamoDBBackend(self,url=None,table_name=None,*args,**kwargs) AWS DynamoDB result backend.
class DynamoDBBackend(url=None, table_name=None, *args, **kwargs)

AWS DynamoDB result backend.

Raises:
celery.exceptions.ImproperlyConfigured:
if module :pypi:`boto3` is not available.
__init__(url=None, table_name=None, *args, **kwargs)
_get_client(access_key_id=None, secret_access_key=None)

Get client connection.

_get_table_schema()

Get the boto3 structure describing the DynamoDB table schema.

_get_or_create_table()

Create table if not exists, otherwise return the description.

_wait_for_table_status(expected="ACTIVE")

Poll for the expected table status.

_prepare_get_request(key)

Construct the item retrieval request parameters.

_prepare_put_request(key, value)

Construct the item creation request parameters.

_item_to_dict(raw_response)

Convert get_item() response to field-value pairs.

client()
get(key)
set(key, value)
mget(keys)
delete(key)