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.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.7.0
File Size Uploaded Provenance Actions
affidiff-0.7.0.tar.gz 196.6 kB With provenance Details for affidiff-0.7.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.8 MB

Release files / affidiff-0.7.0.tar.gz

Download URL affidiff-0.7.0.tar.gz
Size 196.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6cb68394a62bc9cc1016db1fa8dfd18f1dc4ca9ffc7880a6c7e5aa07c0b661f5
BLAKE2b-256 checksum
How to use checksums
8364fa7e7f5ca781f4535bb0d70d76ea5f092f6bed4957fd8083bbf2c222e0df
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315t-musllinux_1_2_x86_64.whl
Size 141.2 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
cfd403e72910c861e5ad09d14d1dac4d8fa9462e9da99d45a0080ad68e5c3624
BLAKE2b-256 checksum
How to use checksums
e5e6ac94ac24525dcd139bf2b6b8e29fe9668af1eda7efdee98a533f76372665
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 140.3 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
9eb8385bf85bde0a36032caf590d0dba048a41ac335cb8b8882567eab3edb810
BLAKE2b-256 checksum
How to use checksums
215e3c316e4e1e56fe5d717ca9b7498c4ac883aa1bd60258c6de1073b4377976
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 121.4 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c88904ea48cf1ab8fe984c34fb6e65fcbcee57d7543e846337b355ffae03f2a1
BLAKE2b-256 checksum
How to use checksums
5113348494f4786e6cad008d35072198a3b2ef08956ed32c74b8f0feeaaf11c1
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315-musllinux_1_2_x86_64.whl
Size 145.4 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
36c4abb5f0d7501be6a0f5a762c9e9f1da78e4ec733d81aaac7fe1acd05acb39
BLAKE2b-256 checksum
How to use checksums
ba1726b216083c4b07222ac1722494fc9cdcb3413335f1c4e816d3a63e94aef0
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 144.6 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
c42cfa66f63f35b96c85340fd046b9451d700311336b6e2a52421a60f36e6ca4
BLAKE2b-256 checksum
How to use checksums
a944e5e9f0a37b194b59aad7647d6c7e6f479c72e6496d063c42a525103d2aa7
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp315-cp315-macosx_11_0_arm64.whl
Size 117.2 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
0ce8464db13cace6286866005a8fb62f5db1e72d58a14a9d913b55cf58e7bb4a
BLAKE2b-256 checksum
How to use checksums
1c1197c62f83209dc457ab470dc561657fcab1e17311f5b37ac63d1d5eb3e4a8
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 141.9 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
3c4da8b7dee253dfbc84521e2dc24c6dd08d44dce11e5a308900169e7626f5ef
BLAKE2b-256 checksum
How to use checksums
2024e97b3435e73781a18e585e685f495e22f754e51ab4736a6d0b9e94a0afb0
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 141.1 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
6a7219d8fb683a0e8a52b7e00a82f65c0fbc8fa170134d793b1d08679e6cd3ba
BLAKE2b-256 checksum
How to use checksums
3f3252e8c887f3f5e8e7ae0c31089280e4207670cd694678e93b1fa145242e26
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 121.9 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
da196040a1841aaffac098f99a539846bbf228eaa11925c08709abc4ee84aede
BLAKE2b-256 checksum
How to use checksums
b32ae7f2fd9bbf69a8a72e76aa7963c95d1f773a9318dac2bf12cea6183e056b
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 144.5 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
52ae110ca0a6d11acacd78df9f54893ce7dd27783323fd241bb0e37984b498b8
BLAKE2b-256 checksum
How to use checksums
abd433d923162aaa7cc31143602777e65578862ddcef24982efaadc0fb650fa6
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 144.1 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
5b27c69b6fd56fe0b12aedb6800f03f7854500f561d1924767178b818b09bb62
BLAKE2b-256 checksum
How to use checksums
5d894cec634fdf293b5c7e40f36748973972a422317df3a9f6671ba4ff6445e0
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 21, 2026.

Transparency log

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

Download URL affidiff-0.7.0-cp314-cp314-macosx_11_0_arm64.whl
Size 117.3 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2ca4a207289f7ebef5745ab60848dd407112b996ac83da4c27c0372647af53c2
BLAKE2b-256 checksum
How to use checksums
34b25e5a3b78493e70da3c7ca40e9852bf6e2606a22bef94109471d59832defd
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 21, 2026.

Transparency log

Security for affidiff 0.7.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.7.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 21, 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