Skip to content

pbook rewrite using Typer - #99

Open
fbarreir wants to merge 63 commits into
masterfrom
autocomplete
Open

pbook rewrite using Typer#99
fbarreir wants to merge 63 commits into
masterfrom
autocomplete

Conversation

@fbarreir

@fbarreir fbarreir commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Better help documentation
Tab-completion

fbarreir added 30 commits June 17, 2026 13:50
# Conflicts:
#	packages/light/pyproject.toml
#	pyproject.toml
#	setup.py

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR rewrites the pbook CLI entrypoint to use Typer (Click-based) to provide richer --help output and improved completion behavior, while keeping an interactive REPL mode and maintaining backward compatibility for legacy key=value batch arguments.

Changes:

  • Replaced the legacy argparse-based pandaclient/PBookScript.py CLI implementation with a Typer app + interactive REPL integration (including legacy key=value rewriting).
  • Added typer as a dependency (both root and packages/light).
  • Tweaked PBookCore.reload_input() logging and return-code handling, and updated pre-commit hook versions.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pyproject.toml Adds typer dependency for the rewritten CLI.
packages/light/pyproject.toml Adds typer dependency for the light package variant.
pandaclient/PBookScript.py Major rewrite of pbook CLI using Typer; REPL/help/completion and legacy-arg compatibility logic added.
pandaclient/PBookCore.py Adjusts reload_input() success/error condition and log message.
.pre-commit-config.yaml Updates Black and isort hook revisions.
Suppressed comments (1)

pandaclient/PBookScript.py:693

  • Help text has a double period at the end ("task.."), which is likely an accidental typo.
        typer.Option("--nGBPerJob", help="Maximum input size in GB to be processed by a single job in the task.."),

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pandaclient/PBookCore.py
Comment thread pandaclient/PBookScript.py Outdated
Comment thread pandaclient/PBookScript.py Outdated
fbarreir and others added 2 commits August 7, 2026 17:10
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.

2 participants