sprockets.clients.dynamodb/sprockets/clients/dynamodb/__init__.py

24 lines
705 B
Python
Raw Normal View History

try:
from .connector import DynamoDB
except ImportError as error:
def DynamoDB(*args, **kwargs):
raise error
2016-02-25 16:49:53 +00:00
version_info = (0, 0, 0)
__version__ = '.'.join(str(v) for v in version_info)
2016-03-02 16:32:04 +00:00
# Response constants
TABLE_ACTIVE = 'ACTIVE'
TABLE_CREATING = 'CREATING'
TABLE_DELETING = 'DELETING'
TABLE_DISABLED = 'DISABLED'
TABLE_UPDATING = 'UPDATING'
# Table stream view type constants
STREAM_VIEW_NEW_IMAGE = 'NEW_IMAGE'
STREAM_VIEW_OLD_IMAGE = 'OLD_IMAGE'
STREAM_VIEW_NEW_AND_OLD_IMAGES = 'NEW_AND_OLD_IMAGES'
STREAM_VIEW_KEYS_ONLY = 'KEYS_ONLY'
_STREAM_VIEW_TYPES = (STREAM_VIEW_NEW_IMAGE, STREAM_VIEW_OLD_IMAGE,
STREAM_VIEW_NEW_AND_OLD_IMAGES, STREAM_VIEW_KEYS_ONLY)