Welcome

damas-core API

Programming Interface

Python

Import the damas Python module then connect to this server:
Python 2.7.13 (default, Sep 26 2018, 18:42:22) 
[GCC 6.3.0 20170516] on linux2
Type "help", "copyright", "credits" or "license" for more information.


>>> import damas
>>> project = damas.http_connection('https://serveripaddr/api')


# list every node ids
>>> project.search("*")


# read every nodes
>>> project.read(project.search("*"))


# create an empty node
>>> project.create({})