GoodData.CN Python SDK
Project description
GoodData Python SDK
The gooddata-sdk
package provides a clean and convenient Python API to interact with GoodData.CN.
At the moment the SDK provides services to inspect and interact with the Semantic Model and consume analytics:
- Catalog Service
- Insights Service
- Compute Service
- Table Service
See DOCUMENTATION for more details.
Requirements
-
GoodData.CN installation; either running on your cloud infrastructure or the free Community Edition running on your workstation
-
Python 3.7 or newer
Installation
Run the following command to install the gooddata-sdk
package on your system:
pip install gooddata-sdk
Example
Compute an insight:
import gooddata_sdk
# GoodData.CN host in the form of uri eg. "http://localhost:3000"
host = "http://localhost:3000"
# GoodData.CN user token
token = "some_user_token"
sdk = gooddata_sdk.GoodDataSdk.create(host, token)
workspace_id = "demo"
insight_id = "customers_trend"
# reads insight from workspace
insight = sdk.insights.get_insight(workspace_id, insight_id)
# triggers computation for the insight. the result will be returned in a tabular form
table = sdk.tables.for_insight(workspace_id, insight)
# and this is how you can read data row-by-row and do something with it
for row in table.read_all():
print(row)
Bugs & Requests
Please use the GitHub issue tracker to submit bugs or request features.
Changelog
See Github releases for released versions and a list of changes.
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
Hashes for gooddata_sdk-1.1.1a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85729f1f3ed4740043c450db29800df64d3380f28403b674f305567cc9e8dfc7 |
|
MD5 | 5a42d0b74b39ce361a8d6e76aa9b7165 |
|
BLAKE2b-256 | 2ca8a52b6b0072f77c78cbc86acb40a0882096c83daa80101c97ce60f1bf1d3f |