databricks

Is there an equivalent for "dbutils.secrets.setToken"' in Python?


In Scala, with Databricks, it's possible to do dbutils.secrets.setToken(<value>).

Is there a way to do it with Python? When trying to do it, I receive this error:

'SecretsHandler' object has no attribute 'setToken'

Solution

  • To answer this question, dbutils.secrets.setToken can be used in Python but only when on-prem solutions.