icelens

A terminal app for Apache Iceberg tables. It shows what a table is made of - its commits (snapshots), the manifests and data and delete files each one points at, and the rows - as of any commit you pick. Use it for two things:

Install

uv tool install icelens        # or: pipx install icelens
icelens --version

Python 3.10 or newer. Glue, S3 Tables, Hive and DynamoDB need PyIceberg's extra for each: uv tool install icelens --with 'pyiceberg[glue]' (or [hive], [dynamodb]).

Rows are read with DuckDB's iceberg extension, which icelens fetches on first use. Without a network the metadata panes still work and rows come from PyIceberg; the status bar always says which engine answered.

Start

icelens --demo                 # a local catalog with one table and five commits to explore
icelens                        # the catalog this directory or ~/.pyiceberg.yaml is set up for
icelens demo.orders            # straight onto a table
icelens --uri http://localhost:8181/catalog --warehouse demo

With nothing configured, icelens asks what to open instead of failing.

Connect to your catalog

icelens reads the same ~/.pyiceberg.yaml PyIceberg does. One entry per catalog:

catalog:
  lab:                                    # icelens --catalog lab
    type: rest
    uri: http://localhost:8181/catalog
    warehouse: analytics
  glue:
    type: glue
    warehouse: s3://my-bucket/warehouse   # credentials from the usual AWS chain

icelens --catalogs lists them and ctrl+o switches between them in the app. You can also pass --uri, --warehouse and -p key=value (any PyIceberg property), set ICELENS_* variables, or keep the settings in a .env. Keep secrets out of the YAML file: use PyIceberg's environment variables or a .env only you can read. icelens never prints a credential.

A REST catalog with several warehouses (Lakekeeper, Polaris) gets a picker, and ctrl+w switches warehouse. Recipes for Polaris, Snowflake, Databricks and BigLake are in the guide.

What you see

keypanewhat it answers
1Overviewformat version, location, refs, properties
2Schemathe schema at the viewed snapshot, with field ids
3Datathe rows; w filters them, l shows v3 row lineage
4Snapshotsevery commit; enter pins one and every pane re-reads at it
5Committhe files one snapshot added and retired
6Manifeststhe manifest list, one row per manifest
7Filesevery live data and delete file
8Partitionspartitions with file and row counts
9Layoutthe chain from table metadata down to files
0SQLDuckDB SQL over the catalog: icelens."<namespace>"."<table>"

u returns to the current snapshot, , and . step through history, g cycles the guide rail that explains whatever the cursor is on, and ? shows every key. Views appear in the tree beside the tables.

icelens only reads a real catalog: it opens the connection read-only.

A sandbox to write in

icelens --sandbox              # a local catalog you can write to; `e` opens the Writer pane
icelens --sandbox lesson --v3  # the same at format-version 3: deletion vectors, row lineage
icelens --demo --v3 --serve    # serve it over Iceberg REST for Spark, DuckDB or PyIceberg

Write CREATE, INSERT and DELETE statements and see what each commit did to the table. See the guide.

In scripts

Every pane prints, as a table, CSV or JSON:

icelens --list demo
icelens --pane snapshots demo.orders
icelens --pane files demo.orders --json
icelens --sql 'SELECT count(*) FROM icelens."demo"."orders"'

With a coding agent

icelens ships an Agent Skill that teaches a coding agent to drive it through the headless flags. Install it where your agent looks for skills. For Claude Code:

mkdir -p ~/.claude/skills/icelens && icelens --skill > ~/.claude/skills/icelens/SKILL.md

icelens --skill prints the skill for the installed version, so rerun it after an upgrade.

Where it works

Tested against Iceberg REST (Lakekeeper, Apache Polaris), Google BigLake and local SQL catalogs. Snowflake, Databricks Unity, Nessie, Glue, S3 Tables and Hive are supported in code but have not been run against a real account. Linux and macOS only for now: local catalogs do not work on Windows yet. Platforms says what each needs and what has been verified, and Limitations lists what does not work yet.

More

Apache-2.0.

Rendered from README.md.