databricks-python-sdk

Guide Databricks Python SDK setup, authentication, and WorkspaceClient workflows.

27|9|Updated Feb 3, 2026
One-click install
npx skills add https://github.com/datasciencemonkey/claude-code-cli-bricks --skill databricks-python-sdk-datasciencemonkey
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-python-sdk
Source: https://github.com/datasciencemonkey/claude-code-cli-bricks/tree/main/.claude/skills/databricks-python-sdk
Command: npx skills add https://github.com/datasciencemonkey/claude-code-cli-bricks --skill databricks-python-sdk-datasciencemonkey

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill provides structured guidance and practical examples to help developers adopt the Databricks Python SDK, simplifying setup, authentication, and interaction with Databricks APIs.

Core Features & Use Cases

  • Guidance on environment setup, installation, and authentication patterns (environment variables, profiles, and Azure service principal where applicable).
  • Ready-to-run examples for common workflows using WorkspaceClient: clusters, jobs, SQL warehouses, Unity Catalog, and data access.
  • Quick-start paths for integrating the SDK into Python projects, notebooks, or automation scripts.

Quick Start

  • Install the Databricks Python SDK: pip install databricks-sdk
  • Authenticate via environment variables (DATABRICKS_HOST, DATABRICKS_TOKEN) or a ~/.databrickscfg profile
  • Initialize the client and run a simple operation, e.g., list clusters with WorkspaceClient().clusters.list()

Frequently Asked Questions about databricks-python-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I authenticate the Databricks Python SDK using environment variables?

To authenticate the Databricks Python SDK, set the DATABRICKS_HOST and DATABRICKS_TOKEN environment variables, or use a ~/.databrickscfg profile to initialize the WorkspaceClient securely.

How do I list Databricks clusters using the Python SDK?

You can list Databricks clusters by initializing the WorkspaceClient and calling the clusters.list() method, which provides a synchronous SDK interaction to manage and view your compute resources.

Can I manage Unity Catalog and SQL warehouses with the Databricks Python SDK?

Yes, the Databricks Python SDK supports managing Unity Catalog, SQL warehouses, clusters, and jobs through the WorkspaceClient, providing structured guidance and ready-to-run examples for these common workflows.

What is the best way to set up Databricks Connect for Python automation scripts?

The best way to set up Databricks Connect is by installing the databricks-sdk package via pip and configuring authentication through environment variables or profiles to integrate the SDK into your automation scripts.

Does the Databricks Python SDK support Azure service principal authentication?

Yes, the Databricks Python SDK supports Azure service principal authentication patterns alongside environment variables and local configuration profiles to ensure secure credential handling for your workflows.