Skip to content

Instantly share code, notes, and snippets.

View jesshart's full-sized avatar
📈
Looking for opportunities to grow my Data Science experience.

Jesse Hartman jesshart

📈
Looking for opportunities to grow my Data Science experience.
View GitHub Profile
@JamieCressey
JamieCressey / dict_to_dynamodb_item.py
Created April 24, 2016 20:56
Coverts a standard Python dictionary to a Boto3 DynamoDB item
def dict_to_item(raw):
if type(raw) is dict:
resp = {}
for k,v in raw.iteritems():
if type(v) is str:
resp[k] = {
'S': v
}
elif type(v) is int:
resp[k] = {