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.6.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.6.0
File Size Uploaded Provenance Actions
affidiff-0.6.0.tar.gz 195.5 kB With provenance Details for affidiff-0.6.0.tar.gz

Built distributions (wheels)

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

Total release size: 1.8 MB

Release files / affidiff-0.6.0.tar.gz

Download URL affidiff-0.6.0.tar.gz
Size 195.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f965dad55e3ce64577367169372b2080932fa8e3443e9cb6267d0d828daec2a7
BLAKE2b-256 checksum
How to use checksums
5c955d2071ee5f8be2eb7a34a75187ed69f1abd48b8019d6ce2cdf02b4d13ca0
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315t-musllinux_1_2_x86_64.whl
Size 140.5 kB
Tags CPython 3.15 CPython 3.15 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
107b50b5a24cc89ebd318212791ff94cac740d05bfc7be1b442f7cbfce4915ee
BLAKE2b-256 checksum
How to use checksums
62960550a347a92d1d710ae68b974b206a5f9457ec0a5e440a241867b062b3ad
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 139.7 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
98d1467a3f50dc7cae50df181af3bb78f17cdf91f86853d8c0530d276dd2b33d
BLAKE2b-256 checksum
How to use checksums
003d060742a312c008247c0e514ab8633c325231374acdd7dc3441100fa2de85
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315t-macosx_11_0_arm64.whl
Size 120.7 kB
Tags CPython 3.15 CPython 3.15 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
77257cfa191a41c28b676a86a10dffa7c09626273d076112cddee1df62b01de2
BLAKE2b-256 checksum
How to use checksums
acc240eaa0a60b2200b0d9db660f38d5e757768b63e6d3347cf94a6c754ab04e
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315-musllinux_1_2_x86_64.whl
Size 144.8 kB
Tags CPython 3.15 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
a20c0ba2a2db4e250f180ec5ad2effe476af737565e54bd494b57ff74889e56b
BLAKE2b-256 checksum
How to use checksums
e55cf770fe63a2c652827a9e7718d38a6c90591b80333db2ea8119658717fd52
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 143.9 kB
Tags CPython 3.15 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
d885438fd79b0fa460e619349d01f1d5249c78fb810fa8d240a260c19a03dbb6
BLAKE2b-256 checksum
How to use checksums
f6c6babb31397cc3769ba6024357b48eb33d5713f7567c1d5f6d12cfb437a1ac
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp315-cp315-macosx_11_0_arm64.whl
Size 116.6 kB
Tags CPython 3.15 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b4b2254bbc1f6f85dfdd6ada2fd96a9aa63f3f6dda73a8f32a412a4f253b6868
BLAKE2b-256 checksum
How to use checksums
f6dbcfeedff8163a8d30f129f713a50c401d79e800b2afffd6fef12cc4ae9c87
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314t-musllinux_1_2_x86_64.whl
Size 141.2 kB
Tags CPython 3.14 CPython 3.14 free-threading Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
0edbce8a883fbd3cbf8e06290459a229edb2e60936eea518f4dfa20bb9837a6a
BLAKE2b-256 checksum
How to use checksums
5f725c1dbacb4a731f4029b2edf274a18cca112001bbc370f05b88602396835c
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 140.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
61979ee6f6b6a94b3a0d87258c67c1c80c35301a99ae6cd74ba1c2bde1fe14f7
BLAKE2b-256 checksum
How to use checksums
ad4e81bc371ca8787b76734f1aa00aa5479f43e1e6eb667784113ef94307527f
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314t-macosx_11_0_arm64.whl
Size 121.2 kB
Tags CPython 3.14 CPython 3.14 free-threading macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
272c0a1fcba544bb7d89e21f9c3a6dd31a6828369f6abcde599e7bae9cfead1c
BLAKE2b-256 checksum
How to use checksums
69a93b6b4aa675ad927360f9d0c44aa396865b5593dfb019bbca4fe9eb1535a0
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314-musllinux_1_2_x86_64.whl
Size 143.9 kB
Tags CPython 3.14 Linux musl 1.2+ x86-64
SHA-256 checksum
How to use checksums
4248fe525e8c64c8dbf66a5b969e145a7795ae476f6b01a4dd04ec8031330b96
BLAKE2b-256 checksum
How to use checksums
97afa0d158937a6bbffe9f1fd8ce9b5bab34545378fe7f94c0f4b9be270357d6
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl
Size 143.5 kB
Tags CPython 3.14 Linux glibc 2.17+ x86-64 Linux glibc 2.28+ x86-64
SHA-256 checksum
How to use checksums
4e7a09dbf463507fe2aba46cd57a4fbc0df5201e2aedd9a73b5db90cc19a8595
BLAKE2b-256 checksum
How to use checksums
dff05f04bd8e8afa5e30d338690bd5a341552876355e140d22b373e07156b004
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 15, 2026.

Transparency log

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

Download URL affidiff-0.6.0-cp314-cp314-macosx_11_0_arm64.whl
Size 116.7 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
f1730a3d99b0b98c3f06a6099060aac53405e0ea919e664c7afb27b803898733
BLAKE2b-256 checksum
How to use checksums
3917386cfbb7c6a497a9d19b3ffad6e1000ba7c7c3ac11c9abcbaebb1b91d5b7
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 15, 2026.

Transparency log

Security for affidiff 0.6.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.6.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 15, 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