1、2024 Databricks Inc.All rights reserved1TOOLS FOR TOOLS FOR IMPROVING IMPROVING THE THE DEVELOPER DEVELOPER EXPERIENCEEXPERIENCETheresa HammerTheresa HammerJune 11,2024June 11,20242024 Databricks Inc.All rights reservedIDE PluginsOpenAPI ModelsSDKs(Go,Python,JavaScript,Java)Terraform ProviderDEVELOP
2、ER ECOSYSTEMDEVELOPER ECOSYSTEMWhat does the developer ecosystem entail?What does the developer ecosystem entail?Databricks CLI(DABs)2024 Databricks Inc.All rights reserved Databricks REST APIs are vast600 methods across 80 services10 authentication types across 3 clouds 73 iterators with 7 differen
3、t paginations Goal:Goal:idiomatic,complete,consistent,unified authentication,minimal dependencies Core SDKs:Core SDKs:Go,Python,Java,JavaScript(in beta)40+Databricks solutions built on top(e.g.CLI,Terraform,VS Code,UCX)3SDKsSDKsWhy Databricks SDKs?Why Databricks SDKs?2024 Databricks Inc.All rights r
4、eservedLookup how to authenticateGo to our REST API docsMake the request,parse the response from JSONPaginationRecursively list directoriesTo extend,learn an entirely new APIWithout the SDKWith the Python SDK Without the SDKWith the Python SDK 4SDKsSDKsExample:List all new objects in workspaceExampl
5、e:List all new objects in workspacefrom databricks.sdk import WorkspaceClientw=WorkspaceClient()w.workspace.list(/,notebooks_modified_after=1000)2024 Databricks Inc.All rights reservedUse cases Use cases Ad hoc experimentationScriptingInvoking the REST API directlyManage local authentication profile
6、sSync code(e.g.notebook)from IDE to workspace Unified authenticationUnified authenticationCommand GroupsCommand Groups(e.g.workspace,jobs,clusters)5CLICLIOverview Databricks CLIOverview Databricks CLIdatabricks -hdatabricks -hdatabricks -h2024 Databricks Inc.All rights reservedDeclarative format for