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
Close
Hashes for superset-api-client-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf57b487870265dfe0c4bbce94e1ec55917a801ef43ee19d52c9fed867903d50 |
|
MD5 | 94458bd2589e1a71e3126e866883dcd5 |
|
BLAKE2b-256 | e5f8c8aadff67984ffffc64defcb51e1653d99809d4a04f9f62c0852e591ad95 |