RepositoryPythonBRBrazil
dmux

dmux/minilake

Minilake is a free, local Databricks API emulator — a single-developer tool for testing databricks-sdk/Terraform code against real SQL, real Delta Lake, and real Job execution, without paying for cloud compute.

150stars
15forks
1issues
1views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: data-analytics

#1 Repository of the day

1
TINIX TRENDING·Topic: databricks

#1 Repository of the day

1
TINIX TRENDING·Topic: emulator

#1 Repository of the day

minilake — Local Databricks API Emulator

MiniLake

Free, open-source local Databricks emulator for offline development and testing.

Real SQL & Spark execution · Unity Catalog hierarchy · Databricks SDK compatible · Terraform compatible · MIT licensed

GitHub release CI Release GHCR image License Python

Website · Documentation · GitHub · Container Image (GHCR)


MiniLake is a free, local Databricks API emulator — a single-developer tool for testing databricks-sdk/Terraform code against real SQL, real Delta Lake, and real Job execution, without paying for cloud compute.

Quick Start

# Option 1: PyPI
pip install minilake
minilake --port 8000

# Option 2: GitHub Container Registry
docker run -p 8000:8000 ghcr.io/dmux/minilake:latest

# Option 3: Clone and build
git clone https://github.com/dmux/minilake && cd minilake
docker compose up -d

# Verify (any option)
curl http://localhost:8000/_minilake/health

Then open http://localhost:8000/ui/ for the built-in SQL workspace — an Athena-style query editor with a data catalog, saved queries and query history (details).

No account, no API key, no sign-up — and the container image downloads nothing at runtime: DuckDB's delta extension and the Delta / Unity Catalog Spark jars are baked in at build time, so it works air-gapped (details).

Then point any Databricks client at it:

from databricks.sdk import WorkspaceClient

w = WorkspaceClient(host="http://localhost:8000", token="dev")
w.catalogs.create(name="vendas")

More in Getting Started.

Documentation

Getting StartedInstall, first catalog and query, internal endpoints
Web UIThe built-in SQL workspace at /ui
ConfigurationEvery environment variable, persistence, HTTPS/TLS
Databricks SDKUnity Catalog, warehouses, SQL and jobs from Python
Terraform & Asset BundlesThe provider, and bundle deploy / bundle run
Spark & Delta LakeReal Delta files, real Spark jobs, spark.table() by name
MCP Server67 tools for LLM agents — examples, tool reference, troubleshooting
Testing & developmentRunning the suite, adding an API group
Releases & CI/CDHow a tag becomes a published image
Feature statusEndpoint-by-endpoint status and design rationale
API coverageMeasured: every SDK endpoint probed through the real databricks CLI
Emulation roadmapWhat is worth building next, with measured gap counts

Supported Services

ServiceStatusNotes
Unity Catalog (catalogs, schemas, tables, volumes, functions)✅ RealEach catalog = its own DuckDB database (ATTACH), native catalog.schema.table addressing; a SQL function becomes a real DuckDB macro, callable by its three-part name
Unity Catalog metastore✅ RealOne synthetic metastore: current-metastore-assignment, metastore_summary, list/get
EXTERNAL Delta Tables✅ RealReal Delta files; INSERT/UPDATE/DELETE via a generated Spark job, reads via delta_scan()
SQL Statement Execution✅ RealReal DuckDB; JSON_ARRAY/ARROW_STREAM/CSV, INLINE/EXTERNAL_LINKS; result manifest carries column types
SQL Warehouses✅ RealFull CRUD + lifecycle
Query History✅ Realw.query_history.list() over everything executed, failures included
Saved Queries✅ Realw.queries.* CRUD with update_mask
Alerts✅ Realw.alerts.* CRUD; conditions are really evaluated against query results, and back sql_task.alert
Web UI✅ RealAthena-style SQL workspace at /ui — see Web UI
Jobs✅ RealSibling Docker container execution (Spark) or subprocess fallback; real DAG scheduling (depends_on/run_if); runs/submit one-shot runs; sql_task.file/.query/.alert all execute for real
Workspace✅ RealFile-backed notebook/script storage; raw-bytes workspace-files sync powers databricks bundle deploy / bundle run
DBFS & Files API✅ RealFile-backed storage, chunked upload
Secrets✅ RealReal CRUD; values only resolvable inside job env vars, never via direct API (matches real Databricks). Scope ACLs are stored and read back, never enforced
Clusters✅ Real state machineCRUD + timed lifecycle transitions, update/pin/unpin; no real Spark compute (by design)
Cluster policies & instance pools✅ Real CRUDResolve and validate against clusters; never enforced — there is no compute to constrain
Permissions✅ Real CRUDSingle-user "allow-all" default (by design — see Gaps)
UC Grants✅ Real CRUDw.grants.* and databricks_grants, with real privilege inheritance (a catalog grant is effective on its schemas and tables); never enforced
Workspace admin✅ Real CRUDGit credentials, IP access lists, global init scripts, notification destinations, instance profiles, workspace-conf — stored and read back, never enforced
Legacy SQL (preview/sql)✅ RealQueries, alerts, dashboards, widgets, visualizations, data sources — adapters over the modern stores, so both surfaces see one object
Identity & SCIM✅ Real CRUDCurrent user, plus Users/Groups/ServicePrincipals CRUD, SCIM PATCH and filtering. Identities are records, not credentials — see Gaps
Tokens✅ Realw.tokens.*; the value is returned once, as in the real API — but authenticates nothing
Persistence (MINILAKE_PERSIST=1)✅ RealJSON snapshot on shutdown, restored on startup
Unity Catalog protocol for Spark✅ Realspark.table("cat.sch.tbl") resolves against minilake — see Spark & Delta Lake
JupyterLab + PySpark + Delta (optional)✅ Realdocker compose --profile notebook up
MCP Server (optional, MINILAKE_MCP=1)✅ Real67 tools + resources + prompts at /mcp — see MCP Server
Repos, multi-language notebooks, DBT/pipeline tasks, DLT, Model Registry, Vector Search, Lakeview/Genie, Delta Sharing🚫 Not implementedReturns 501 NOT_IMPLEMENTED. For the measured picture, see API coverage

Known Gaps

These are deliberate, not oversights — minilake targets one developer running it locally, not a shared or multi-tenant server:

  • No real authentication — any token is accepted. SCIM identities and personal access tokens are records, not credentials: creating a user makes no way to sign in, and revoking a token locks nobody out.
  • No access-control enforcement — the Permissions API is real CRUD but always allow-all, so a test that passes here says nothing about grants in a real workspace.
  • No real Spark compute for Clusters — state machine only; real compute happens through Jobs' sibling containers instead.
  • Single process, no HA — and DuckDB's single-writer model means concurrent load contends on locks.
  • Uneven test coverage — jobs.py, sql_statements.py and unity_catalog.py are covered mostly on happy paths, not edge cases.

Contributing

See CONTRIBUTING.md for the project structure, how to add a new API group, and the PR checklist.

License

MIT — see LICENSE.

Similar Projects

Discover other similar projects and AI models.

RepositoryScala
microsoft/SynapseML

Simple and Distributed Machine Learning Python Library porting ML algorithms for Spark

5.3k
Dec 2, 2026
RepositoryJupyter Notebook
DataWithBaraa/databricks_bootcamp_2026

A data lakehouse on Databricks with the medallion architecture: PySpark, Spark SQL, Delta Lake and Unity Catalog. The project of the free Databricks bootcamp.

472
Nov 6, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
AlexIoannides/pyspark-example-project

Implementing best practices for PySpark ETL jobs and applications.

2.1k
Jan 1, 2023
RepositoryPython
databrickslabs/dbldatagen

Generate relevant synthetic data quickly for your projects. The Databricks Labs synthetic data generator (aka `dbldatagen`) may be used to generate large simulated / synthetic data sets for test, POCs, and other uses in Databricks environments including in Delta Live Tables pipelines

507
Oct 26, 2026
RepositoryPython
jrlasak/databricks-code-practice

Practice Databricks coding skills with hands-on exercises. Import into Databricks Free Edition, write code, run assertions, check pass/fail. Covers Delta Lake, Spark SQL, PySpark, Auto Loader, medallion architecture, window functions, and more.

301
Oct 19, 2026
RepositoryPython
pathwaycom/pathway

Python ETL framework for stream processing, real-time analytics, LLM pipelines, and RAG.

62.0k
Nov 16, 2026
RepositoryScala
JohnSnowLabs/spark-nlp

State of the Art Natural Language Processing

4.2k
Dec 1, 2026
RepositoryRust
lakehq/sail

Drop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.

3.5k
Nov 30, 2026