Skip to main content

Sisense API interface in Python.

Project description

Sisense API

Documentation Status

Python interface for Sisense API.

Note

In development. Beta version available in:

$ pip install -i https://test.pypi.org/simple/ sisense

Install

$ pip install sisense

Getting started

from sisense import Sisense

sisense = Sisense(host, token)
datamodel = sisense.datamodel

new_datamodel = datamodel.clone('Datamodel copy')

build = new_datamodel.start_build('replace_all')
build.stop() 

For developers

Testing

To run all test:

$ make api-test

Support files

In order to test the API functions, you need to supply the following support files:

  • tests/support_files/cube.sdata: an elasticube schema + data
  • tests/support_files/dashboard.dash: a dashboard JSON file
  • tests/support_files/config/api_v09.json: a JSON with
{
    "host": "<host address>",
    "token": "<API token>",
    "elasticube": "<Elasticube's name used for testing>",
    "user_email": "<User e-mail used for testing>"
}
  • tests/support_files/config/api_v1.json: a JSON with
{
    "host": "<host address>",
    "token": "<API token>",
    "elasticube": "<Elasticube's name used for testing>",
    "user_email": "<User's e-mail used for testing>",
    "group_name": "<Group's name used for testing>"
}
  • tests/support_files/config/api_v2.json: a JSON with
{
    "host": "<host address>",
    "token": "<API token>",
    "datamodel": "<Elasticube's name used for testing>",
    "datamodel.oid": "<Elasticube's ID used for testing (must be the same datamodel)>",
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sisense-0.0.4.tar.gz (9.9 kB view hashes)

Uploaded Source

Built Distribution

sisense-0.0.4-py3-none-any.whl (16.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page