Skip to content

python: add initial package, CLI, and runtime bindings#74

Merged
tpn merged 2 commits intomainfrom
python-dev
Mar 13, 2026
Merged

python: add initial package, CLI, and runtime bindings#74
tpn merged 2 commits intomainfrom
python-dev

Conversation

@tpn
Copy link
Owner

@tpn tpn commented Mar 12, 2026

Summary

  • add an initial Python package scaffold with uv, hatchling, ruff, black, mypy, and worktree-local pre-commit hooks
  • add a Typer-based CLI foundation with offline ph create and ph bulk-create paths aligned to the existing C CLI workflows
  • add an initial programmatic Python runtime path via rawdog_jit plus a backend-neutral Table / build_table() API
  • refactor native binary/library discovery to prefer install-style prefixes over development-tree fallbacks
  • add user-facing docs and project ledgers for the Python CLI/API work

Notes

  • this is an initial Python foundation PR, not a claim that the Python package is complete
  • offline CLI and in-process runtime are intentionally kept separate
  • end-user packaging is being steered toward wheel-bundled _native artifacts and conda-prefix discovery, with an editable-install helper for source checkouts

Validation

  • env -u PYTHONPATH uv run pytest
  • env -u PYTHONPATH uv run ruff check python_src python_tests
  • env -u PYTHONPATH uv run black --check python_src python_tests
  • env -u PYTHONPATH uv run mypy

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 67d911412a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@tpn
Copy link
Owner Author

tpn commented Mar 13, 2026

Addressed the remaining review feedback in commit 588bf8f by replacing the depth-based source-tree fallback root logic with a structural source_checkout_root() helper and by updating the regression tests so they no longer depend on the temporary worktree name.

@tpn tpn merged commit a7d4910 into main Mar 13, 2026
13 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