- See datastore.
- See titan.
- See thunderdome.
From pypi (using pip):
sudo pip install datastore.titan
From pypi (using setuptools):
sudo easy_install datastore.titan
From source:
git clone https://github.com/datastore/datastore.titan/
cd datastore.titan
sudo python setup.py install
datastore.titan is under the MIT License.
datastore.titan is written by Juan Batiz-Benet.
Project Homepage: https://github.com/datastore/datastore.titan
Feel free to contact me. But please file issues in github first. Cheers!
>>> import thunderdome
>>> import datastore.titan
>>>
>>> from thunderdome.connection import setup
>>> setup(['localhost'], 'graph')
>>> ds = datastore.titan.TitanDatastore() # uses global connection.
>>>
>>> class Person(thunderdome.Vertex):
>>> name = thunderdome.Text()
>>>
>>> juan = Person.create(name='Juan BB')
>>> juan_key = Key(juan.vid)
>>> ds.contains(juan_key)
True
>>> ds.get(juan_key).name
'Juan BB'
>>> ds.delete(juan_key)
>>> ds.get(juan_key)
None