Transformers

Helper tools for translating between native and DynamoDB items.

dynamodb_encryption_sdk.transform.dict_to_ddb(item)[source]

Converts a native Python dictionary to a raw DynamoDB item.

Parameters:item (dict) – Native item
Returns:DynamoDB item
Return type:dict
dynamodb_encryption_sdk.transform.ddb_to_dict(item)[source]

Converts a raw DynamoDB item to a native Python dictionary.

Parameters:item (dict) – DynamoDB item
Returns:Native item
Return type:dict