GoodData Cloud 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
- Visualizations Service
- Compute Service
- Table Service
See DOCUMENTATION for more details.
Requirements
- GoodData Cloud or GoodData.CN installation
- Python 3.8 or newer
Installation
Run the following command to install the gooddata-sdk
package on your system:
pip install gooddata-sdk
Example
Compute an visualization:
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"
visualization_id = "customers_trend"
# reads visualization from workspace
visualization = sdk.visualizations.get_visualization(workspace_id, visualization_id)
# triggers computation for the visualization. the result will be returned in a tabular form
table = sdk.tables.for_visualization(workspace_id, visualization)
# 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.21.0.tar.gz
(102.7 kB
view hashes)
Built Distribution
gooddata_sdk-1.21.0-py3-none-any.whl
(139.6 kB
view hashes)
Close
Hashes for gooddata_sdk-1.21.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03aabcc97fbf043e408b2b2db17ebd769768ca8df9157ec28c7a71a256310bd6 |
|
MD5 | f61067071b9f6c62598ae70ea1276606 |
|
BLAKE2b-256 | 2b23be670ecca22d57061ee93360578b6d29b5708353fd1fc0814f1027b3cd73 |