Skip to main content

Affine Diffusions

pytest !pypi !python-versions

Simulation and estimation of Affine Diffusion models.

Installation

pip install affidiff

Interactive UI

A lightweight web-based interface for exploring affine diffusion model simulations. After installation, start the interactive simulator:

ui

This opens a Streamlit app in your browser at http://localhost:8501.

Features:

  • Select from 5 affine diffusion models (GBM, Vasicek, CIR, Heston, CentTend)
  • Adjust model parameters and see live preview
  • Control simulation length and random seed for reproducibility
  • Smart innovation reuse: change parameters to see their isolated effect without noise interference
  • Interactive Plotly charts for visualization

Documentation

khrapovs.github.io/diffusions

Contribute

Setup

Install project in editable mode and sync all dependencies:

uv sync --all-groups

Build

The project uses scikit-build-core with CMake to compile Cython extensions. The build process is automatic during installation, but you can manually trigger a build:

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:

uv run prek install
uv run prek run --all-files

Testing

Run the test suite:

uv run pytest

Metadata

Release files for affidiff 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for affidiff 0.7.1
File Size Uploaded Provenance Actions
affidiff-0.7.1.tar.gz 200.1 kB With provenance Details for affidiff-0.7.1.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for affidiff 0.7.1
File Actions
affidiff-0.7.1-cp315-cp315t-musllinux_1_2_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64 Details for affidiff-0.7.1-cp315-cp315t-musllinux_1_2_x86_64.whl
affidiff-0.7.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for affidiff-0.7.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.7.1-cp315-cp315t-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 Details for affidiff-0.7.1-cp315-cp315t-macosx_11_0_arm64.whl
affidiff-0.7.1-cp315-cp315-musllinux_1_2_x86_64.whl CPython 3.15 CPython 3.15 Linux musl 1.2+ x86-64 Details for affidiff-0.7.1-cp315-cp315-musllinux_1_2_x86_64.whl
affidiff-0.7.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.15 CPython 3.15 Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for affidiff-0.7.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.7.1-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for affidiff-0.7.1-cp315-cp315-macosx_11_0_arm64.whl
affidiff-0.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64 Details for affidiff-0.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl
affidiff-0.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64, Linux glibc 2.28+ x86-64 Details for affidiff-0.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.7.1-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for affidiff-0.7.1-cp314-cp314t-macosx_11_0_arm64.whl
affidiff-0.7.1-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for affidiff-0.7.1-cp314-cp314-musllinux_1_2_x86_64.whl
affidiff-0.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl CPython 3.14 CPython 3.14 Linux glibc 2.28+ x86-64, Linux glibc 2.17+ x86-64 Details for affidiff-0.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.7.1-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for affidiff-0.7.1-cp314-cp314-macosx_11_0_arm64.whl

Total release size: 1.8 MB

Release files / affidiff-0.7.1.tar.gz

Download URL affidiff-0.7.1.tar.gz
Size 200.1 kB
Tags Source
SHA-256 checksum
How to use checksums
fd419cd00a5b6346b038f2bb84552a85eac8e8149947392af2c27e465cb43f22
BLAKE2b-256 checksum
How to use checksums
b9c90af3c4c6ef726b112a0291d66c5f6eded40f801a9044870828a2ad94b6a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315t-musllinux_1_2_x86_64.whl

Download URL affidiff-0.7.1-cp315-cp315t-musllinux_1_2_x86_64.whl
Size 143.5 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
ad06167f902fb03f8457d2958a3163034563e2f8619c3581afde0970d7dd85bf
BLAKE2b-256 checksum
How to use checksums
7ab91652e31013baba33e02f731deb931dad81e3595e1467b51a35f2733c5090
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL affidiff-0.7.1-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 142.6 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
8f4519ae8f7996ac8878e9365e8e0527eeb0fd17940ff5585553f86074109c2b
BLAKE2b-256 checksum
How to use checksums
bd83f9764e18657ec243ddbee90e536a1e84ef5c14c2bf080811da2b85079708
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315t-macosx_11_0_arm64.whl

Download URL affidiff-0.7.1-cp315-cp315t-macosx_11_0_arm64.whl
Size 123.4 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
fb8b0e661292be826be08b8bb854320774f29a6d2885c65013345bc221caeb6c
BLAKE2b-256 checksum
How to use checksums
07f3bc7b9843454c65434d04fe1e16b6a51a776e28b85f6932d57c39442612fc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315-musllinux_1_2_x86_64.whl

Download URL affidiff-0.7.1-cp315-cp315-musllinux_1_2_x86_64.whl
Size 147.2 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
0e25837b7de60963ed625860c4b4907cc8351bde4e3d53f83c2ead63e1cc2491
BLAKE2b-256 checksum
How to use checksums
1f1ee0fd4eeb001c5289da664513a68dac38af4eb6ec55294c33654d370a7b85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL affidiff-0.7.1-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 146.4 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
565d4c5f3c3db4a92909ce0b703da3c4b69f70285b699518cdc6e144719fdc25
BLAKE2b-256 checksum
How to use checksums
bf833b12c31a496614f78b68d300d3768d88b534fe99a62de70e12478d53add5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp315-cp315-macosx_11_0_arm64.whl

Download URL affidiff-0.7.1-cp315-cp315-macosx_11_0_arm64.whl
Size 119.4 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b733d2a53f5fc27df570f398d464a6f12a5f42386c44c5c290e7eec016b194a9
BLAKE2b-256 checksum
How to use checksums
a58de50827346d0a360b01c11394c8b90e15363d626779fe50c333e2773ba305
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl

Download URL affidiff-0.7.1-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 143.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
16b90c3d788e9bb18fef3f631d68b53ca87f25f99246969660bccc28f8acbec3
BLAKE2b-256 checksum
How to use checksums
67afca2929b0cd478cb44e865e73d61ed116700bd737c906d71c0cb4ad88171f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL affidiff-0.7.1-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 142.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5096afdee03719f45cbfe02f7ff5920b065e4d3904db6de78739b7af416891f4
BLAKE2b-256 checksum
How to use checksums
c94fb025a3fcbb9132f4d07a51648f7e201673cbdc447c791f24f1c16921705f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314t-macosx_11_0_arm64.whl

Download URL affidiff-0.7.1-cp314-cp314t-macosx_11_0_arm64.whl
Size 123.8 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7e16e1646761ecd4768de8ae0165f739f0e0d7fe99714059d37c25b0ccccb2c7
BLAKE2b-256 checksum
How to use checksums
e1f69880355ece1f4c85e35a4b3c1d5c7169ad486185ca1009fbbfdcbb242c2a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314-musllinux_1_2_x86_64.whl

Download URL affidiff-0.7.1-cp314-cp314-musllinux_1_2_x86_64.whl
Size 146.7 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
12b6936950f20b2d49537da94d1c81b954d0d17396647c174f87d6cd46925134
BLAKE2b-256 checksum
How to use checksums
3e92e563c3f06449a2a903621baad1f09f868d6f7335b963a7a6254352e566f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl

Download URL affidiff-0.7.1-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 145.9 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
9fc9e789ac5eeab767b0f217438c9a1647c0a6c799fadf7a6da78d2f97e4d2a5
BLAKE2b-256 checksum
How to use checksums
9d0d0537383ef5a70642219ca6a037b66cff3769a840994c0e95c5ed55d93581
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / affidiff-0.7.1-cp314-cp314-macosx_11_0_arm64.whl

Download URL affidiff-0.7.1-cp314-cp314-macosx_11_0_arm64.whl
Size 119.5 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b4208bee707efa775162227d67bc8b6aeb5686ed1307d7dce40e97495365008
BLAKE2b-256 checksum
How to use checksums
2c6c00ef64a8053a0c383670f4781e14bf0f5f6898032ddb3dee2b765cd16de5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for affidiff 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 13 files in this release have been uploaded with provenance metadata.

Select from 13 files

Attestation for affidiff-0.7.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page