Python 中是否有 "dbutils.secrets.setToken"' 的等价物?

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

在 Scala 中,使用 Databricks,可以做到 dbutils.secrets.setToken(<value>)

有没有办法用 Python 做到这一点?尝试这样做时,我收到此错误:

'SecretsHandler' object has no attribute 'setToken'

要回答这个问题,dbutils.secrets.setToken 可以在 Python 中使用,但只能在本地解决方案中使用。