Skip to content

Latest commit

 

History

History
executable file
·
55 lines (35 loc) · 1.24 KB

README.md

File metadata and controls

executable file
·
55 lines (35 loc) · 1.24 KB

datastore-dynamo

datastore implementation for AWS DynamoDB

See datastore.

Install

From pypi (using pip):

sudo pip install datastore.dynamo

From pypi (using setuptools):

sudo easy_install datastore.dynamo

From source:

git clone https://github.com/RentMethod/datastore.dynamo/
cd datastore.dynamo
sudo python setup.py install

License

datastore.dynamo is under the MIT License.

Contact

datastore.dynamo is written by Willem Bult. It is largely based on datastore.mongo written by Juan Batiz-Benet.

Project Homepage: https://github.com/RentMethod/datastore.dynamo

Hello World

>>> import datastore.dynamo
>>> import boto
>>>
>>> conn = boto.dynamodb2.connect_to_region('us-west-2', aws_access_key_id='key',aws_secret_access_key='key')
>>> ds = datastore.dynamo.DynamoDatastore(conn)
>>>
>>> hello = datastore.Key('hello')
>>> ds.put(hello, 'world')
>>> ds.contains(hello)
True
>>> ds.get(hello)
'world'
>>> ds.delete(hello)
>>> ds.get(hello)
None