# databricks-apps-python

Configures Python backends for Databricks Apps, handling framework deployment, OAuth authentication, and Lakebase connections.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode · 305 installs · ★ 368
- Author: databricks
- License: LicenseRef-Unknown · policy=link-only · description only; the file stays with the author
- Source: https://github.com/databricks/databricks-agent-skills/tree/HEAD/skills/databricks-apps-python/SKILL.md
- Updated: 2026-10-24
- HTML: https://affpapa.org/en/nevibecode/skills/databricks-apps-python

## What it does

This skill establishes architecture rules for Python services running on Databricks Apps. FastAPI served by uvicorn is the default choice here. The instructions also cover setups for Flask or Streamlit. It outlines start commands for `app.yaml`, service principal authentication, and user token forwarding.

The execution environment provides Ubuntu 22.04 with Python 3.11, 2 vCPU, and 6 GB RAM. Deployments strictly require Databricks CLI version 1.0.0 or higher. Without it, deployment will fail. The rules forbid hardcoded tokens: all resource links must rely on SDK `Config()` and `valueFrom` directives.

## Requirements
- Works with: Databricks

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-apps-python -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/databricks-apps-python/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/databricks-apps-python/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-apps-python -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/databricks-apps-python/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-apps-python -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/databricks-apps-python/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install databricks/databricks-agent-skills databricks-apps-python
```

2. **Manually: put the files in place**
- File: `.github/skills/databricks-apps-python/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-apps-python -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/databricks/databricks-agent-skills --path skills/databricks-apps-python
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/databricks-apps-python/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add databricks/databricks-agent-skills --skill databricks-apps-python -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/databricks/databricks-agent-skills/tree/HEAD/skills/databricks-apps-python/SKILL.md

## When to use it
- configure FastAPI production serving with uvicorn in Databricks
- connect Lakebase or SQL warehouse instances through app.yaml
- authenticate service principals using the Databricks SDK Config
- package and deploy apps through Databricks Asset Bundles

## Example prompts
- Create a FastAPI backend skeleton for Databricks Apps connected to Lakebase
- Configure app.yaml and service principal authentication using SDK Config
- Help me deploy a Databricks Python app using DABs

## Similar
- [sentry-python-sdk](https://affpapa.org/en/nevibecode/skills/sentry-python-sdk.md) — skill · 2600 installs
- [Python Security Scan](https://affpapa.org/en/nevibecode/skills/python-security-scan.md) — skill · 540 installs
- [neon-ai-gateway](https://affpapa.org/en/nevibecode/skills/neon-ai-gateway.md) — skill · 27700 installs
- [sql-queries](https://affpapa.org/en/nevibecode/skills/sql-queries.md) — skill · 4500 installs
- [migrating-dbt-project-across-platforms](https://affpapa.org/en/nevibecode/skills/migrating-dbt-project-across-platforms.md) — skill · 526 installs
- [python](https://affpapa.org/en/nevibecode/skills/python.md) — skill · 983 installs

From the same set: [databricks/databricks-agent-skills](https://affpapa.org/en/nevibecode/by/databricks/databricks-agent-skills.md) — 7 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
