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?
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.
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).
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With