sidruud/agentic-etl-to-databricks-bot
title: Agentic ETL to Databricks Bot sdk: gradio sdkversion: 6.5.1 appfile: gradioapp.py pythonversion: 3.11 license: apache-2.0 ---
๐ Agentic ETL to DataBricks Bot - HF Spaces Ready-to-Deploy Package
Version: 1.0 | Date: February 9, 2026 Status: โ Production Ready for Hugging Face Spaces
๐ฆ What's in This Package
This folder contains everything you need to deploy the Agentic ETL to DataBricks Bot on Hugging Face Spaces in just 3 steps (5 minutes).
hf-spaces-deployment/
โโโ gradio_app.py ......................... Main web interface
โโโ requirements.txt ...................... Python dependencies (HF optimized)
โโโ .gitignore ........................... Exclude cache/logs/large files
โโโ HF_SPACES_DEPLOYMENT_GUIDE.md ........ Full step-by-step guide
โโโ PACKAGE_README.md .................... Quick overview
โโโ README.md (this file) ................ You are here
โโโ src/ ................................. Agent code (DataStage, ODS, S2T, Planner, etc.)
โโโ .github/skill/ ....................... Policies & Instructions
โโโ docs/skills/ ......................... Knowledge pack (70+ skill files)
โโโ references/databricks/ ............... Notebook templates
โโโ artifacts/ ........................... Runtime output directory (empty)
โ โโโ bronze/
โ โโโ silver/
โ โโโ gold/
โ โโโ tests/
โ โโโ reports/
โ โโโ metrics/
โ โโโ cache/
โโโ inputs/ ............................. User input directory (empty)
โโโ dsx/
โโโ s2t/๐ฏ Deploy in 3 Steps
Step 1: Create Hugging Face Space (1 minute)
- Go to: https://huggingface.co/spaces
- Click "Create New Space"
- Fill in:
- Space name:
agentic-etl-to-databricks-bot - Space SDK: Gradio (select from dropdown)
- Visibility: Public
- License: Apache 2.0
Step 2: Upload This Package (2 minutes)
Option A: Git (Recommended)
# 1. Clone your new Space
git clone https://huggingface.co/spaces/YOUR_USERNAME/agentic-etl-to-databricks-bot
cd agentic-etl-to-databricks-bot
# 2. Copy all files from this package
xcopy* ..\..\etl_to_databricks_agent_demo\hf-spaces-deployment\* . /E
# 3. Push to Hugging Face
git add .
git commit -m "Deploy agentic ETL bot - Initial release"
git pushOption B: Web Upload (Simpler - Drag & Drop)
- Open your Space's web editor
- Drag & drop all folders into the editor
- Files auto-commit
Step 3: Done! (1-2 minutes for first build)
Your bot is live at:
https://huggingface.co/spaces/YOUR_USERNAME/agentic-etl-to-databricks-botFirst deployment: 30-60 seconds (installs dependencies) Subsequent loads: 2-5 seconds
โจ Features (Once Deployed)
Users can access these features via a web interface:
Auto NLP Router ๐ค
Type: "migrate inputs/dsx/example.dsx silver only"
โ Auto-routed to correct agentAgent Team (12 Active)
- โก LeadAgent (Orchestrator)
- ๐ DataStageAgent (DSX Parser)
- ๐ OdsDsxAgent (ODS Analysis)
- ๐ S2TAgent (Excel Mapper)
- ๐ PlannerAgent (Policy Planning)
- ๐ ๏ธ NotebookBuilderAgent (Code Gen)
- โ DataQualityAgent (DQ Checks)
- ๐งช UnitTestAgent (Test Gen)
- ๐๏ธ CodeReviewAgent (Review)
- ๐ MetricsAgent (Metrics)
- ๐ ProjectManagerAgent (Reports)
- โญ ReferenceStandardAgent (Standards)
All Commands Reference
- โ Core: auto, lead, analyze, plan, migrate
- โ ODS/S2T: analyze-ods, plan-ods, migrate-ods, s2t
- โ Batch: migrate-batch, convert, list-templates
- โ Utils: memory, status, clear-cache
- โ Options: --llm, --mock, --layers, --template, --yes
Runtime Mode Toggle
- ๐ข Mock Mode (default, no API key needed)
- ๐ฆ LLM Mode (with OpenAI API key)
๐ง Environment Variables (Optional)
If you want LLM mode enabled:
- Go to your Space Settings โ Repository secrets
- Add:
OPENAI_API_KEY = sk-...
LLM_PROVIDER = openaiOtherwise, bot runs in Mock mode (fully functional, no API key needed).
๐จ Customization (Optional)
Edit files in the Space web editor:
Change colors (futuristic cyan/orange theme):
- File:
gradio_app.py - Lines: 18-36 (CSS variables)
Change title:
- File:
gradio_app.py - Line: ~710 (hero-title)
Update agent roles:
- File:
gradio_app.py - Search for "Agent Team" section
๐ What's Included
โ Included
- โ
Source code (
src/folder - all agents) - โ
Policies & instructions (
.github/skill/) - โ
Skills knowledge pack (
docs/skills/- 70+ files) - โ
Notebook templates (
references/databricks/) - โ
Empty runtime directories (
artifacts/,inputs/)
โ NOT Included (by design)
- โ Virtual environments (
.venv/- recreated by HF) - โ Python caches (
__pycache__/- auto-generated) - โ Generated notebooks (
*.ipynb- created at runtime) - โ API key secrets (use Space secrets instead)
- โ Sample DSX files (add your own to
inputs/dsx/)
๐ Size Reference
๐จ Troubleshooting
App takes a long time to start
Answer: First deployment installs dependencies (30-60s). Subsequent loads are instant.
"ModuleNotFoundError: No module named 'src'"
Solution: Ensure src/ folder is at the root level (same as gradio_app.py)
"Port already in use"
No action needed: HF Spaces auto-assigns ports
Missing dependencies
Fix: Verify requirements.txt is in the root directory
API key not working
Check:
- Space Settings โ Repository secrets
- Correct key format:
sk-... - Restart the Space (Settings โ Restart)
๐ Full Documentation
For detailed deployment instructions, see:
- HF_SPACES_DEPLOYMENT_GUIDE.md - Step-by-step with screenshots
- PACKAGE_README.md - Package overview
๐ Security Notes
โ
No sensitive data in package โ
API keys stored securely in Space secrets โ
Input validation: Paths restricted to inputs/ and artifacts/ โ
Source of truth: CLI (data_engineering_agent.py) for full control
๐ How It Works
User Input (Web UI)
โ
gradio_app.py (Gradio interface)
โ
Auto NLP Router (natural language โ structured commands)
โ
Lead Agent (auto-detect workflow: DSX/ODS/S2T)
โ
Specialized Agents (Parse โ Plan โ Generate โ Test โ Review)
โ
Output (Notebooks in artifacts/, reports, metrics)๐ก Pro Tips
Team Access
- Share the URL publicly - no login needed!
- Anyone with the link can use it
Embed in Documentation
Use the HF Embed button to embed the bot in your docs/wiki
Custom Domain (Paid)
- Upgrade to HF Pro
- Add custom domain in Space settings
- Share professional-looking URL
Monitoring
- Check Space Logs if something breaks
- Logs show error messages and startup info
๐ค Contributing
If you improve the bot:
- Update the Space repository
- Test changes locally first
- Commit & push to update the live bot
๐ Support
- Hugging Face Docs: https://huggingface.co/docs/hub/spaces
- This repo: GitHub Issues on your fork
- Community: Hugging Face Discussions
๐ License
Apache License 2.0
๐ Ready to Deploy?
- โ You have this package
- โ Create HF Space (3 clicks)
- โ Upload files (drag & drop)
- โ Your bot is live!
Questions? Check HF_SPACES_DEPLOYMENT_GUIDE.md for detailed help.
Go forth and automate! ๐
Made with โค๏ธ for data engineers
