databricks-python-sdk

Manage Databricks resources via Python SDK, Connect, CLI, and REST API.

3|Updated Jan 2, 2025
One-click install
npx skills add https://github.com/ScottHMcKean/genai_notebooks --skill databricks-python-sdk-scotthmckean
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-python-sdk
Source: https://github.com/ScottHMcKean/genai_notebooks/tree/main/.cursor/skills/databricks-python-sdk
Command: npx skills add https://github.com/ScottHMcKean/genai_notebooks --skill databricks-python-sdk-scotthmckean

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies and accelerates Databricks development by providing comprehensive guidance and code examples for interacting with Databricks services via its Python SDK, Databricks Connect, CLI, and REST API.

Core Features & Use Cases

  • Programmatic Control: Manage Databricks resources like clusters, jobs, SQL warehouses, and Unity Catalog objects directly from Python.
  • Local Development: Use Databricks Connect to run Spark code locally against Databricks clusters.
  • API Interaction: Access Databricks REST APIs for advanced or unsupported operations.
  • Use Case: Automate the creation and teardown of Databricks clusters for batch processing jobs, or programmatically query data from Unity Catalog tables using SQL.

Quick Start

Use the databricks-python-sdk skill to list all running clusters in your Databricks workspace.

Frequently Asked Questions about databricks-python-sdk

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

FAQPage Schema
How do I manage Databricks clusters and jobs using Python?

You can manage Databricks clusters, jobs, and SQL warehouses directly from Python using the Databricks Python SDK. It provides programmatic control to automate the creation, teardown, and configuration of resources for batch processing.

Can I run Spark code locally against Databricks clusters?

Yes, Databricks Connect enables local development by allowing you to run Spark code locally against Databricks clusters. This integration streamlines testing and execution workflows without requiring direct cluster deployment.

What is the best way to access Databricks REST APIs for unsupported operations?

The best way to access Databricks REST APIs for advanced or unsupported operations is through the Databricks Python SDK. It provides direct API interaction capabilities for managing Unity Catalog objects, model serving, and vector search.

Does the Databricks Python SDK support asynchronous applications?

Yes, the Databricks Python SDK includes essential patterns for asynchronous applications and error handling. This support allows developers to build robust, non-blocking integrations when querying data from Unity Catalog tables using SQL.

How do I programmatically query data from Unity Catalog tables?

You programmatically query data from Unity Catalog tables using SQL via the Databricks Python SDK. It provides code examples and direct API access to interact with Unity Catalog objects and SQL warehouses for data retrieval.