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
superset-api-client-0.1.4.tar.gz
(10.6 kB
view details)
Built Distribution
File details
Details for the file superset-api-client-0.1.4.tar.gz
.
File metadata
- Download URL: superset-api-client-0.1.4.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a8d1e1dc7c171d83140b8d19975a7d5013f7fca80c38d3595d70c5975b8bda10 |
|
MD5 | 0f4a631def43d439f00e3a4513c83550 |
|
BLAKE2b-256 | e0ebe2304b1bb8e1986f2785b941ffb65f8a6dd47af8c2811c80a7cc5ab0166f |
File details
Details for the file superset_api_client-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: superset_api_client-0.1.4-py3-none-any.whl
- Upload date:
- Size: 13.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9ad8a0956b0ffcd424c9cf9f770929e3549f7ece6de08a16e0d2127a88eb9aba |
|
MD5 | 885badeeef6f0512846ed82b83b62811 |
|
BLAKE2b-256 | 8bfa2bf3f5c4247444368fe2f326cca381976ff0dbf0df2991ac2f63ebf85da9 |