Skip to main content

A CLI tool to manage batch LLM calls

Project description

open-batch-llm

A CLI tool to manage and run batch LLM calls.

Installation

pip install open-batch-llm

Or with uv:

uv tool install open-batch-llm

Usage

Validate a batch request file

open-batch-llm validate requests.json

Run batch requests (dry-run)

open-batch-llm run --dry-run requests.json

Run batch requests

open-batch-llm run requests.json --provider openai --model gpt-4o-mini --output results.json

Input file format

The input file must be a JSON array of request objects. Each object must contain a prompt key:

[
  {"id": "req-1", "prompt": "What is 2 + 2?"},
  {"id": "req-2", "prompt": "Name the planets of the solar system."}
]

Development

This project uses uv as the package manager and build system.

# Install dependencies
uv sync --all-groups

# Run tests
uv run pytest

# Build the package
uv build

Publishing

Releases are published to PyPI automatically via GitHub Actions when a new GitHub Release is created. The workflow uses Trusted Publishing (OIDC) — no API token is needed.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

open_batch_llm-0.1.0.tar.gz (27.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

open_batch_llm-0.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file open_batch_llm-0.1.0.tar.gz.

File metadata

  • Download URL: open_batch_llm-0.1.0.tar.gz
  • Upload date:
  • Size: 27.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for open_batch_llm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 165f98f411d159db7597d63f9e56a213f1f4e86a6d827719dd5e90323960a436
MD5 da0ebb553d8f519846c6b200ceae68ba
BLAKE2b-256 b5e0fc2d356155dcd2a51a61667f5b0cccb21d556f4732f41481ca96ce6d1065

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_batch_llm-0.1.0.tar.gz:

Publisher: publish.yml on dev-ankit/open-batch-llm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file open_batch_llm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: open_batch_llm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for open_batch_llm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 66c2e58cdf91c78ddd2669a106f09d9301153f0575f07e8d08b40d9e0f96a422
MD5 1213bb79a1bbc5edb2e49879952e0ffd
BLAKE2b-256 c3b84c352066bb4307f49fe317ba0b2eedf8a8ec679fb108aa0a107504e91412

See more details on using hashes here.

Provenance

The following attestation bundles were made for open_batch_llm-0.1.0-py3-none-any.whl:

Publisher: publish.yml on dev-ankit/open-batch-llm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page