Lostsoul
Lostsoul

Reputation: 26057

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?

Upvotes: 39

Views: 33080

Answers (5)

Dinesh Sonachalam
Dinesh Sonachalam

Reputation: 1379

I'm the author of Lucid-Dynamodb, a minimalist wrapper to AWS DynamoDB. It covers all the Dynamodb operations.

Reference: https://github.com/dineshsonachalam/Lucid-Dynamodb

Upvotes: 3

Old Panda
Old Panda

Reputation: 1616

This question has been years so I believe your problem was already resolved. Just want to mention that you could use boto3 to access DynamoDB as well nowadays.

Upvotes: 3

Jharrod LaFon
Jharrod LaFon

Reputation: 575

Another alternative is PynamoDB. PynamoDB provides an ORM like interface to DynamoDB and supports both Python 2 and Python 3. The entire DynamoDB API is supported by PynamoDB - including global and local secondary indexes, batch operations, binary attributes, queries, scans, etc.

Disclaimer: I wrote PynamoDB.

Upvotes: 29

yadutaf
yadutaf

Reputation: 7152

Disclaimer: I'm the current maintainer

You can use Dynamodb-mapper Python library. It's a simple/tiny abstraction layer that allows you to map plain Python object to DynamoDB. It also features a transaction engine.

For advanced tasks such as table management it is still better to directly use Boto (which we rely on, anyway).

Upvotes: 14

Related Questions