Core datastore API

datastore base class

Examples

Hello World

>>> import datastore.core
>>> ds = datastore.DictDatastore()
>>> hello = datastore.Key('hello')
>>> ds.put(hello, 'world')
>>> ds.contains(hello)
True
>>> ds.get(hello)
'world'
>>> ds.delete(hello)
>>> ds.get(hello)
None

Table Of Contents

Previous topic

datastore - simple, unified API for multiple data stores

Next topic

Keys

This Page