Skip to content

Instantly share code, notes, and snippets.

Last active Feb 14, 2019
What would you like to do?
import boto3
Table = boto3.resource('dynamodb').Table('foo')
def get_user(user_id):
ddb_response = Table.get_item(Key={'id': user_id})
return ddb_response.get('Item')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment