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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
165f98f411d159db7597d63f9e56a213f1f4e86a6d827719dd5e90323960a436
|
|
| MD5 |
da0ebb553d8f519846c6b200ceae68ba
|
|
| BLAKE2b-256 |
b5e0fc2d356155dcd2a51a61667f5b0cccb21d556f4732f41481ca96ce6d1065
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_batch_llm-0.1.0.tar.gz -
Subject digest:
165f98f411d159db7597d63f9e56a213f1f4e86a6d827719dd5e90323960a436 - Sigstore transparency entry: 1270828573
- Sigstore integration time:
-
Permalink:
dev-ankit/open-batch-llm@dea78c6bbdc7b19d72a3fdc1d0dc8f3e65c609d3 -
Branch / Tag:
refs/tags/0.0.1-rc.1 - Owner: https://github.com/dev-ankit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dea78c6bbdc7b19d72a3fdc1d0dc8f3e65c609d3 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66c2e58cdf91c78ddd2669a106f09d9301153f0575f07e8d08b40d9e0f96a422
|
|
| MD5 |
1213bb79a1bbc5edb2e49879952e0ffd
|
|
| BLAKE2b-256 |
c3b84c352066bb4307f49fe317ba0b2eedf8a8ec679fb108aa0a107504e91412
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
open_batch_llm-0.1.0-py3-none-any.whl -
Subject digest:
66c2e58cdf91c78ddd2669a106f09d9301153f0575f07e8d08b40d9e0f96a422 - Sigstore transparency entry: 1270828588
- Sigstore integration time:
-
Permalink:
dev-ankit/open-batch-llm@dea78c6bbdc7b19d72a3fdc1d0dc8f3e65c609d3 -
Branch / Tag:
refs/tags/0.0.1-rc.1 - Owner: https://github.com/dev-ankit
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@dea78c6bbdc7b19d72a3fdc1d0dc8f3e65c609d3 -
Trigger Event:
release
-
Statement type: