Skip to content

Installation

Terminal window
pip install llm-parry

The distribution is called llm-parry. The module you import, and the CLI command, are both parry.

parry ships as one abi3 wheel per platform, so a single wheel works on Python 3.10, 3.11, 3.12, 3.13 and 3.14. Wheels are built for:

OSArchitectures
Linux (manylinux, musllinux)x86-64, aarch64
macOSx86-64, Apple silicon
Windowsx64

parry has no required dependencies. It hooks whichever SDKs are importable. The extras are a convenient way to install them alongside:

Terminal window
pip install "llm-parry[openai]" # + openai
pip install "llm-parry[anthropic]" # + anthropic
pip install "llm-parry[langchain]" # + langchain-core
pip install "llm-parry[llamaindex]" # + llama-index-core
PackageTested range
openai1.82 → 2.x
anthropic0.52 → 2.x
langchain-openai / langchain-anthropiccurrent
llama-index-core / llama-index-llms-openaicurrent

CI runs the full suite against the newest releases and a pinned older pair, so SDK changes that break a hook show up as test failures, not in your app.

You need a Rust toolchain (the version is pinned in rust-toolchain.toml, and rustup picks it up automatically) and Python 3.10+.

Install the latest main straight from GitHub:

Terminal window
pip install "git+https://github.com/IND-Anshuman/parry.git"

Or clone it for development:

Terminal window
git clone https://github.com/IND-Anshuman/parry.git
cd parry
python -m venv .venv && source .venv/bin/activate
pip install maturin
pip install -e ".[dev,integrations]" # builds the Rust extension
pytest
Terminal window
python -c "import parry; print(parry.__version__)"
parry pricing --provider anthropic