It appears to be a lot of work to avoid purchasing a few Desktop licences, which are beneficial in and of themselves. Tableau Desktop allows you to edit workbooks quicker and more fluidly than the online, so having a few Desktop subscriptions is typically well worth the money.
The Data Extract and REST APIs, on the other hand, are designed to automate laborious processes.
def filldata():
df=pd.DataFrame()
# fill df up with data
# for example
# name (string)
# time (datetime)
# number (int)
return df
and you would need a corresponding function
def get_output_schema():
return pd.DataFrame({
'name' : prep_string(),
'time' : prep_datetime(),
'number' : prep_int()
})
then move over to tableau to point to the script and the function to call to get the data.