/apinator-secoda

APInator bindings for the Secoda API

Primary LanguagePythonApache License 2.0Apache-2.0

apinator-secoda

apinator bindings for the Databricks API.

Example

from apinator_secoda.common import DatabricksContext
from apinator_secoda.unity_catalog import DatabricksUnityCatalogApi, uc_model

context = DatabricksContext(
        access_token="TOKEN",  # Will be kept secret
        account="account",
    )
api = DatabricksUnityCatalogApi(context)
shares: uc_model.ShareList = api.datashares.list()
for share in shares.shares:
    assert isinstance(share, uc_model.SharePartial)  # Not necessary, pydantic guarantees this
    ...