Replace Extract in Packaged Workbook
還沒有人認領這個 Issue。
評估
研究方向
Start with tableaudocumentapi.Workbook and its save_as method, then compare the existing .twb XML reference replacement with the packaging behavior of .twbx files. Investigate how the connection's .tde extract is represented in a packaged workbook. Done means replacing the extract while preserving the table definition and producing a self-contained new_workbook.twbx.
由索引模型根據 Issue 內容生成。
描述
I'm trying to figure out how to replace an extract in a packaged workbook with a different extract that has the same table definition. I can use the Tableau SDK to create a new .tde, but it looks like there aren't python methods to replace an extract in a packaged workbook.
I'm imagining this would look something like this:
from tableaudocumentapi import Workbook
sourceWB = Workbook('workbook.twbx')
sourceWB.datasources[0].connections[0].extract = "MY-NEW-EXTRACT.tde"
#OR sourceWB.datasources[0].connections[0].extract.package('new-extract.tde')
sourceWB.save_as('new_workbook.twbx')
I can replace an extract in a .twb file by hacking the xml and changing references, but the "save_as" method doesn't actually package the workbook so that the connection is no longer dependent on a .tde file.
- 主要語言
- Python
- 星號
- 363
- 分支
- 183
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
tableau/document-api-python 的其他 Issue
-
難度 5/5 一週以上 新手友好度 20/100
tableau/document-api-python#270 ·
-
難度 4/5 3-5 天 新手友好度 25/100
tableau/document-api-python#260 ·
-
docs
難度 2/5 1-3 小時 新手友好度 55/100
tableau/document-api-python#258 ·
-
難度 5/5 一週以上 新手友好度 30/100
tableau/document-api-python#251 · 2 則留言 ·
-
難度 5/5 一週以上 新手友好度 20/100
tableau/document-api-python#250 · 2 則留言 ·
查看 tableau/document-api-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
anthropics/skills#1811 · 1 則留言 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
speaches-ai/speaches#678 ·
-
bug
難度 2/5 1-3 小時 新手友好度 75/100
datalayer/mcp-compose#42 ·
-
難度 2/5 1-3 小時 新手友好度 75/100
conda-forge/spacy-feedstock#177 ·
-
難度 2/5 1-3 小時 新手友好度 70/100
UKGovernmentBEIS/inspect_evals#2523 ·