Skip to content

About

Read-only browser for Deep Lake datasets on disk, S3, GCS and Azure. Query with TQL, inspect rows, images and vectors.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Lake Explorer

CI License: Apache-2.0

An open-source, read-only browser for Deep Lake datasets: on disk, in S3, in Google Cloud Storage and in Azure Blob Storage. It runs on your machine, reads the data where it lives and sends nothing elsewhere.

Lake Explorer showing the chunks table of the sample lake

It serves one page on localhost:

  • the tables found under each source (to four levels down), with row counts;
  • a grid of rows, paged, with image thumbnails and vector previews; a click on a thumbnail shows the image whole (to 2400 pixels a side), and ← → move to the next row with an image;
  • a TQL box: filter, project, BM25 and vector search (⌘↵ runs it), and Explain;
  • one row in full: whole text, JSON, the full vector, and "find similar" on a vector;
  • each table's schema, indexes, branches and version history.

Datasets are opened with deeplake.open_read_only: the explorer cannot change one. It does not connect to managed Deep Lake.

Lake Explorer is an independent project, not affiliated with or endorsed by Activeloop. "Deep Lake" is their trademark. The package and the command are deeplake-explorer.

Documentation

  • User guide: every task, step by step, with screenshots.
  • Architecture: the parts, a request end to end, how datasets are found, what is kept and what is trusted, with diagrams.
  • How sources are found: the home page, the folder list and the sample lake in detail.

Run

You need Python 3.12 or 3.13 and uv.

git clone https://github.com/dfeddad/deeplake-explorer.git
cd deeplake-explorer
uv sync
uv run deeplake-explorer                          # opens http://localhost:8642/
uv run deeplake-explorer ./lake s3://bucket/lakes --port 9000 --no-open

Add a source

A source (a root) is a dataset or a place holding datasets. There are two ways to give one.

On the page. With no source yet, the page opens on three choices:

  • Add a folder: pick it from a list of this machine's folders; the ones that are a dataset, or hold some, are marked. When the folder the explorer was started in holds datasets, the page offers it in one step.
  • Connect a bucket: give an S3, GCS or Azure address. The dialog names the variables that cloud's credentials come from.
  • Open the sample lake: 3 documents and 16 chunks with page images, embeddings and a BM25 index, written once into the explorer's own folder.

Check lists the tables an address holds before anything is added. A source added on the page is kept across restarts until removed there (hover its name in the sidebar). Add source in the header adds more.

On the command line. Each argument is a source for that run. It is not saved, and cannot be removed on the page.

The explorer's own folder is ~/.config/deeplake-explorer (or $XDG_CONFIG_HOME/deeplake-explorer, or $DEEPLAKE_EXPLORER_HOME): sources.json holds the saved addresses, never a credential, and sample/ the sample lake. --no-saved starts without the saved sources.

How sources are found says what counts as a dataset, how far a source is searched, what the folder list marks, how the sample lake is made and what is looked at again later.

A source is one of:

source is
./folder, /abs/folder a folder on this machine
s3://bucket/prefix Amazon S3, or a server that speaks S3
gs://bucket/prefix (or gcs://) Google Cloud Storage
az://account/container/prefix (or azure://) Azure Blob Storage: the storage account, then the container, as deeplake writes it

A local table is brought up to date on every request. A cloud root is listed again after a minute and its open tables looked at again after ten seconds; rescan on the page does both at once and reruns the query. Listing a cloud root stops after 2000 prefixes and says so: start the explorer nearer the datasets.

It binds to 127.0.0.1 and has no login. --host 0.0.0.0 exposes every dataset under every source, with this machine's cloud access, to the network; do that only on a network you trust. Bound that way, the page cannot add, remove or list anything: the sources are those of the command line and the saved ones.

Credentials

Credentials come from the environment only: there is no flag for one, an address that carries one (?sig=…, user:key@) is refused, and none is printed or sent to the page. Two libraries read them, deeplake to open tables and obstore to list a root, so use a way both understand:

cloud works with
S3 AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY, AWS_SESSION_TOKEN, AWS_REGION; AWS_ENDPOINT_URL for a server that speaks S3. With the aws extra (uv sync --extra aws), also AWS_PROFILE and the profile and SSO files
GCS GOOGLE_APPLICATION_CREDENTIALS naming a service-account key file, or gcloud auth application-default login
Azure AZURE_STORAGE_ACCOUNT_KEY or AZURE_STORAGE_SAS_TOKEN for the account the address names; or AZURE_STORAGE_CONNECTION_STRING for that account (its BlobEndpoint reaches an emulator); or, with none of these, az login

The identity needs to list and read only.

Develop

uv sync --all-extras
uv run pytest -rs
path holds
src/deeplake_explorer/roots.py a root: finds datasets in a folder or a cloud prefix, and says how deeplake reaches them
src/deeplake_explorer/lake.py opens tables, runs queries, turns values into JSON
src/deeplake_explorer/onboarding.py sources added on the page: checked, saved, removed; the folder list
src/deeplake_explorer/sample.py writes the sample lake
src/deeplake_explorer/server.py the HTTP server, the JSON API and the command line
src/deeplake_explorer/static/index.html the page: no build step, no dependencies, no request to another host
docs/ the user guide, the architecture and how sources are found; docs/images/ holds their screenshots and diagrams
tests/ the lake and the server on real datasets in a temporary folder; cloud listing on an in-memory store

The cloud cases that go through deeplake run only when a variable names a place they may write; each works under a prefix of its own and removes it. Without the variable they are skipped.

# S3, on Versity S3 Gateway
docker run -d --rm --name explorer-s3 -p 127.0.0.1:9100:7070 --tmpfs /data \
  -e ROOT_ACCESS_KEY=explorer -e ROOT_SECRET_KEY=change-me-please \
  versity/versitygw:v1.10.0 posix /data
export AWS_ACCESS_KEY_ID=explorer AWS_SECRET_ACCESS_KEY=change-me-please \
  AWS_REGION=us-east-1 AWS_ENDPOINT_URL=http://127.0.0.1:9100
curl -sSf --aws-sigv4 "aws:amz:us-east-1:s3" \
  --user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY" -X PUT http://127.0.0.1:9100/explorer-test
DEEPLAKE_EXPLORER_TEST_S3_URL=s3://explorer-test/tests uv run pytest -rs

DEEPLAKE_EXPLORER_TEST_GCS_URL (gs://bucket/prefix) and DEEPLAKE_EXPLORER_TEST_AZURE_URL (az://account/container/prefix) do the same for the other two clouds, with their credentials in the environment.

deeplake is pinned to 4.7.4: the address forms and credential keys the explorer gives it for each cloud were measured on that version.

API

A table's id is its root's number and its path below that root: 0:chunks, 1:team/documents.

call answers
GET /api/tables each root with its tables, or its error; ?refresh=1 looks again at once
GET /api/table?id= schema, indexes, branches, history
POST /api/query {table, tql, offset, limit} a page of rows (at most 500), values previewed
POST /api/row {table, tql, index} one row of the result, values whole
POST /api/explain {table, tql} the query plan
POST /api/sources/check {address} the tables an address holds; changes nothing
POST /api/sources {address} adds a source and saves it
POST /api/sources/remove {index} removes a source added on the page
POST /api/sample writes the sample lake if needed and adds it
GET /api/browse?path= the folders of a folder, marked when they hold datasets

The last five answer only when the server is bound to this machine.

Storage support

Storage Status
Local folders Supported
Amazon S3 and S3-compatible servers Supported
Google Cloud Storage, Azure Blob Storage Experimental. Feedback welcome

Contributing, security, license

Licensed under the Apache License, Version 2.0. Icons from Lucide under the ISC License; see THIRD_PARTY_NOTICES.md.

About

Read-only browser for Deep Lake datasets on disk, S3, GCS and Azure. Query with TQL, inspect rows, images and vectors.

Topics

Resources

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages