Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,20 @@ jobs:
with:
python-version: "3.12"

- name: Install Poetry
- name: Install uv
run: |
curl -sSL https://install.python-poetry.org | python3 -

# Make Poetry available on the path:
- name: Update PATH
run: echo "${{ runner.temp }}/.poetry/bin" >> $GITHUB_PATH
curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Install dependencies
run: |
poetry install --with dev --no-root
uv sync

- name: Run pre-commit hooks (formatters, linters)
run: |
poetry run pre-commit run --all-files
uv run pre-commit run --all-files

# If ever there are tests to run, uncomment the following lines.
#
# - name: Run tests
# run: |
# poetry run pytest --cov --cov-report=term-missing
# uv run pytest --cov --cov-report=term-missing
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ These CLIs require either call the service providers' APIs directly, or use Goog

## Overview

This project leverages Python and [Poetry](https://python-poetry.org/) to manage dependencies, as well as [Direnv](https://direnv.net/) for managing environment variables. Each module (`claude_cli/`, `gemini_cli/`, `openai_cli/`, `vertex_cli/`) in this repository has its own README, which provides task-specific or site-specific details.
This project leverages Python and [uv](https://docs.astral.sh/uv/) to manage dependencies, as well as [Direnv](https://direnv.net/) for managing environment variables. Each module (`claude_cli/`, `gemini_cli/`, `openai_cli/`, `vertex_cli/`) in this repository has its own README, which provides task-specific or site-specific details.

## Installation

Expand Down Expand Up @@ -40,13 +40,13 @@ This project leverages Python and [Poetry](https://python-poetry.org/) to manage
- The required Python version is specified in `.python-version`.

4. **Install Dependencies:**
- Install Poetry if you haven't already:
- Install uv if you haven't already:
```bash
curl -sSL https://install.python-poetry.org | python3 -
curl -LsSf https://astral.sh/uv/install.sh | sh
```
- Then install project dependencies:
```bash
poetry install --with dev
uv sync
```

5. **Pre-commit Hooks:**
Expand All @@ -65,7 +65,7 @@ This project leverages Python and [Poetry](https://python-poetry.org/) to manage
7. **Running Tests:**
- Execute tests (if present) using pytest:
```bash
poetry run pytest
uv run pytest
```

## CI Pipeline
Expand Down
6 changes: 3 additions & 3 deletions claude_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ This module uses the following environment variables:

## Using the CLI

You can run the CLI using Poetry:
You can run the CLI using uv:

### Required flag

* `--prompt-file`: The path to a file containing the prompt.

```bash
poetry run python -m claude_cli --prompt-file path/to/prompt.txt
uv run python -m claude_cli --prompt-file path/to/prompt.txt
```

### Optional flags
Expand All @@ -32,7 +32,7 @@ poetry run python -m claude_cli --prompt-file path/to/prompt.txt

```bash
# Example usage with custom system prompt, model, temperature, and max tokens.
poetry run python -m claude_cli \
uv run python -m claude_cli \
--model claude-3-7-sonnet-latest \
--temperature 0.7 \
--max-tokens 15000 \
Expand Down
6 changes: 3 additions & 3 deletions gemini_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ This module provides a CLI tool and library function for interacting with Google

## Using the CLI

You can run the CLI using Poetry:
You can run the CLI using uv:

### Required flag

* `--prompt-file`: The path to a file containing the prompt.

```bash
poetry run python -m gemini_cli --prompt-file path/to/prompt.txt
uv run python -m gemini_cli --prompt-file path/to/prompt.txt
```

### Optional flags
Expand All @@ -29,7 +29,7 @@ poetry run python -m gemini_cli --prompt-file path/to/prompt.txt

```bash
# Example usage with custom system prompt, model, temperature, and max tokens.
poetry run python -m gemini_cli \
uv run python -m gemini_cli \
--model gemini-2.5-pro-exp-03-25 \
--temperature 0.6 \
--max-tokens 1024 \
Expand Down
6 changes: 3 additions & 3 deletions openai_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ This module provides a CLI tool and library function for interacting with OpenAI

## Using the CLI

You can run the CLI using Poetry:
You can run the CLI using uv:

### Required flag

* `--prompt-file`: The path to a file containing the prompt.

```bash
poetry run python -m openai_cli --prompt-file path/to/prompt.txt
uv run python -m openai_cli --prompt-file path/to/prompt.txt
```

### Optional flags
Expand All @@ -29,7 +29,7 @@ poetry run python -m openai_cli --prompt-file path/to/prompt.txt

```bash
# Example usage with custom system prompt, model, temperature, and max tokens.
poetry run python -m openai_cli \
uv run python -m openai_cli \
--model gpt-4o \
--temperature 0.5 \
--max-tokens 2000 \
Expand Down
Loading