metriql Superset integration
Project description
Metriql Superset Integration
Synchronize Superset datasets from Metriql datasets. The idea is to leverage Metriql datasets in your Superset workflow without any additional modeling in Superset.
Usage
The library is available in PyPI so you can install it via pip as follows:
pip install metriql-superset
The library expects stdin
for the metriql metadata and interacts with Superset via session tokens. Here is an example:
curl http://metriql-server.com/api/v0/metadata | metriql-superset --metriql-url http://metriql-server.com --superset-username USERNAME --superset-password PASSWORD sync-database
You can use --file
argument instead of reading the metadata from stdin
as an alternative.
Available commands are create-database
, list-databases
, sync-database
.
FAQ
Why don't you use Superset API?
While Superset provides an API, it doesn't let updating / creating datasets and databases. Therefore, we create session token using internal APIs and interact with the internal APIs.
Do you support Preset Cloud?
Yes! Preset offers an API in their Enterprise Plan and you can use the API tokens to be able to synchronize the metrics of Superset deployments in your Preset account. The token
in the picture below should be passed as --superset-username
and the value of secret
should be passed as --superset-password
:
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
Built Distribution
Hashes for metriql_superset-0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2672b61f4fc41a5ab0ea1efca356c2a8a4fd56f38197257bedcff3f61d2fac00 |
|
MD5 | 2b1a130b31721bf6f3a3507214ffe047 |
|
BLAKE2b-256 | 9f22045910285d7bee7f8bc44c5daad2488f0ccf0c7b2af6f3c7b40b0194bbb5 |