damas-core

damas-core API

Python

Install the requests module with pip:
pipenv install requests
Or with Debian:
apt install python-requests
Then import the damas-core client module for Python and 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.


# load the module
import damas

# connect to this server
project = damas.http_connection("https://serveripaddr")


# list every node identifiers
project.search("*")


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


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