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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gooddata-sdk-1.3.1.dev2.tar.gz.
File metadata
- Download URL: gooddata-sdk-1.3.1.dev2.tar.gz
- Upload date:
- Size: 81.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
889621fd084b91d60aac233906bf008478099f657e1b9fe4bf418318b893a13f
|
|
| MD5 |
0e5354bc8111b72a371f16456dc1fee1
|
|
| BLAKE2b-256 |
9f32f8c6a98a026dd701f6410d07db25b94286d7333585eeca72d6373fa967b6
|
File details
Details for the file gooddata_sdk-1.3.1.dev2-py3-none-any.whl.
File metadata
- Download URL: gooddata_sdk-1.3.1.dev2-py3-none-any.whl
- Upload date:
- Size: 113.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.9.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7be1c0615ec4fe4919f50640c0d3e0c8dfe55a8e7e4cd54c8f2a57fd19276552
|
|
| MD5 |
c1ca5b36d2a0ca7cd314fe10f6be2201
|
|
| BLAKE2b-256 |
216214e29d2269ba80ac900ce39454dd8273de6e54fcbc184b8cc80e02513724
|