Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 655 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 655 Bytes

Apinator-Databricks

apinator bindings for the Databricks API.

Example

from apinator_databricks.common import DatabricksContext
from apinator_databricks.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
    ...