Skip to content

Instantly share code, notes, and snippets.

@milancermak
Last active February 14, 2019 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save milancermak/b857ec4132f196958de58077f07f7ad7 to your computer and use it in GitHub Desktop.
Save milancermak/b857ec4132f196958de58077f07f7ad7 to your computer and use it in GitHub Desktop.
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