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.8.0

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.8.0
File Size Uploaded Provenance Actions
affidiff-0.8.0.tar.gz 200.4 kB With provenance Details for affidiff-0.8.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for affidiff 0.8.0
File Actions
affidiff-0.8.0-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.8.0-cp315-cp315t-musllinux_1_2_x86_64.whl
affidiff-0.8.0-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.8.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.8.0-cp315-cp315t-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64 Details for affidiff-0.8.0-cp315-cp315t-macosx_11_0_arm64.whl
affidiff-0.8.0-cp315-cp315-musllinux_1_2_x86_64.whl CPython 3.15 CPython 3.15 Linux musl 1.2+ x86-64 Details for affidiff-0.8.0-cp315-cp315-musllinux_1_2_x86_64.whl
affidiff-0.8.0-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.8.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.8.0-cp315-cp315-macosx_11_0_arm64.whl CPython 3.15 CPython 3.15 macOS 11.0+ ARM64 Details for affidiff-0.8.0-cp315-cp315-macosx_11_0_arm64.whl
affidiff-0.8.0-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.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl
affidiff-0.8.0-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.8.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.8.0-cp314-cp314t-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64 Details for affidiff-0.8.0-cp314-cp314t-macosx_11_0_arm64.whl
affidiff-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl CPython 3.14 CPython 3.14 Linux musl 1.2+ x86-64 Details for affidiff-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl
affidiff-0.8.0-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.17+ x86-64, Linux glibc 2.28+ x86-64 Details for affidiff-0.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
affidiff-0.8.0-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details for affidiff-0.8.0-cp314-cp314-macosx_11_0_arm64.whl

Total release size: 1.9 MB

Release files / affidiff-0.8.0.tar.gz

Download URL affidiff-0.8.0.tar.gz
Size 200.4 kB
Tags Source
SHA-256 checksum
How to use checksums
c30c00aeb5aaec03bf2ad8eff10642738ac7e0271183c92364d2a9f588fd775f
BLAKE2b-256 checksum
How to use checksums
1b87e83bb7ddf69ec2e741d03aeb1fe0b97cf8b25c85fa7a1ef97030920af7dd
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp315-cp315t-musllinux_1_2_x86_64.whl
Size 143.7 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
838f77156c1ae7c632260c124ef0cf9ff1fc0c135ff02e76037b536505efccbe
BLAKE2b-256 checksum
How to use checksums
2c048501c1fefe1d5f635b623f6498c23c0c656f650d4f4b72d3df7047fa4140
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 142.9 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
60ceea605a55332fb2c8cfa75f8c758c80b45f64b98262240e49a3de37b578eb
BLAKE2b-256 checksum
How to use checksums
50fc23e7d9069213a4e022db9b97405d1489a1be3fe65efea4c8a90606baa1f2
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 123.8 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6960d792af6e8dedf13ecf30ab36c9a5e5beb161931e2d9d7b11f358ff97711f
BLAKE2b-256 checksum
How to use checksums
6b271c3e4a1e7412e543431ffbe1bc16affb9ba112765a77207fcd96dd9fd4dc
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-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
61086e2fe919841e39259a47bf8640a9a1d3dd7e013ddb7d8c04f8bb7649ffeb
BLAKE2b-256 checksum
How to use checksums
3cebb591bc75a132ad11d281383279c8a1d86d0cbef91055d1c1055a9c6576d6
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 146.8 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
722863abc4d44999b7e9d9d470bd7898ecf2f1bb9f4b5f0bc91e65f46954c0e0
BLAKE2b-256 checksum
How to use checksums
93b687c5d8b8d1e112f01ea653f4ec8a5e46f9b7a05975c0f99e225d4b9b39de
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp315-cp315-macosx_11_0_arm64.whl
Size 119.8 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7cbee0080799f7987765aa3dfa6ba720fcd6db4dfe24ee86197a443583483987
BLAKE2b-256 checksum
How to use checksums
11867222a34734350a060d017556b77713b01072e7499b1132b93b3e1bf26acd
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 144.4 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
58f9a629f61cd4978d72a48102ea76e8e793540e7f98cf95380d33db8b664ecd
BLAKE2b-256 checksum
How to use checksums
b88502b3930e770b1fb2a6d0b476b772a64228abbcfbc3738b2ad36cfdd98246
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 143.4 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
efbc5e40e264b7b4415f95926437ed4ab7d4a53ebe2655808e08a06efc234dc3
BLAKE2b-256 checksum
How to use checksums
6e919c5db19863213e6836f0172c124b988eecdcaa3235b6a3782fbb4ece0409
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 124.3 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a4b26e2591d16d767214f7b46e25a16d57503c82e5465dc83b71cbcab2c04be2
BLAKE2b-256 checksum
How to use checksums
1764e5d8e3356e381ce79c43c5313126dca29dfde3a80ffce0f11f354655c3c9
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 148.1 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
eb21759f8496afa4d6c8e003e1c718430e39c717ac8a74fc972d1a31f74ae58d
BLAKE2b-256 checksum
How to use checksums
fbcd0045fe79eba0b5f8b6bc4834031f8d79d89d82d8bc2a08f2cdde8debb914
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 147.8 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
58c6aa36c33d2d96576b60d08f1d47f92c8fb5de5776d44697b15e1e674728e9
BLAKE2b-256 checksum
How to use checksums
6baba820fdef8430b029e0560c3959b75765cdfaf4169f1c493ec45e141e8dd6
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 28, 2026.

Transparency log

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

Download URL affidiff-0.8.0-cp314-cp314-macosx_11_0_arm64.whl
Size 119.9 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e1053e9a73a152ccee0287ee6c0df502c39ee6ccce3fa93cadecabb60149e35b
BLAKE2b-256 checksum
How to use checksums
e85e620bf4341ee1a95741abfef45005ed8a0ff072db88b11e0aed91cca70a55
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 28, 2026.

Transparency log

Security for affidiff 0.8.0

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.8.0.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 28, 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