Skip to content

InstallationΒΆ

Installation is as simple as:

pip install py-ballisticcalc
uv add py-ballisticcalc 

If you have Python 3.10+ and pip installed, you're good to go.

Optional dependenciesΒΆ

py-ballisticcalc has the following optional dependencies:

To install optional dependencies along with py-ballisticcalc:

# with the cython extensions:
pip install "py-ballisticcalc[exts]"
# with dependencies for charting:
pip install "py-ballisticcalc[charts]"
# with the cython extensions:
uv add "py-ballisticcalc[exts]"
# with dependencies for charting:
uv add "py-ballisticcalc[charts]"

You can also install requirements manually. For example:

pip install py-ballisticcalc.exts pandas matplotlib
uv add py-ballisticcalc.exts pandas matplotlib

To install latest version from sources in editable mode:

git clone https://github.com/o-murphy/py-ballisticcalc
cd py-ballisticcalc
# from repo root
py -m pip install -e .[dev]                        # main package editable
py -m pip install -e ./py_ballisticcalc.exts[dev]  # build/install C extensions (optional)
# from repo root
uv sync --dev                        # main package editable
uv sync --dev --extra exts           # build/install C extensions (optional)