# GoodData Python SDK
The `gooddata-sdk` package provides a clean and convenient Python API to interact with [GoodData](https://www.gooddata.com/).
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](https://www.gooddata.com/docs/python-sdk/1.40.0) for more details.
## Requirements
- GoodData Cloud or GoodData.CN installation
- Python 3.9 or newer
## Installation
Run the following command to install the `gooddata-sdk` package on your system:
pip install gooddata-sdk
## Example
Compute an visualization:
```python
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](https://github.com/gooddata/gooddata-python-sdk/issues) to submit bugs
or request features.
## Changelog
See [Github releases](https://github.com/gooddata/gooddata-python-sdk/releases) for released versions
and a list of changes.
Raw data
{
"_id": null,
"home_page": null,
"name": "gooddata-sdk",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.9.0",
"maintainer_email": null,
"keywords": "gooddata, sdk, api, analytics, headless, business, intelligence, headless-bi, cloud, native, semantic, layer, sql, metrics",
"author": "GoodData",
"author_email": "support@gooddata.com",
"download_url": "https://files.pythonhosted.org/packages/3e/35/ed221811a93ae5132c5d6008c66ce2d77fd08e4ad1090882c40f93c2624f/gooddata_sdk-1.40.0.tar.gz",
"platform": null,
"description": "# GoodData Python SDK\n\nThe `gooddata-sdk` package provides a clean and convenient Python API to interact with [GoodData](https://www.gooddata.com/).\n\nAt the moment the SDK provides services to inspect and interact with the Semantic Model and consume analytics:\n* Catalog Workspaces Service\n* Catalog Workspace Content Service\n* Catalog Data Source Service\n* Catalog User Service\n* Catalog Permission Service\n* Catalog Organization Service\n* Visualizations Service\n* Compute Service\n* Table Service\n\nSee [DOCUMENTATION](https://www.gooddata.com/docs/python-sdk/1.40.0) for more details.\n\n## Requirements\n\n- GoodData Cloud or GoodData.CN installation\n- Python 3.9 or newer\n\n## Installation\n\nRun the following command to install the `gooddata-sdk` package on your system:\n\n pip install gooddata-sdk\n\n## Example\n\nCompute an visualization:\n```python\nimport gooddata_sdk\n\n# GoodData host in the form of uri\nhost = \"http://localhost:3000\"\n# GoodData user token\ntoken = \"some_user_token\"\nsdk = gooddata_sdk.GoodDataSdk.create(host, token)\n\nworkspace_id = \"demo\"\nvisualization_id = \"customers_trend\"\n# reads visualization from workspace\nvisualization = sdk.visualizations.get_visualization(workspace_id, visualization_id)\n# triggers computation for the visualization. the result will be returned in a tabular form\ntable = sdk.tables.for_visualization(workspace_id, visualization)\n\n# and this is how you can read data row-by-row and do something with it\nfor row in table.read_all():\n print(row)\n```\n\n\n## Bugs & Requests\n\nPlease use the [GitHub issue tracker](https://github.com/gooddata/gooddata-python-sdk/issues) to submit bugs\nor request features.\n\n## Changelog\n\nSee [Github releases](https://github.com/gooddata/gooddata-python-sdk/releases) for released versions\nand a list of changes.\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "GoodData Cloud Python SDK",
"version": "1.40.0",
"project_urls": {
"Documentation": "https://www.gooddata.com/docs/python-sdk/1.40.0",
"Source": "https://github.com/gooddata/gooddata-python-sdk"
},
"split_keywords": [
"gooddata",
" sdk",
" api",
" analytics",
" headless",
" business",
" intelligence",
" headless-bi",
" cloud",
" native",
" semantic",
" layer",
" sql",
" metrics"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "0ca8d5e4fac33d2b324a433abfeb0b55ca0b8c2ae2d747801a2169f868c56a68",
"md5": "0f763261487e3cfc5e21f23d9ee1f174",
"sha256": "5f56dfb60c1884d30e59266a886e097c21f7f7fad18399d64a2814ba69c95a9f"
},
"downloads": -1,
"filename": "gooddata_sdk-1.40.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "0f763261487e3cfc5e21f23d9ee1f174",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.9.0",
"size": 168711,
"upload_time": "2025-04-04T13:14:24",
"upload_time_iso_8601": "2025-04-04T13:14:24.075674Z",
"url": "https://files.pythonhosted.org/packages/0c/a8/d5e4fac33d2b324a433abfeb0b55ca0b8c2ae2d747801a2169f868c56a68/gooddata_sdk-1.40.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "3e35ed221811a93ae5132c5d6008c66ce2d77fd08e4ad1090882c40f93c2624f",
"md5": "935554059082774c95dd48b19e9ad42e",
"sha256": "6853d04872943099761c14a927cce2171cc9a16cbcb78293d8f3728420fd74d7"
},
"downloads": -1,
"filename": "gooddata_sdk-1.40.0.tar.gz",
"has_sig": false,
"md5_digest": "935554059082774c95dd48b19e9ad42e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.9.0",
"size": 124951,
"upload_time": "2025-04-04T13:14:38",
"upload_time_iso_8601": "2025-04-04T13:14:38.434011Z",
"url": "https://files.pythonhosted.org/packages/3e/35/ed221811a93ae5132c5d6008c66ce2d77fd08e4ad1090882c40f93c2624f/gooddata_sdk-1.40.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-04-04 13:14:38",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "gooddata",
"github_project": "gooddata-python-sdk",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "gooddata-sdk"
}