This repo includes python driver and app templates with databox-python library with basic APIs. Copy lib folder in your application directory and import lib in your driver/app python file.
import lib as databox
Databox python library provides following funtions:
databox.waitForStoreStatus(href, status, maxRetries)
databox.makeStoreRequest(method, jsonData, url)
databox.makeArbiterRequest(method, path, data)
databox.requestToken(hostname, endpoint, method)
databox.getRootCatalog()
databox.listAvailableStores()
databox.registerDatasource(href, metadata)
databox.export.longpoll(destination, payload)
databox.key_value.read(href, key)
databox.key_value.write(href, key, data)
databox.time_series.latest(store_href, dataSourceID)
databox.time_series.since(store_href, dataSourceID, startTimestamp)
databox.time_series.range(store_href, dataSourceID, startTimestamp, endTimestamp)
databox.time_series.write(store_href, dataSourceID, data)
The usecases of these functions for the test purpose included in the Sample Driver and the sample App.