Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 643 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 643 Bytes

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
    ...