Skip to content

datastore/datastore.titan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

datastore-titan

datastore implementation for titan

Install

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

License

datastore.titan is under the MIT License.

Contact

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!

Hello World

>>> 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

About

Datastore implementation for Titan graph database.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages