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/dashboard.dash: file created when exporting a dashboard on Sisense
  • tests/support_files/datasecurity.json: a list of data security rules
  • tests/support_files/hierarchy.json: a list of hierarchy objects
  • tests/support_files/permission.json: a list of permission objects
  • 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>",
    "dashboard": "<Dashboard's name used for testing>",
    "folder": "<Folder'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.2.2.tar.gz (20.2 kB view details)

Uploaded Source

Built Distribution

sisense-0.2.2-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file sisense-0.2.2.tar.gz.

File metadata

  • Download URL: sisense-0.2.2.tar.gz
  • Upload date:
  • Size: 20.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for sisense-0.2.2.tar.gz
Algorithm Hash digest
SHA256 5fa71c90e88c17c796f7bfd6adc1d5970d2b029f66b7a995f7248ee2e15f708f
MD5 00cb5f69755b6740a30d4d1d3215f180
BLAKE2b-256 003bd657265b0549c730d04b73cc27fc0f3feca48024bf41681c625c00aa7119

See more details on using hashes here.

File details

Details for the file sisense-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: sisense-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/61.2.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.7.9

File hashes

Hashes for sisense-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5013a17306815758ae42fee02566217c4940213a6f40e43ccc9c19bc71bacefe
MD5 090ce494f0c141f798aca42d7effb439
BLAKE2b-256 f1171e4e3b07491a1506f2b7340d8a3e36684b3743ba21dd8cde3409e10ca94f

See more details on using hashes here.

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