Installation¶
Requirements¶
incline requires Python 3.12 or later. Package installers resolve its runtime
dependencies from pyproject.toml.
Install from PyPI¶
The easiest way to install incline is via pip:
pip install incline
Install from Source¶
You can also install incline from source:
git clone https://github.com/finite-sample/incline.git
cd incline
pip install -e .
Development Installation¶
If you want to contribute to incline or modify the source code:
git clone https://github.com/finite-sample/incline.git
cd incline
uv sync --all-groups
This installs incline in development mode with its testing, linting and documentation dependencies.
Verify Installation¶
To verify that incline is installed correctly, you can run:
import incline
print(incline.__version__)
Or test with a simple example:
from incline import naive_trend
import pandas as pd
df = pd.DataFrame({"value": [1, 2, 3, 4, 5]})
result = naive_trend(df)
print(result)