databricks-app-python

Automate building, configuring, and deploying Python Databricks applications with web frameworks.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill databricks-app-python-jingyiwng
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: databricks-app-python
Source: https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher/tree/main/.claude/skills/databricks-app-python
Command: npx skills add https://github.com/JingyiWng/databricks_ai_dev_kit_price_watcher --skill databricks-app-python-jingyiwng

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Provides a complete, opinionated guide for building, authenticating, connecting, and deploying Python web applications on Databricks so teams avoid ad-hoc, insecure, or non-portable app configurations and deployment mistakes.

Core Features & Use Cases

  • Framework guidance: Concrete patterns and deployment commands for Streamlit, Dash, Gradio, Flask, FastAPI, and Reflex.
  • Auth and resource best practices: Use SDK Config() for service principal auth, on-behalf-of user tokens for user-specific access, and app.yaml valueFrom for resource bindings.
  • Data & deployment patterns: Recipes for SQL warehouse queries, Lakebase (PostgreSQL) connectivity, model serving integration, and Databricks CLI or Asset Bundle deployment workflows.
  • Use Case: Build a Streamlit dashboard that queries Delta tables via a SQL warehouse, stores session state in Lakebase, and calls a model serving endpoint for predictions.

Quick Start

Scaffold a Python app, configure app.yaml with valueFrom resources, use Config() for authentication, and deploy the app with the Databricks CLI.

Frequently Asked Questions about databricks-app-python

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

FAQPage Schema
How do I deploy a Streamlit app on Databricks with SQL warehouse and model serving?

To deploy a Streamlit app on Databricks, configure app.yaml with valueFrom resource bindings for SQL warehouse and model serving, use Databricks SDK Config() for auth, and deploy via Databricks CLI or Asset Bundles.

Can I connect a Databricks Python app to Lakebase using psycopg2?

Yes, you can connect a Databricks Python app to Lakebase by adding psycopg2 as a non-preinstalled package, configuring the app.yaml with valueFrom resource bindings, and using Databricks SDK Config for authentication.

What's the best way to authenticate Databricks apps using service principals?

The best way to authenticate Databricks apps is using the Databricks SDK Config() for service principal auth, or on-behalf-of user tokens for user-specific access to ensure secure, portable configurations.

Does Databricks app deployment support FastAPI and Flask frameworks?

Yes, Databricks app deployment supports FastAPI and Flask, providing concrete patterns and correct deployment commands for these frameworks alongside Streamlit, Dash, Gradio, and Reflex.

Why do I need to add non-preinstalled packages when using Lakebase in Databricks apps?

You need to add non-preinstalled packages like psycopg2 when using Lakebase because Databricks apps require explicit dependency management for PostgreSQL connectivity to function correctly.

How do I configure app.yaml to bind data resources in Databricks apps?

You configure app.yaml to bind data resources using the valueFrom syntax, which securely maps Databricks SQL warehouse, Lakebase, or model serving endpoints into your Python app environment.