OneLake TUI (Unofficial)
A terminal UI for browsing Microsoft Fabric workspaces, lakehouses, and Delta tables — right from your terminal. No portal, no notebooks, no Spark cluster required.
pip install onelake-tui
az login
onelake-tui
onelake-tui is the published PyPI package and currently bundles both the terminal UI and the onelake_client library.
What is this?
OneLake TUI gives you a keyboard-driven file-manager experience for Microsoft Fabric's OneLake storage. Browse workspaces, inspect lakehouses and warehouses, preview files, and explore Delta table metadata — all without leaving the terminal.
Built with Textual and an async Python client for the Fabric REST and OneLake DFS APIs.
Features
- Three-panel layout — workspace picker → item list → DFS file tree + detail/preview
- Rich file preview — press Enter on any file:
- Markdown, JSON (NDJSON), CSV, Parquet, Avro, syntax-highlighted code
- All previews are selectable and copyable
- Delta table inspector — tabbed detail view:
- Schema, data preview (first 100 rows), transaction history, Change Data Feed
- Schema-aware table detection — handles both
Tables/schema/table(mirrored DBs) andTables/table(lakehouses) - Live search — press
/to filter workspaces - Multi-environment — PROD, MSIT, DXT, DAILY via
--envflag - Copy menu — press
yto choose HTTPS/ABFSS + named/GUID URI formats - Vim-friendly navigation —
j/k/g/G+h/l, withTab/Shift+Tabstill supported - Toggleable footer —
Ctrl+Fhides/shows the status bar - Zero config — uses
az login, no service keys or config files required
Roadmap (linked issues)
Roadmap source of truth: ../README.md#roadmap
| Area | Status |
|---|---|
| OneLake TUI (Unofficial) | ✅ Working (browse, preview, inspect, copy path) |
| File preview (MD/JSON/CSV/Parquet/Avro) | ✅ Done |
| Delta table detail (schema/data/history/CDF) | ✅ Done |
| Workspace search/filter | ✅ Done |
| OneLake CLI | 🔲 Planned (onelake ls, onelake cat, onelake cp) |
| Download/upload | 🔲 Planned |
| Shortcuts discoverability/manageability | 🔲 Planned |
| ADLS direct connections | 🔲 Planned |
| OneLake security policy management | 🔲 Planned |
| Bulk operations | 🔲 Planned |
| Copying data + soft-deleted data handling | 🔲 Planned |
Installation
Prerequisites: Python 3.11+, Azure CLI (az login)
pip install onelake-tui # from PyPI
onelake-tui # launch (PROD)
onelake-tui --env msit # Microsoft internal testing ring
From source (for development):
cd TUI
uv sync
uv run onelake-tui
Quick Start
- Authenticate —
az login(if you haven't already) - Launch —
onelake-tui - Select workspace — pick from the left panel
- Select item — choose a lakehouse, warehouse, or mirrored DB
- Browse files — expand folders in the tree
- Preview — press Enter on any file
- Explore tables — expand
Tables/for Delta metadata - Search — press
/to filter workspaces
Keybindings
| Key | Action |
|---|---|
↑ / ↓ |
Navigate |
j / k |
Navigate (vim-style) |
g / G |
Jump to top / bottom |
← / → |
Collapse/expand tree nodes |
Enter |
Preview file / Expand folder |
/ |
Search/filter workspaces |
Escape |
Close search / go back |
h / l |
Previous/next panel |
Tab / Shift+Tab |
Switch panels |
y |
Open copy menu (HTTPS/ABFSS, named/GUID) |
Ctrl+F |
Toggle footer visibility |
S |
Save SVG screenshot to current directory |
r |
Refresh |
? |
Show help |
q |
Quit |
Architecture
TUI/src/
├── onelake_client/ # Standalone async Python client library
│ ├── auth.py # Dual-scope token management
│ ├── environment.py # Environment ring config (PROD/MSIT/DXT/DAILY)
│ ├── _http.py # httpx retry + pagination
│ ├── fabric/client.py # Fabric REST API (control plane)
│ ├── dfs/client.py # OneLake DFS API (data plane)
│ ├── tables/delta.py # Delta table metadata reader
│ ├── tables/iceberg.py # Iceberg table metadata reader
│ └── models/ # Pydantic data models
└── onelake_tui/ # Textual-based terminal UI
├── app.py # Main app, keybindings, event wiring
├── app.tcss # Layout CSS (3-panel + footer)
├── workspace_picker.py # Flat filterable workspace list
├── item_list.py # Item list for selected workspace
├── tree.py # DFS file tree (single item)
├── detail.py # Detail/preview panel with rich rendering
├── sprite.py # OneLake-inspired splash art + shimmer animation
├── status_bar.py # 3-line footer (path, shortcuts, auth)
├── nodes.py # Node dataclasses
└── banner.py # Welcome screen delegate
Navigation model: Workspace → Item → DFS files/folders/tables. Each stage is a separate widget:
WorkspacePicker(flat OptionList, filterable)ItemList(flat OptionList per workspace)OneLakeTree(lazy-loading tree per item)DetailPanel(context-aware: metadata on highlight, preview on Enter)
Auth Configuration
Authentication uses DefaultAzureCredential, which supports (in order):
| Method | Use case |
|---|---|
az login |
Local development |
| Service principal | CI/CD pipelines |
| Managed identity | Azure-hosted environments |
Environment Configuration
uv run onelake-tui # PROD (default)
uv run onelake-tui --env msit # Microsoft internal testing
uv run onelake-tui --env dxt # Developer testing
uv run onelake-tui --env daily # Daily builds
Each environment maps to the correct Fabric REST and OneLake DFS hostnames automatically.
Debugging
tail -f ~/.onelake-tui/debug.log
Development
cd TUI
uv sync --all-extras
uv run pytest # Unit + integration tests
uv run ruff check src/ # Lint
uv run ruff format src/ # Format
License
MIT
Metadata
Release files for onelake-tui 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| onelake_tui-0.5.0.tar.gz | 147.4 kB | With provenance | Details for onelake_tui-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| onelake_tui-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for onelake_tui-0.5.0-py3-none-any.whl |
Total release size: 209.9 kB
Release files / onelake_tui-0.5.0.tar.gz
| Download URL | onelake_tui-0.5.0.tar.gz |
|---|---|
| Size | 147.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
78afc0b69194339b1dd6034f88e0c94af9edd385f3ef809bc37a56430b970052
|
|
BLAKE2b-256 checksum How to use checksums |
6d014489b90f08ad78abe07a7db4b26fc5d12bbd4abc6f75b7035ce9ec0faa6b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logRelease files / onelake_tui-0.5.0-py3-none-any.whl
| Download URL | onelake_tui-0.5.0-py3-none-any.whl |
|---|---|
| Size | 62.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
df3e865c8c801b62e57de87ae5cbd02dbdefb6e95316ec2da7870e52295aff8d
|
|
BLAKE2b-256 checksum How to use checksums |
13d70d6ba94b2d871168cb02b128a9df71e8ac349f01c81382a88309060a1108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logSecurity for onelake-tui 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for onelake_tui-0.5.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 16, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.