Skip to main content

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


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.3.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

superset_api_client-0.1.3-py3-none-any.whl (12.5 kB view details)

Uploaded Python 3

File details

Details for the file superset-api-client-0.1.3.tar.gz.

File metadata

  • Download URL: superset-api-client-0.1.3.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for superset-api-client-0.1.3.tar.gz
Algorithm Hash digest
SHA256 2e2ad32207d1b5d08a22361ea0180d4663a24ed8f15a99ff7e1858b5d02c5366
MD5 4a94b081c8099a264b8917f6cf97921a
BLAKE2b-256 841c75702800824ee5e3eb9916b5318bd61f804dcb48a86a18d9da5da54a2754

See more details on using hashes here.

File details

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

File metadata

  • Download URL: superset_api_client-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 12.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for superset_api_client-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 397d569a7648623055ddfd50cbb682a94ab8c11181f61d0cdd2ba9a6ea97b491
MD5 b1de8b4bca50c7c5cf89b4acfea03796
BLAKE2b-256 ea3b7c19c2973c1732a3b82712555f2b3daa1535cd71e60f098e1df6b6e7bae3

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