Metadata-Version: 2.2
Name: affidiff
Version: 0.5.2
Summary: Affine Diffusions. Simulation and estimation.
Author-Email: Stanislav Khrapov <khrapovs@gmail.com>
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3.14
Requires-Python: >=3.14
Requires-Dist: matplotlib>=3.10.8
Requires-Dist: mygmm>=0.1.0
Requires-Dist: numpy>=2.4.4
Requires-Dist: polars>=1.44.2
Requires-Dist: pyarrow>=25.0.1
Requires-Dist: scipy>=1.17.1
Requires-Dist: seaborn>=0.13.2
Requires-Dist: statsmodels>=0.14.6
Requires-Dist: yfinance>=1.7.0
Description-Content-Type: text/markdown

# Affine Diffusions

![pytest](https://github.com/khrapovs/diffusions/actions/workflows/workflow.yaml/badge.svg)
[![!pypi](https://img.shields.io/pypi/v/affidiff)](https://pypi.org/project/affidiff)
[![!python-versions](https://img.shields.io/pypi/pyversions/diffusions)](https://pypi.org/project/affidiff)

Simulation and estimation of Affine Diffusion models.

Install:

```shell
pip install affidiff
```

## Documentation

[khrapovs.github.io/diffusions](https://khrapovs.github.io/diffusions/)

## Contribute

### Setup

Install project in editable mode and sync all dependencies:

```shell
uv sync --all-groups
```

### Build

The project uses [scikit-build-core](https://scikit-build-core.readthedocs.io/) with CMake to compile Cython extensions.
The build process is automatic during installation, but you can manually trigger a build:

```shell
uv build
```

This compiles the Cython simulation module (`src/affidiff/simulate.pyx` → `.c` → `.so` extension).

### Code Quality

Use pre-commit to automatically format and lint code:

```shell
uv run prek install
uv run prek run --all-files
```

### Testing

Run the test suite:

```shell
uv run pytest
```
