Installation
Dependencies
Section titled “Dependencies”Apfel requires Python 3.11 or later and depends on typing-extensions.
Install from PyPI
Section titled “Install from PyPI”Apfel is published to PyPI as apfel. Install it with pip, uv, or another modern Python package manager.
pip install apfel# oruv add apfelInstall from GitHub
Section titled “Install from GitHub”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.
pip install git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}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}"pdm add "apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}"pyproject.toml
Section titled “pyproject.toml”[project]dependencies = [ "apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}"]pyproject.toml with Poetry
Section titled “pyproject.toml with Poetry”[tool.poetry.dependencies]apfel = { git = "https://github.com/Yixuan-Wang/apfel.git", tag = "v{VERSION}" }requirements.txt
Section titled “requirements.txt”apfel @ git+https://github.com/Yixuan-Wang/apfel.git@v{VERSION}