Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I access Amazon DynamoDB via Python?

I'm currently using hbase with my Python apps and wanted to try out Amazon DynamoDB. Is there a way to use Python to read, write and query data?

like image 790
Lostsoul Avatar asked Jan 19 '12 23:01

Lostsoul


People also ask

How do I access Amazon Dynamo database?

You can access Amazon DynamoDB using the AWS Management Console, the AWS Command Line Interface (AWS CLI), or the DynamoDB API. To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

How do I access DynamoDB programmatically?

Sign up for AWS. Get an AWS access key (used to access DynamoDB programmatically). If you plan to interact with DynamoDB only through the AWS Management Console, you don't need an AWS access key, and you can skip ahead to Using the console. Configure your credentials (used to access DynamoDB programmatically).

How does Boto3 connect to DynamoDB?

Connecting AWS Python SDK (Boto3) with DynamoDBInstall the latest version of Boto3 by running the command below. This will install the Boto3 Python dependency, which is required for our code to run. Now we will connect with our local instance of DynamoDB using Python. We will use the code below to do so.


1 Answers

You can use boto3: https://github.com/boto/boto3

docs: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/dynamodb.html

api reference: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dynamodb.html

like image 190
virhilo Avatar answered Sep 21 '22 04:09

virhilo