-
-
Save milancermak/b857ec4132f196958de58077f07f7ad7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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