Skip to content

Installation

  • Python 3.10 or higher
  • pip package manager

Install the base promptpack library for parsing PromptPack JSON files:

Terminal window
pip install promptpack

Install promptpack-langchain for LangChain integration (includes base library):

Terminal window
pip install promptpack-langchain

For development, clone the repository and install in editable mode:

Terminal window
git clone https://github.com/AltairaLabs/promptpack-python.git
cd promptpack-python
pip install hatch

Install the packages in development mode:

Terminal window
# Install promptpack
pip install -e packages/promptpack
# Install promptpack-langchain
pip install -e packages/promptpack-langchain

Verify the installation:

Terminal window
# For base library
python -c "from promptpack import parse_promptpack; print('promptpack installed')"
# For LangChain integration
python -c "from promptpack_langchain import PromptPackTemplate; print('promptpack-langchain installed')"