Skip to main content

A Python SDK for interacting with Sisense API

Project description

📊 Sisense SDK (pysisense)

pysisense is a Python SDK designed for seamless and structured interaction with the Sisense API.
It simplifies complex API operations and allows you to automate and manage users, groups, dashboards, data models, and more.

✅ Built for automation, debugging, and extensibility.


📦 Installation

You can install pysisense from PyPI:

pip install pysisense

For local development, install in editable mode:

pip install -e .

🚀 Quick Start

1️⃣ Create your YAML config files

Create one or more YAML files (use the templates in examples/ as reference only):

  • config.yaml – for single-environment operations
  • source.yaml and target.yaml – for migration scenarios

Each file should follow this structure:

domain: "your-domain.com"
is_ssl: true
token: "<your_api_token>"

⚠️ Do not commit your tokens. The provided YAMLs contain placeholder structure only.

⚠️ Important: Use a Dedicated Admin Token

Some methods in this SDK require full administrative privileges to interact with Sisense resources (such as ownership changes, user migrations, or folder/dashboard access).

To avoid permission-related issues or incomplete operations:

It is recommended to use a new dedicated Sisense admin user's token when authenticating via your config.yaml.

Using restricted or scoped users may result in failures or inconsistent behavior, especially for:

  • Folder and dashboard ownership changes
  • Granting permissions across environments
  • System-wide migrations

2. Explore Example Guides

The examples/ folder contains Markdown guides. Each guide explains common workflows and includes copy-pasteable code snippets you can adapt in your own project:

  • access_management_example.md
    Identity & Governance — manage users, groups, folder access, and governance tasks (e.g., unused assets).

  • datamodel_example.md
    Data Modeling — work with datasets, tables, columns, and schema within Sisense data models.

  • dashboard_example.md
    Dashboard Lifecycle — retrieve, update, reassign ownership, and manage shares of dashboards.

  • migration_example.md
    Environment Migration — migrate users, dashboards, and data models across environments (e.g., dev → prod).

Note: These guides are not meant to be executed end-to-end. Copy the relevant snippets into your own Python files or notebooks, update configuration (YAML paths, IDs, etc.), and run them in your environment.


3️⃣ Logs

All logs are saved automatically to a local folder:

logs/pysisense.log

You don’t need to create this folder manually — it will be created at runtime in the same directory where you run your scripts.


✅ Features

  • 👥 User & Group Management – Create, update, delete, and fetch users or groups
  • 📊 Dashboard Management – Export, share, and migrate dashboards
  • 📦 Data Models – Explore, describe, and update schemas and security
  • 🔐 Permissions – Resolve and apply share rules (users & groups)
  • 🔄 Cross-Environment Migrations – Move dashboards, models, and users
  • 🧠 Smart Logging & Data Helpers – Auto log capture, CSV export, and DataFrame conversion
  • And many more – Refer to the documentation for full details

🔧 Design Philosophy

  • Pythonic SDK with class-based structure (Dashboard, DataModel, AccessManagement, Migration)
  • Modular YAML-based authentication
  • Built-in logging and exception handling
  • Designed for end-to-end automation and real-world use

📚 Documentation

Comprehensive module-level documentation is available in the docs/ folder:

  • Index – Overview of the SDK structure and modules
  • Sisense Client – Base API wrapper for all HTTP operations
  • Access Management – Manage users, groups, roles, and permissions
  • Data Model – Handle datasets, tables, schemas, security, and deployment
  • Dashboard – Retrieve, modify, and share Sisense dashboards
  • Migration – Migrate users, dashboards, and models between environments
  • Utils – Helper functions for export, formatting, and data operations

You can also explore:

  • Inline method docstrings using help() in Python or directly within your IDE.

📄 License

Licensed under the Apache License, Version 2.0.

You may obtain a copy of the License in the LICENSE file or at http://www.apache.org/licenses/LICENSE-2.0

This project also includes a NOTICE file with attribution information.

© 2025 Sisense Ltd. “Sisense” and related marks are trademarks of Sisense Ltd. and are not licensed under the Apache License.

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

pysisense-0.1.3.tar.gz (63.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pysisense-0.1.3-py3-none-any.whl (62.9 kB view details)

Uploaded Python 3

File details

Details for the file pysisense-0.1.3.tar.gz.

File metadata

  • Download URL: pysisense-0.1.3.tar.gz
  • Upload date:
  • Size: 63.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for pysisense-0.1.3.tar.gz
Algorithm Hash digest
SHA256 656f08d32b199b0633dfb8846ac98b50b7c348eeb53c5d206ddd9059e82ec4bb
MD5 7ddecf32fc8b9b00d21190dfa01085e9
BLAKE2b-256 30a1abaaa7d5734a412af38bad44b46f6714b2cb17f1f9faf67130d0f036b0c3

See more details on using hashes here.

File details

Details for the file pysisense-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: pysisense-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 62.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.12

File hashes

Hashes for pysisense-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bf30fe1339e4e1d3f2340bb3d1254c7068ac9dc83c12904f729c727ad19dbd3b
MD5 c4a2aa4763e9d0234c08c6b5d7c8dff7
BLAKE2b-256 5e2b75e680262fcccdbba19727676bdd12ae0f38961b264cef4c8ab78b4401dd

See more details on using hashes here.

Supported by

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