Installation

This guide covers different methods for installing KnitScript depending on your use case.

📦 Standard Installation

From Test-PyPI (Development Versions)

If you want to try unreleased features, you can install from Test-PyPI:

pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ knit-script

Note

Development versions may be unstable and are not recommended for production use.

🛠️ Development Installation

From Source (Latest)

To get the latest development version:

git clone https://github.com/mhofmann-Khoury/knit_script.git
cd knit_script
pip install -e .

Development with All Dependencies

For contributing to KnitScript development:

git clone https://github.com/mhofmann-Khoury/knit_script.git
cd knit_script
pip install -e ".[dev]"
pre-commit install

This installs: - All runtime dependencies - Development tools (mypy, pytest, etc.) - Documentation generation tools - Pre-commit hooks for code quality

Next Steps

After successful installation:

  1. Read the Quick Start guide for your first pattern

  2. Review the Language Reference for complete syntax documentation