Skip to content

Installation

Apfel requires Python 3.11 or later and depends on typing-extensions.

Apfel is published to PyPI as apfel. Install it with pip, uv, or another modern Python package manager.

Terminal window
pip install apfel
# or
uv add apfel

Install directly from the GitHub repository when needed. Use pyproject.toml and lock a Git reference, such as a tag, whenever possible.

This is not recommended because pip does not lock the version.

Terminal window
pip install git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}
Terminal window
uv add git+https://github.com/Yixuan-Wang/apfel.git --tag "v{VERSION}"
# or
uv add git+https://github.com/Yixuan-Wang/apfel.git --ref "{COMMIT_SHA}"
Terminal window
pdm add "apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}"
[project]
dependencies = [
"apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}"
]
[tool.poetry.dependencies]
apfel = { git = "https://github.com/Yixuan-Wang/apfel.git", tag = "v{VERSION}" }
apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}