databricks-app-python

Build Python web apps, dashboards, ML demos, and APIs in Databricks.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires streamlit, dash, gradio, flask, fastapi, reflex, psycopg2-binary, asyncpg, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a comprehensive framework for building Python-based Databricks applications, automating tasks, and integrating with Databricks resources.

Core Features & Use Cases

  • Application Development: Build web apps, dashboards, ML demos, and REST APIs with popular Python frameworks like Dash, Streamlit, Gradio, Flask, FastAPI, and Reflex.
  • OAuth and User Authorization: Integrates OAuth for app and user authorization, supports service principal and on-behalf-of models.
  • Resource Management: Connects to SQL warehouses, Lakebase, model serving endpoints, and secrets for secure, portable applications.
  • Deployment: Offers deployment via CLI, Asset Bundles (DABs), and MCP tools for programmatic lifecycle management.
  • Use Case: Create a Streamlit web app that analyzes customer data, connects to a SQL warehouse, and presents insights in real-time.

Quick Start

Use the databricks-app-python skill to start building your Python-based Databricks application. Choose your framework and follow the Framework Selection guide.

Frequently Asked Questions about databricks-app-python

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

FAQPage Schema
How do I build a Python web app in Databricks that connects to a SQL warehouse?

This Skill facilitates building Python web apps in Databricks by integrating frameworks like Streamlit or Dash with SQL warehouses, enabling secure real-time data analysis and application deployment.

Can I use FastAPI and Flask to create REST APIs within Databricks?

Yes, you can build REST APIs in Databricks. This framework supports FastAPI and Flask, allowing you to develop and deploy APIs integrated with Databricks resources and OAuth authorization.

Does Databricks support OAuth for user authorization in Python applications?

Yes, Databricks supports OAuth for Python applications. This framework integrates OAuth for app and user authorization, supporting service principal and on-behalf-of models for secure resource access.

What is the best way to deploy a Dash dashboard on Databricks?

The best way to deploy a Dash dashboard on Databricks is via Asset Bundles, CLI, or MCP tools. These methods provide programmatic lifecycle management and configuration for your app resources.

How do I create an ML demo using Gradio in a Databricks environment?

You create an ML demo using Gradio in Databricks by leveraging the framework integration to build interactive demos. This connects directly to model serving endpoints and Lakebase resources for deployment.