Skip to content

Instantly share code, notes, and snippets.

@milancermak

milancermak/models.py Secret

Last active Feb 14, 2019
Embed
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
You can’t perform that action at this time.