GoodData.CN Python SDK
Project description
GoodData Python SDK
The gooddata-sdk
package provides a clean and convenient Python API to interact with GoodData.
At the moment the SDK provides services to inspect and interact with the Semantic Model and consume analytics:
- Catalog Workspaces Service
- Catalog Workspace Content Service
- Catalog Data Source Service
- Catalog User Service
- Catalog Permission Service
- Catalog Organization Service
- Insights Service
- Compute Service
- Table Service
See DOCUMENTATION for more details.
Requirements
- GoodData Cloud or GoodData.CN installation
- 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 host in the form of uri
host = "http://localhost:3000"
# GoodData 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
gooddata-sdk-1.2.1a2.tar.gz
(66.4 kB
view hashes)
Built Distribution
Close
Hashes for gooddata_sdk-1.2.1a2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7f8100e46266ca8fbbf0353a45ca1d59fb4df53af777a14135ab7caba9da5ba4 |
|
MD5 | ce3be08656ff21bde8ba665b4f88f1b4 |
|
BLAKE2b-256 | e7b064bddf1a04b528a0d1ce340d7400d9e4ab41d8048ee2e5486ad4a6c742c1 |