Installation
Prerequisites
Section titled “Prerequisites”- Python 3.10 or higher
- pip package manager
Installation
Section titled “Installation”Base Library
Section titled “Base Library”Install the base promptpack library for parsing PromptPack JSON files:
pip install promptpackLangChain Integration
Section titled “LangChain Integration”Install promptpack-langchain for LangChain integration (includes base library):
pip install promptpack-langchainDevelopment Installation
Section titled “Development Installation”For development, clone the repository and install in editable mode:
git clone https://github.com/AltairaLabs/promptpack-python.gitcd promptpack-pythonpip install hatchInstall the packages in development mode:
# Install promptpackpip install -e packages/promptpack
# Install promptpack-langchainpip install -e packages/promptpack-langchainVerify Installation
Section titled “Verify Installation”Verify the installation:
# For base librarypython -c "from promptpack import parse_promptpack; print('promptpack installed')"
# For LangChain integrationpython -c "from promptpack_langchain import PromptPackTemplate; print('promptpack-langchain installed')"