Skip to content

Add open-batch-llm CLI project with uv build system and PyPI CI#1

Merged
dev-ankit merged 2 commits into
mainfrom
copilot/create-cli-python-project
Apr 10, 2026
Merged

Add open-batch-llm CLI project with uv build system and PyPI CI#1
dev-ankit merged 2 commits into
mainfrom
copilot/create-cli-python-project

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 10, 2026

Bootstraps open-batch-llm as a publishable Python CLI package using uv + hatchling, with GitHub Actions CI for testing and automated PyPI publishing.

Package structure

  • src/open_batch_llm/src-layout package with __version__ = "0.1.0"
  • pyproject.toml — hatchling build backend, runtime deps (click, httpx, rich), open-batch-llm entry point, dev group with pytest
  • uv.lock — pinned lockfile

CLI (open-batch-llm)

Two subcommands operating on a JSON array of {"id", "prompt"} objects:

# Validate input structure without calling any API
open-batch-llm validate requests.json

# Dry-run or submit batch requests
open-batch-llm run requests.json --provider anthropic --model claude-3-haiku --output results.json
open-batch-llm run --dry-run requests.json

CI/CD

  • ci.yml — test matrix across Python 3.10/3.11/3.12 on every push/PR to main
  • publish.yml — triggered on GitHub Release; builds wheel + sdist then publishes via Trusted Publishing (OIDC) — no stored API token required. Requires a matching PyPI Trusted Publisher entry configured for this repo and workflow file.
Original prompt

create a simple cli python project 'open-batch-llm' using uv as package manager and build system. Add ci to upload the project to PyPi

Copilot AI changed the title [WIP] Add simple CLI Python project open-batch-llm Add open-batch-llm CLI project with uv build system and PyPI CI Apr 10, 2026
Copilot AI requested a review from dev-ankit April 10, 2026 09:36
@dev-ankit dev-ankit marked this pull request as ready for review April 10, 2026 09:43
@dev-ankit dev-ankit merged commit dea78c6 into main Apr 10, 2026
3 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.

2 participants