Hi Team, I have yet another question: I want to us...
# gooddata-platform
Hi Team, I have yet another question: I want to use the GoodData Python SDK similar to how it is described here: https://medium.com/gooddata-developers/how-to-build-a-modern-data-pipeline-cfdd9d14fbea. The example also requires a “Token”. Would this be the SST Token that I receive after a login?
I’m looking specifically at this section:
Copy code
from gooddata_sdk import GoodDataSdk, CatalogWorkspace
import os
host = os.environ["GOODDATA_HOST"]
token = os.environ["GOODDATA_TOKEN"]
staging_workspace_id = os.environ["STAGING_WORKSPACE_ID"]
production_workspace_id = os.environ["PRODUCTION_WORKSPACE_ID"]
sdk = GoodDataSdk.create(host, token)
sdk.catalog_workspace.create_or_update(CatalogWorkspace(production_workspace_id, production_workspace_id))
declarative_ldm = sdk.catalog_workspace_content.get_declarative_ldm(staging_workspace_id)
declarative_analytics_model = sdk.catalog_workspace_content.get_declarative_analytics_model(staging_workspace_id)
sdk.catalog_workspace_content.put_declarative_ldm(production_workspace_id, declarative_ldm)
sdk.catalog_workspace_content.put_declarative_analytics_model(production_workspace_id, declarative_analytics_model)
Hi @Thomas Karbe, I believe that “GOODDATA_TOKEN” stands for personal access token for GD API. You can find some hints in articles below: https://www.gooddata.com/docs/python-sdk/1.3/getting-started/ https://www.gooddata.com/developers/cloud-native/doc/cloud/getting-started/create-api-token/ Just make sure that documentation version matches the version of your GD product.
Hi, yes exactly @Ivana Gasparekova. The article describes how to build a data pipeline with GoodData Cloud.
we’re actually on platform
@Thomas Karbe Oh, I see. The article that you’ve shared on the very beginning is also working with _GoodData.CN (cloud native version),_ that’s why I got confused a bit. Sorry for that. Please be so kind and check available SDK options for the Platform version: https://help.gooddata.com/doc/growth/en/expand-your-gooddata-platform/gooddata-sdk/
thanks, will have a look!
🤞 1