A simple REST Api Client for Apache-Superset
Project description
superset-api-client
A Python Client for Apache Superset REST API.
This is a Alpha version. Stability is not guaranteed.
Usage
Setup a superset client:
from supersetapiclient.client import SupersetClient
client = SupersetClient(
host="http://localhost:8080",
username="admin",
password="admin",
)
Get all dashboards or find one by name:
# Get all dashboards
dashboards = client.dashboards.find()
# Get a dashboard by name
dashboard = client.dashboards.find(dashboard_title="Example")[0]
Update dashboard colors, some properties and save changes to server:
# Update label_colors mapping
print(dashboard.colors)
dashboard.update_colors({
"label": "#fcba03"
})
print(dashboard.colors)
# Change dashboard title
dashboard.dashboard_title = "New title"
# Save all changes
dashboard.save()
Development
You will need Docker and docker-compose in order to run development environment. To start development environnement run:
docker-compose up -d
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for superset-api-client-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2e2ad32207d1b5d08a22361ea0180d4663a24ed8f15a99ff7e1858b5d02c5366 |
|
MD5 | 4a94b081c8099a264b8917f6cf97921a |
|
BLAKE2b-256 | 841c75702800824ee5e3eb9916b5318bd61f804dcb48a86a18d9da5da54a2754 |
Close
Hashes for superset_api_client-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 397d569a7648623055ddfd50cbb682a94ab8c11181f61d0cdd2ba9a6ea97b491 |
|
MD5 | b1de8b4bca50c7c5cf89b4acfea03796 |
|
BLAKE2b-256 | ea3b7c19c2973c1732a3b82712555f2b3daa1535cd71e60f098e1df6b6e7bae3 |