Metadata-Version: 2.4
Name: iints-sdk-python35
Version: 1.5.38
Summary: A pre-clinical Edge-AI SDK for diabetes management validation.
Author-email: Rune Bobbaers <rune.bobbaers@gmail.com>
License-Expression: Apache-2.0
Project-URL: Homepage, https://github.com/python35/IINTS-SDK
Project-URL: Documentation, https://python35.github.io/IINTS-SDK/
Project-URL: Repository, https://github.com/python35/IINTS-SDK
Project-URL: Issues, https://github.com/python35/IINTS-SDK/issues
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Requires-Python: <3.15,>=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
License-File: NOTICE
License-File: LICENSE-MIT-IINTS-LEGACY
Requires-Dist: certifi>=2024.2.2
Requires-Dist: cryptography<52.0.0,>=42.0.0
Requires-Dist: defusedxml<1.0.0,>=0.7.1
Requires-Dist: fastapi!=0.136.3,<0.141.2,>=0.115.0
Requires-Dist: numpy<3.0.0,>=1.24.0
Requires-Dist: packaging<27.0,>=23.0
Requires-Dist: pandas<3.0.0,>=2.0.0
Requires-Dist: pydantic<3.0.0,>=2.0.0
Requires-Dist: PyYAML<7.0.0,>=6.0.0
Requires-Dist: rich<16.0.0,>=12.0.0
Requires-Dist: scipy<2.0.0,>=1.9.0
Requires-Dist: starlette<2.0.0,>=1.3.1
Requires-Dist: typer<1.0.0,>=0.9.0
Requires-Dist: uvicorn<1.0.0,>=0.30.0
Provides-Extra: edge
Requires-Dist: pyserial<4.0,>=3.5; extra == "edge"
Provides-Extra: jetson
Requires-Dist: aiosqlite<1.0.0,>=0.19.0; extra == "jetson"
Requires-Dist: httpx<1.0.0,>=0.27.0; extra == "jetson"
Requires-Dist: psutil<8.0.0,>=5.9.0; extra == "jetson"
Provides-Extra: reports
Requires-Dist: fpdf2<3.0.0,>=2.8.0; extra == "reports"
Requires-Dist: matplotlib<4.0.0,>=3.5.0; extra == "reports"
Requires-Dist: openpyxl<4.0.0,>=3.0.0; extra == "reports"
Requires-Dist: pillow<14.0.0,>=13.0.0; extra == "reports"
Requires-Dist: SciencePlots<3.0.0,>=2.1.0; extra == "reports"
Requires-Dist: seaborn<1.0.0,>=0.11.0; extra == "reports"
Provides-Extra: full
Requires-Dist: fpdf2<3.0.0,>=2.8.0; extra == "full"
Requires-Dist: matplotlib<4.0.0,>=3.5.0; extra == "full"
Requires-Dist: openpyxl<4.0.0,>=3.0.0; extra == "full"
Requires-Dist: pyserial<4.0,>=3.5; extra == "full"
Requires-Dist: pillow<14.0.0,>=13.0.0; extra == "full"
Requires-Dist: SciencePlots<3.0.0,>=2.1.0; extra == "full"
Requires-Dist: seaborn<1.0.0,>=0.11.0; extra == "full"
Provides-Extra: dev
Requires-Dist: pytest<10.0.0,>=7.0.0; extra == "dev"
Requires-Dist: hypothesis<7.0.0,>=6.0.0; extra == "dev"
Requires-Dist: flake8<8.0.0,>=7.0.0; extra == "dev"
Requires-Dist: httpx<1.0.0,>=0.27.0; extra == "dev"
Requires-Dist: mypy<3.0.0,>=1.8.0; extra == "dev"
Requires-Dist: pandas-stubs<3.0.0,>=2.0.0; extra == "dev"
Requires-Dist: types-PyYAML<7.0.0,>=6.0.0; extra == "dev"
Requires-Dist: types-psutil<8.0.0,>=7.0.0; extra == "dev"
Provides-Extra: torch
Requires-Dist: torch<3.0.0,>=2.13.0; extra == "torch"
Provides-Extra: nightscout
Requires-Dist: aiohttp<4.0.0,>=3.14.1; extra == "nightscout"
Requires-Dist: py-nightscout; extra == "nightscout"
Provides-Extra: research
Requires-Dist: torch<3.0.0,>=2.13.0; extra == "research"
Requires-Dist: pyarrow<26.0.0,>=12.0.0; extra == "research"
Requires-Dist: h5py<4.0.0,>=3.10.0; extra == "research"
Requires-Dist: onnx<2.0.0,>=1.22.0; extra == "research"
Requires-Dist: onnxscript<1.0.0,>=0.1.0; extra == "research"
Requires-Dist: plotly<7.0.0,>=5.18.0; extra == "research"
Provides-Extra: mechanistic
Requires-Dist: libroadrunner<3.0.0,>=2.9.2; extra == "mechanistic"
Provides-Extra: fmi
Requires-Dist: FMPy<0.4.0,>=0.3.30; extra == "fmi"
Provides-Extra: mdmp
Requires-Dist: cryptography<51.0.0,>=50.0.0; extra == "mdmp"
Provides-Extra: desktop
Requires-Dist: pyinstaller<7.0.0,>=6.11.0; extra == "desktop"
Requires-Dist: setuptools<84.0.0,>=83.0.0; extra == "desktop"
Requires-Dist: PySide6<7.0.0,>=6.7.0; extra == "desktop"
Requires-Dist: plotly<7.0.0,>=5.18.0; extra == "desktop"
Provides-Extra: desktop-qt
Requires-Dist: pyinstaller<7.0.0,>=6.11.0; extra == "desktop-qt"
Requires-Dist: setuptools<84.0.0,>=83.0.0; extra == "desktop-qt"
Requires-Dist: PySide6<7.0.0,>=6.7.0; extra == "desktop-qt"
Requires-Dist: plotly<7.0.0,>=5.18.0; extra == "desktop-qt"
Provides-Extra: desktop-macos
Requires-Dist: pyinstaller<7.0.0,>=6.11.0; extra == "desktop-macos"
Requires-Dist: setuptools<84.0.0,>=83.0.0; extra == "desktop-macos"
Requires-Dist: pyobjc-framework-Cocoa<13.0,>=10.0; extra == "desktop-macos"
Provides-Extra: tauri-engine
Requires-Dist: FMPy<0.4.0,>=0.3.30; extra == "tauri-engine"
Requires-Dist: SciencePlots<3.0.0,>=2.1.0; extra == "tauri-engine"
Requires-Dist: fpdf2<3.0.0,>=2.8.0; extra == "tauri-engine"
Requires-Dist: libroadrunner<3.0.0,>=2.9.2; extra == "tauri-engine"
Requires-Dist: matplotlib<4.0.0,>=3.5.0; extra == "tauri-engine"
Requires-Dist: openpyxl<4.0.0,>=3.0.0; extra == "tauri-engine"
Requires-Dist: pillow<14.0.0,>=13.0.0; extra == "tauri-engine"
Requires-Dist: plotly<7.0.0,>=5.18.0; extra == "tauri-engine"
Requires-Dist: seaborn<1.0.0,>=0.11.0; extra == "tauri-engine"
Provides-Extra: desktop-all
Requires-Dist: FMPy<0.4.0,>=0.3.30; extra == "desktop-all"
Requires-Dist: SciencePlots<3.0.0,>=2.1.0; extra == "desktop-all"
Requires-Dist: fpdf2<3.0.0,>=2.8.0; extra == "desktop-all"
Requires-Dist: h5py<4.0.0,>=3.10.0; extra == "desktop-all"
Requires-Dist: libroadrunner<3.0.0,>=2.9.2; extra == "desktop-all"
Requires-Dist: matplotlib<4.0.0,>=3.5.0; extra == "desktop-all"
Requires-Dist: onnx<2.0.0,>=1.22.0; extra == "desktop-all"
Requires-Dist: onnxscript<1.0.0,>=0.1.0; extra == "desktop-all"
Requires-Dist: openpyxl<4.0.0,>=3.0.0; extra == "desktop-all"
Requires-Dist: pillow<14.0.0,>=13.0.0; extra == "desktop-all"
Requires-Dist: plotly<7.0.0,>=5.18.0; extra == "desktop-all"
Requires-Dist: pyarrow<26.0.0,>=12.0.0; extra == "desktop-all"
Requires-Dist: pyinstaller<7.0.0,>=6.11.0; extra == "desktop-all"
Requires-Dist: pyobjc-framework-Cocoa<13.0,>=10.0; platform_system == "Darwin" and extra == "desktop-all"
Requires-Dist: pyserial<4.0,>=3.5; extra == "desktop-all"
Requires-Dist: PySide6<7.0.0,>=6.7.0; extra == "desktop-all"
Requires-Dist: seaborn<1.0.0,>=0.11.0; extra == "desktop-all"
Requires-Dist: setuptools<84.0.0,>=83.0.0; extra == "desktop-all"
Requires-Dist: torch<3.0.0,>=2.13.0; extra == "desktop-all"
Dynamic: license-file

# IINTS-AF SDK

[![EUCYS 2026](https://img.shields.io/badge/EUCYS-2026%20Selected-gold?style=flat)](https://www.uni-kiel.de/en/eucys2026)
[![PyPI version](https://badge.fury.io/py/iints-sdk-python35.svg)](https://badge.fury.io/py/iints-sdk-python35)
[![CI](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml/badge.svg)](https://github.com/python35/IINTS-SDK/actions/workflows/python-package.yml)
[![Docs](https://img.shields.io/badge/docs-IINTS--AF-0a66c2?style=flat)](https://python35.github.io/IINTS-SDK/)

**IINTS-AF** is an open-source research SDK for closed-loop diabetes-technology simulation, insulin-dosing algorithm benchmarking, and safety-supervisor evaluation. It combines mechanistic glucose–insulin physiology models (Bergman minimal model and 19-state Hovorka-style model), realistic CGM/pump fault injection, deterministic safety verification, and reproducible reporting.

> **Research-only boundary:** IINTS-AF is **not a medical device**. It must not be used for diagnosis, insulin dosing, treatment decisions, or real-time patient care.

---

## Quick Start

The core SDK and headless Jetson worker support Python 3.10–3.14. Reporting and desktop-engine extras (`reports`, `full`, `tauri-engine`, `desktop-all`) require Python 3.11–3.14 because security-fixed Pillow 13 requires Python 3.11 or newer.

```bash
python -m pip install -U "iints-sdk-python35[full,mdmp,research,edge]"
iints demo
iints menu
iints version --refresh
```

For local development and running the test suite:

```bash
git clone https://github.com/python35/IINTS-SDK.git
cd IINTS-SDK
make dev
make test
```

---

## Repository Structure

| Directory / File | Purpose |
| :--- | :--- |
| [`src/iints/`](src/iints/) | Core Python SDK: physiology models (`core/patient/`), controllers (`core/algorithms/`), commercial AID emulations (`emulation/`), safety supervisor (`core/supervisor.py`), metrics, and CLI. |
| [`sources/`](sources/) | **Curated academic literature library** on closed-loop insulin pump (AID) algorithms, open-source AID, simulators, fault tolerance, regulation, and datasets — with verified DOIs and [`references.bib`](sources/references.bib). |
| [`research/`](research/) | Reproducible research pipelines: dataset preparation, glucose forecasting, simulator realism calibration, evidence exports, and benchmark artifacts. |
| [`algorithms/`](algorithms/) | Starter template for implementing and testing custom closed-loop insulin algorithms. |
| [`examples/`](examples/) | Guided demos ([`examples/demos/`](examples/demos/)), Jupyter notebooks ([`examples/notebooks/`](examples/notebooks/)), and analysis scripts (see [`examples/README.md`](examples/README.md)). |
| [`docs/`](docs/) | Full MkDocs documentation site, formula registry, governance dossier, experimental results ([`EXPERIMENTAL_RESULTS.md`](docs/EXPERIMENTAL_RESULTS.md)), and complete SDK bibliography. |
| [`tests/`](tests/) | Automated unit, regression, safety, governance, and performance test suites. |
| [`apps/iints-tauri/`](apps/iints-tauri/) | Optional native Rust/Tauri research workbench shell around the Python SDK. |
| [`tools/`](tools/) & [`scripts/`](scripts/) | CI governance gates, documentation generators, and helper scripts. |
| [`paper.md`](paper.md) & [`paper.bib`](paper.bib) | Short software paper and BibTeX references (see also [`CITATION.cff`](CITATION.cff)). |

---

## Closed-Loop AID Research & Literature (`sources/`)

If you are using this repository for university research on open-source closed-loop insulin pump algorithms, start in [`sources/README.md`](sources/README.md):

1. [`01_commercial_aid_algorithms.md`](sources/01_commercial_aid_algorithms.md) — Published mathematical foundations of commercial systems (PID-IFB, Zone-MPC, Hovorka NMPC, Omnipod 5, iLet).
2. [`02_open_source_aid_and_clinical_trials.md`](sources/02_open_source_aid_and_clinical_trials.md) — Open-source AID (`oref0`/`oref1`, OpenAPS, AndroidAPS, Loop, Tidepool Loop), CREATE RCT, and international consensus.
3. [`03_physiology_simulators_and_digital_twins.md`](sources/03_physiology_simulators_and_digital_twins.md) — Bergman, Hovorka, UVA/Padova, `simglucose`, `ReplayBG`, and glycemic consensus metrics.
4. [`04_control_theory_and_ai_rl.md`](sources/04_control_theory_and_ai_rl.md) — Control-engineering reviews, Safe/Offline Reinforcement Learning, Dual-Hormone AP, and CGM foundation models.
5. [`05_safety_fault_tolerance_and_regulation.md`](sources/05_safety_fault_tolerance_and_regulation.md) — Compression lows (PISA), pump occlusions, safety supervisors, FDA iAGC, and EU MDR pathways.
6. [`06_datasets_and_benchmarks.md`](sources/06_datasets_and_benchmarks.md) — Real-world T1D datasets (OhioT1DM, T1DEXI, OpenAPS Data Commons, DiaTrend, AZT1D, HUPA-UCM, MetaboNet).
7. [`references.bib`](sources/references.bib) — Verified BibTeX bibliography ready for LaTeX, Overleaf, or Zotero.

---

## Desktop App (Optional)

The optional Rust/Tauri research workbench offers guided simulation runs, result inspection, local AI review, and MDMP data-assurance tools.

| Platform | Latest beta |
| :--- | :--- |
| Windows | [`.exe` installer](https://github.com/python35/IINTS-SDK/releases/download/tauri-beta-latest/IINTS-AF-Research-Workbench-windows-x64-setup.exe) |
| macOS | [`.dmg`](https://github.com/python35/IINTS-SDK/releases/download/tauri-beta-latest/IINTS-AF-Research-Workbench-macos.dmg) |
| Linux | [`.AppImage`](https://github.com/python35/IINTS-SDK/releases/download/tauri-beta-latest/IINTS-AF-Research-Workbench-linux-x64.AppImage) |

---

## Documentation & Links

- **Website:** [iints.org](https://iints.org)
- **Documentation:** [python35.github.io/IINTS-SDK](https://python35.github.io/IINTS-SDK/) (source in [`docs/`](docs/))
- **Desktop guide:** [Tauri Research Workbench](https://python35.github.io/IINTS-SDK/TAURI_DESKTOP/)
- **Source code:** [github.com/python35/IINTS-SDK](https://github.com/python35/IINTS-SDK)
- **Security policy:** [`SECURITY.md`](SECURITY.md) · **Contributing:** [`CONTRIBUTING.md`](CONTRIBUTING.md)

## Citation & License

If you use IINTS-AF in academic work, please cite [`CITATION.cff`](CITATION.cff).

Licensed under **Apache-2.0** ([`LICENSE`](LICENSE)), with legacy MIT notices where applicable ([`LICENSE-MIT-IINTS-LEGACY`](LICENSE-MIT-IINTS-LEGACY)).
