How rice-university-academic-affairs/laken works
Laken supports a local-to-Fabric development loop: developers read and write lakehouse tables locally or in a Fabric notebook, then package and publish Python projects to a Fabric Environment. The local path hydrates table copies into a Delta cache and tracks table metadata; the notebook path uses Spark directly. Deployment configures a project, builds a wheel, and publishes it. Core read/write and publish behavior is visible in the excerpts; some CLI orchestration and project-building details are documented but not excerpted.
Main entry points: local_lakehouse.py Local lakehouse · fabric_lakehouse.py Fabric lakehouse · cli.py CLI commands · lakehouse.py Lakehouse facade
Components 19
Lakehouse API
- Lakehouse facade
src/laken/lakehouse.py - Local lakehouse
src/laken/local_lakehouse.py - Fabric lakehouse
src/laken/fabric_lakehouse.py
Table access
- Table metadata
src/laken/workspace.py - Local Delta cache
src/laken/local_lakehouse.py - OneLake fetcher
src/laken/onelake_fetcher.py
Deployment
- CLI commands
src/laken/cli.py - Deploy configuration
src/laken/deploy/config.py - Project validation
src/laken/deploy/project.py - Wheel builder
src/laken/deploy/build.py - Fabric publisher
src/laken/deploy/fabric_client.py
Shared runtime
- Table naming
src/laken/table_names.py - Frame conversion
src/laken/frames.py - Spark runtime
src/laken/spark_runtime.py - Environment loading
src/laken/_env.py
Other components
- Developer
- Fabric notebook
- Microsoft Fabric
- Fabric Environment
Connections 24
- Developer → Lakehouse facade: uses
README.md - Fabric notebook → Lakehouse facade: uses
README.md - Lakehouse facade → Environment loading: loads
src/laken/lakehouse.py - Lakehouse facade → Local lakehouse: selects locally
src/laken/lakehouse.py - Lakehouse facade → Fabric lakehouse: selects in notebook
src/laken/lakehouse.py - Local lakehouse → Table metadata: reads and updates
src/laken/local_lakehouse.py - Local lakehouse → Local Delta cache: reads and writes
src/laken/local_lakehouse.py - Local lakehouse → OneLake fetcher: fetches missing tables
src/laken/local_lakehouse.py - OneLake fetcher → Microsoft Fabric: reads OneLake
README.md - Local lakehouse → Table naming: resolves names
src/laken/local_lakehouse.py - Fabric lakehouse → Table naming: resolves names
src/laken/fabric_lakehouse.py - Local lakehouse → Frame conversion: converts frames
src/laken/local_lakehouse.py - Fabric lakehouse → Frame conversion: converts frames
src/laken/fabric_lakehouse.py - Frame conversion → Spark runtime: uses session
src/laken/frames.py - Fabric lakehouse → Spark runtime: gets session
src/laken/fabric_lakehouse.py - Fabric lakehouse → Microsoft Fabric: reads and writes tables
README.md - Developer → CLI commands: runs deploy or refresh
README.md - CLI commands → Deploy configuration: loads configuration
src/laken/cli.py - CLI commands → Project validation: validates project
src/laken/cli.py - CLI commands → Wheel builder: builds package
README.md - CLI commands → Fabric publisher: publishes wheel
README.md - Fabric publisher → Deploy configuration: uses configuration
src/laken/deploy/fabric_client.py - Fabric publisher → Fabric Environment: uploads and publishes
src/laken/deploy/fabric_client.py - Fabric Environment → Fabric notebook: makes package available
README.md