My use case for data source is not predefined schema. I have hundreds of CTAS tables that generated after adhoc query from users. Is there python SDK code snippet to publish a single table Oracle data source directly to tableau online server. These tables tend to be in billions of rows, so we want to avoid tde files, they should be live connection to Oracle. Also using Tableau desktop to publish hundreds of tables manually is labor intensive.
Another non python approach is to create TDS file programmatically then use tabcmd publish to publish the TDS file. The only link I can find to create TDS file programmatically is here: https://tableauandbehold.com/2016/06/29/defining-a-tableau-data-source-programmatically/
It seems to be a less reliable hack of XML file.