posit-dev / posit-sdk-py

Posit SDK for Python
https://posit-dev.github.io/posit-sdk-py/
MIT License
9 stars 4 forks source link

Implement Variants API #189

Open kmasiello opened 6 months ago

kmasiello commented 6 months ago

See https://pkgs.rstudio.com/connectapi/reference/VariantR6.html

Notably, the workflow we would like to enable with the sdk is triggering a variant to re-render and then subsequently send an email. Something along the lines of:

client = connect.Client()
content_variant = client.varient.find("default")
new_render =  content_variant.render()
new_render.send_mail(to="me")

Also see https://github.com/rstudio/connectapi/issues/257

tdstein commented 3 months ago

Partially implemented in https://github.com/posit-dev/posit-sdk-py/pull/236