Skip to content

Make %catalog execute immediately, round out its verb set, and share help rendering - #55

Merged
oskaresparza merged 4 commits into
stagingfrom
development
Sep 17, 2026
Merged

oskaresparza merged 4 commits into
stagingfrom
development

Conversation

@oskaresparza

Copy link
Copy Markdown
Collaborator

Summary

  • %catalog calls now commit themselves the moment a cell runs, instead of queueing behind a separate commit step (CatalogSession still does the committing/rollback underneath).
  • Adds use(path) / %%catalog use(path) for explicit relative-path context (validated against the catalog, ../ support for walking up parent paths).
  • Rounds out the verb set: get_wiki, get_tags, list, schema, delete_view, delete_table — all erroring on a missing path.
  • Renames copy/movedata_copy/data_move, tag/untagset_tags/delete_tags; drops set_meta in favor of set_wiki.
  • %catalog help / %ingest help now render as the same HTML table, grouped by verb category (data, table, view, wiki, tags) for %catalog.

Test plan

  • pytest — 348 passed
  • ruff check / ruff format --check — clean on touched files

🤖 Generated with Claude Code

oskaresparza and others added 4 commits September 17, 2026 14:22
`%catalog` calls now commit themselves the moment a cell runs instead of
queueing behind a separate commit step; `CatalogSession` still does the
committing underneath (retry/rollback unchanged), it's just no longer
something a custodian has to remember to call. Adds `use(path)`/`%%catalog
use(path)` to set relative-path context explicitly (validated against the
catalog, `../` support for walking up parent paths anywhere a relative path
is accepted), and rounds out the verb set with `get_wiki`, `get_tags`,
`list`, `schema`, `delete_view`, `delete_table` (all erroring on a missing
path). Renames `copy`/`move` to `data_copy`/`data_move`, `tag`/`untag` to
`set_tags`/`delete_tags`, and drops `set_meta` in favor of `set_wiki`.

`%catalog help`/`%ingest help` render as an HTML table grouped by verb
category (data, table, view, wiki, tags) rather than a plain list.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Make %catalog execute immediately and round out its verb set
Both magics now share one _print_help_table/_help_table_html implementation
instead of %ingest help printing a plain ASCII Python-signature listing.
Also fixes a couple of stale leftovers from earlier renames: a tag(...)
example in %%catalog's docstring and the ingest example notebook's
description of help's old output format.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Render %ingest help as the same HTML table %catalog help uses
@oskaresparza
oskaresparza merged commit 3a0914d into staging Sep 17, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant