iints-sdk-python35 1.3.2__tar.gz → 1.5.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- iints_sdk_python35-1.5.0/LICENSE +173 -0
- iints_sdk_python35-1.3.2/LICENSE → iints_sdk_python35-1.5.0/LICENSE-MIT-IINTS-LEGACY +0 -7
- iints_sdk_python35-1.5.0/NOTICE +17 -0
- {iints_sdk_python35-1.3.2/src/iints_sdk_python35.egg-info → iints_sdk_python35-1.5.0}/PKG-INFO +26 -18
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/README.md +21 -15
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/pyproject.toml +10 -4
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/__init__.py +1 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/assistant.py +3 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/backends/ollama.py +32 -2
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/cli.py +51 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/mdmp_guard.py +2 -3
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/prepare.py +28 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/prompts.py +19 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/booth_demo.py +3 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/carelink_workbench.py +17 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/clinical_metrics.py +13 -7
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/validator.py +10 -4
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/patient/bergman_model.py +3 -2
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/patient/models.py +1 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/patient/patient_factory.py +8 -8
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/patient/profile.py +1 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/safety/config.py +13 -4
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/safety/input_validator.py +12 -7
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/adapter.py +7 -2
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/ingestor.py +7 -2
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/quality_checker.py +12 -4
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/registry.py +23 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/highlevel.py +1 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/learning/autonomous_optimizer.py +13 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/mdmp/backend.py +2 -3
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/predictor.py +9 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/demos/live_stage_demo.py +2 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0/src/iints_sdk_python35.egg-info}/PKG-INFO +26 -18
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints_sdk_python35.egg-info/SOURCES.txt +41 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints_sdk_python35.egg-info/entry_points.txt +1 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints_sdk_python35.egg-info/requires.txt +1 -1
- iints_sdk_python35-1.5.0/src/iints_sdk_python35.egg-info/top_level.txt +5 -0
- iints_sdk_python35-1.5.0/src/mdmp_ai/__init__.py +3 -0
- iints_sdk_python35-1.5.0/src/mdmp_ai/lineage.py +198 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/__init__.py +133 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/audit.py +166 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/bias_hooks.py +36 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/bundle.py +142 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/certification.py +38 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/cli.py +1352 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/compare.py +56 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/conformance.py +429 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/contracts.py +164 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/crypto.py +372 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/data/conformance/vectors/delegation.json +56 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/data/conformance/vectors/fingerprint.json +24 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/data/conformance/vectors/grading.json +83 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/data/conformance/vectors/signing.json +37 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/delegate.py +476 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/diffing.py +128 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/drift.py +203 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/exceptions.py +33 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/fingerprint.py +92 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/fingerprint_store.py +42 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/hf.py +60 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/keys/mdmp_pub_v1.pem +3 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/llm_provenance.py +34 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/migrate.py +182 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/policy.py +185 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/prov.py +31 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/registry.py +350 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/runner.py +292 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/schema_export.py +92 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/synthetic.py +30 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/trust.py +216 -0
- iints_sdk_python35-1.5.0/src/mdmp_core/visualizer.py +61 -0
- iints_sdk_python35-1.5.0/src/mdmp_flavors/__init__.py +146 -0
- iints_sdk_python35-1.5.0/src/mdmp_integrations/__init__.py +9 -0
- iints_sdk_python35-1.5.0/src/mdmp_integrations/dvc.py +30 -0
- iints_sdk_python35-1.5.0/src/mdmp_integrations/mlflow.py +14 -0
- iints_sdk_python35-1.5.0/src/mdmp_integrations/wandb.py +19 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_bergman.py +6 -0
- iints_sdk_python35-1.3.2/src/iints_sdk_python35.egg-info/top_level.txt +0 -1
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/setup.cfg +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/backends/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/backends/base.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/backends/mistral_api.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/ai/model_catalog.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/algorithm_xray.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/baseline.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/clinical_benchmark.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/clinical_tir_analyzer.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/diabetes_metrics.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/edge_efficiency.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/edge_performance_monitor.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/explainability.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/explainable_ai.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/hardware_benchmark.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/metrics.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/population_report.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/poster.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/reporting.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/safety_index.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/analysis/sensor_filtering.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/api/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/api/base_algorithm.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/api/registry.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/api/template_algorithm.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/assets/iints_logo.png +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/cli/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/cli/cli.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/battle_runner.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/correction_bolus.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/discovery.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/fixed_basal_bolus.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/hybrid_algorithm.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/lstm_algorithm.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/mock_algorithms.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/pid_controller.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/algorithms/standard_pump_algo.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/device.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/device_manager.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/devices/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/devices/models.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/patient/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/safety/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/safety/supervisor.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/simulation/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/simulation/scenario_parser.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/simulator.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/core/supervisor.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/column_mapper.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/contracts.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/datasets.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/demo/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/demo/demo_cgm.csv +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/guardians.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/importer.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/mdmp_visualizer.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/nightscout.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/runner.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/synthetic_mirror.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/tidepool.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/universal_parser.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_baseline.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_hyper_challenge.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_hypo_prone.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_midnight.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_pizza.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/clinic_safe_stress_meal.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/default_patient.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/data/virtual_patients/patient_559_config.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/demo_assets.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/emulation/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/emulation/legacy_base.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/emulation/medtronic_780g.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/emulation/omnipod_5.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/emulation/tandem_controliq.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/learning/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/learning/learning_system.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/mdmp/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/metrics.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/population/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/population/generator.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/population/runner.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/evidence_sources.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/forecast_calibration_profiles.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/golden_benchmark.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/presets.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/safety_contract_default.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/presets/validation_profiles.yaml +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/audit.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/calibration_gate.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/config.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/dataset.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/evaluation.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/losses.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/metrics.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/research/model_registry.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/scenarios/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/scenarios/generator.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/default_algorithm.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/demos/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/scenarios/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/scenarios/chaos_insulin_stacking.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/scenarios/chaos_runaway_ai.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/scenarios/example_scenario.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/templates/scenarios/exercise_stress.json +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/utils/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/utils/plotting.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/utils/run_io.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/golden.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/replay.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/run_validation.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/safety_contract.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/validation/schemas.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/visualization/__init__.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/visualization/cockpit.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints/visualization/uncertainty_cloud.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/src/iints_sdk_python35.egg-info/dependency_links.txt +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_cli_booth_demo.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_cli_carelink_workbench.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_cli_demo_export.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_cli_poster.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_install_doctor.py +0 -0
- {iints_sdk_python35-1.3.2 → iints_sdk_python35-1.5.0}/tests/test_population.py +0 -0
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
|
|
135
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
136
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
137
|
+
except as required for reasonable and customary use in describing the
|
|
138
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
139
|
+
|
|
140
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
141
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
142
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
143
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
144
|
+
implied, including, without limitation, any warranties or conditions
|
|
145
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
146
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
147
|
+
appropriateness of using or redistributing the Work and assume any
|
|
148
|
+
risks associated with Your exercise of permissions under this License.
|
|
149
|
+
|
|
150
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
151
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
152
|
+
unless required by applicable law (such as deliberate and grossly
|
|
153
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
154
|
+
liable to You for damages, including any direct, indirect, special,
|
|
155
|
+
incidental, or consequential damages of any character arising as a
|
|
156
|
+
result of this License or out of the use or inability to use the
|
|
157
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
158
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
159
|
+
other commercial damages or losses), even if such Contributor has
|
|
160
|
+
been advised of the possibility of such damages.
|
|
161
|
+
|
|
162
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
163
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
164
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
165
|
+
or other liability obligations and/or rights consistent with this
|
|
166
|
+
License. However, in accepting such obligations, You may act only
|
|
167
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
168
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
169
|
+
defend, and hold each Contributor harmless for any liability
|
|
170
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
171
|
+
of your accepting any such warranty or additional liability.
|
|
172
|
+
|
|
173
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -19,10 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
|
23
|
-
ACADEMIC USE DISCLAIMER:
|
|
24
|
-
This software is intended for academic research purposes only. It is not
|
|
25
|
-
intended for clinical use or as a medical device. Users must comply with
|
|
26
|
-
all applicable regulations and obtain proper approvals before any clinical
|
|
27
|
-
application. The authors disclaim any responsibility for clinical use of
|
|
28
|
-
this software.
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
IINTS-AF SDK
|
|
2
|
+
Copyright (c) 2026 IINTS-AF Contributors
|
|
3
|
+
|
|
4
|
+
This distribution now bundles MDMP components directly inside the SDK source tree,
|
|
5
|
+
including `mdmp_core`, `mdmp_ai`, `mdmp_flavors`, and `mdmp_integrations`.
|
|
6
|
+
|
|
7
|
+
Bundled MDMP code originates from the MDMP project and is included here under
|
|
8
|
+
the Apache License, Version 2.0.
|
|
9
|
+
|
|
10
|
+
The original IINTS-AF SDK was previously distributed under the MIT License.
|
|
11
|
+
The preserved MIT notice for legacy IINTS-origin portions is included in:
|
|
12
|
+
|
|
13
|
+
`LICENSE-MIT-IINTS-LEGACY`
|
|
14
|
+
|
|
15
|
+
Research-use notice:
|
|
16
|
+
This software is intended for academic and pre-clinical research purposes only.
|
|
17
|
+
It is not a medical device and does not provide clinical dosing advice.
|
{iints_sdk_python35-1.3.2/src/iints_sdk_python35.egg-info → iints_sdk_python35-1.5.0}/PKG-INFO
RENAMED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: iints-sdk-python35
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.5.0
|
|
4
4
|
Summary: A pre-clinical Edge-AI SDK for diabetes management validation.
|
|
5
5
|
Author-email: Rune Bobbaers <rune.bobbaers@gmail.com>
|
|
6
|
+
License-Expression: Apache-2.0
|
|
6
7
|
Project-URL: Homepage, https://github.com/python35/IINTS-SDK
|
|
7
8
|
Classifier: Programming Language :: Python :: 3
|
|
8
9
|
Classifier: Programming Language :: Python :: 3.10
|
|
9
10
|
Classifier: Programming Language :: Python :: 3.11
|
|
10
11
|
Classifier: Programming Language :: Python :: 3.12
|
|
11
12
|
Classifier: Programming Language :: Python :: 3.13
|
|
12
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
13
13
|
Classifier: Operating System :: OS Independent
|
|
14
14
|
Classifier: Development Status :: 5 - Production/Stable
|
|
15
15
|
Requires-Python: >=3.10
|
|
16
16
|
Description-Content-Type: text/markdown
|
|
17
17
|
License-File: LICENSE
|
|
18
|
+
License-File: NOTICE
|
|
19
|
+
License-File: LICENSE-MIT-IINTS-LEGACY
|
|
18
20
|
Requires-Dist: fpdf2>=2.8.0
|
|
19
21
|
Requires-Dist: matplotlib>=3.5.0
|
|
20
22
|
Requires-Dist: numpy>=1.24.0
|
|
@@ -46,7 +48,7 @@ Requires-Dist: h5py>=3.10.0; extra == "research"
|
|
|
46
48
|
Requires-Dist: onnx>=1.16.0; extra == "research"
|
|
47
49
|
Requires-Dist: onnxscript>=0.1.0; extra == "research"
|
|
48
50
|
Provides-Extra: mdmp
|
|
49
|
-
Requires-Dist:
|
|
51
|
+
Requires-Dist: cryptography>=42.0.0; extra == "mdmp"
|
|
50
52
|
Dynamic: license-file
|
|
51
53
|
|
|
52
54
|
# IINTS-AF SDK
|
|
@@ -83,6 +85,8 @@ iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
|
|
|
83
85
|
|
|
84
86
|
If you want the clearest install/path rules first, read:
|
|
85
87
|
- `docs/INSTALLATION.md`
|
|
88
|
+
- `docs/AI_ASSISTANT.md` for the small Ollama setup and SDK linking flow
|
|
89
|
+
- `docs/EVIDENCE_BASE.md` for the full medical + technical source legend
|
|
86
90
|
|
|
87
91
|
Short rule:
|
|
88
92
|
- installed `iints ...` commands can run from any folder
|
|
@@ -160,6 +164,12 @@ ollama pull ministral-3:8b
|
|
|
160
164
|
iints ai models
|
|
161
165
|
```
|
|
162
166
|
|
|
167
|
+
If you want the short "install Ollama + link it to the SDK" guide, read:
|
|
168
|
+
- `docs/AI_ASSISTANT.md`
|
|
169
|
+
|
|
170
|
+
If you want the full legend of medical, dataset, runtime, and emulator references used across the project docs:
|
|
171
|
+
- `docs/EVIDENCE_BASE.md`
|
|
172
|
+
|
|
163
173
|
Recommended first-time setup:
|
|
164
174
|
|
|
165
175
|
```bash
|
|
@@ -177,6 +187,7 @@ cd iints_quickstart
|
|
|
177
187
|
iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
|
|
178
188
|
iints ai prepare results/<run_id>
|
|
179
189
|
iints ai report results/<run_id>
|
|
190
|
+
iints ai review results/<run_id>
|
|
180
191
|
```
|
|
181
192
|
|
|
182
193
|
For imported CareLink data, the matching flow is:
|
|
@@ -187,6 +198,7 @@ iints carelink-workbench \
|
|
|
187
198
|
--output-dir results/personal_carelink
|
|
188
199
|
|
|
189
200
|
iints ai report results/personal_carelink --model ministral-3:3b
|
|
201
|
+
iints ai review results/personal_carelink --model ministral-3:3b
|
|
190
202
|
iints ai trends results/personal_carelink --model ministral-3:3b
|
|
191
203
|
iints ai explain results/personal_carelink --model ministral-3:3b
|
|
192
204
|
```
|
|
@@ -207,7 +219,7 @@ Notes:
|
|
|
207
219
|
- `iints ai prepare <run_dir>` now creates AI-ready JSON payloads and, when MDMP is installed, a local development certificate plus keypair in `<run_dir>/ai/`.
|
|
208
220
|
- `iints carelink-workbench` now does the same kind of AI preparation for imported personal CareLink data and also generates a dashboard PNG/HTML pair.
|
|
209
221
|
- If Ollama closes the connection during generation, the SDK now surfaces an explicit recovery hint and points users toward `ministral-3:3b` for lower-memory systems.
|
|
210
|
-
- After `iints ai prepare`, you can point `iints ai explain|trends|anomalies|report` directly at the run directory.
|
|
222
|
+
- After `iints ai prepare`, you can point `iints ai explain|trends|anomalies|report|review` directly at the run directory.
|
|
211
223
|
- After `iints carelink-workbench`, you can point those same AI commands directly at the generated CareLink workspace directory.
|
|
212
224
|
- Output is research-only and not medical advice.
|
|
213
225
|
|
|
@@ -345,13 +357,13 @@ iints mdmp validate mdmp_contract.yaml data/my_cgm.csv --output-json results/mdm
|
|
|
345
357
|
iints mdmp visualizer results/mdmp_report.json --output-html results/mdmp_dashboard.html
|
|
346
358
|
```
|
|
347
359
|
|
|
348
|
-
Use
|
|
360
|
+
Use bundled `mdmp_core` backend (optional):
|
|
349
361
|
|
|
350
362
|
```bash
|
|
351
363
|
export IINTS_MDMP_BACKEND=mdmp_core
|
|
352
364
|
```
|
|
353
365
|
|
|
354
|
-
Staleness / lineage checks
|
|
366
|
+
Staleness / lineage checks via the bundled `mdmp` CLI:
|
|
355
367
|
|
|
356
368
|
```bash
|
|
357
369
|
mdmp fingerprint-record data/my_cgm.csv --output-json results/fingerprint.json --expires-days 365
|
|
@@ -361,21 +373,17 @@ mdmp registry init --registry registry/mdmp_registry.json
|
|
|
361
373
|
mdmp registry push --registry registry/mdmp_registry.json --report results/mdmp_report.json
|
|
362
374
|
```
|
|
363
375
|
|
|
364
|
-
##
|
|
365
|
-
- SDK repo: `python35/IINTS-SDK`
|
|
366
|
-
- MDMP repo: `python35/MDMP`
|
|
376
|
+
## Bundled MDMP
|
|
367
377
|
|
|
368
|
-
|
|
369
|
-
- `tools/dev/dual_repo_status.sh`
|
|
370
|
-
- `tools/dev/dual_repo_commit_push.sh`
|
|
378
|
+
MDMP now ships inside the SDK, so the SDK no longer depends on a separate public MDMP repository checkout.
|
|
371
379
|
|
|
372
|
-
|
|
380
|
+
That means:
|
|
381
|
+
- `iints mdmp ...` stays available
|
|
382
|
+
- the bundled `mdmp` CLI can still be used
|
|
383
|
+
- local AI signing and verification can still use `mdmp_core`
|
|
373
384
|
|
|
374
|
-
|
|
375
|
-
-
|
|
376
|
-
- Uses private-repo checkout when `MDMP_REPO_TOKEN` is configured.
|
|
377
|
-
- Falls back to `mdmp-protocol` from PyPI when checkout is unavailable.
|
|
378
|
-
- Auto dependency updates for MDMP are handled via Dependabot (`.github/dependabot.yml`).
|
|
385
|
+
Reference:
|
|
386
|
+
- `docs/DUAL_REPO_WORKFLOW.md`
|
|
379
387
|
|
|
380
388
|
## Tools Layout
|
|
381
389
|
|
|
@@ -32,6 +32,8 @@ iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
|
|
|
32
32
|
|
|
33
33
|
If you want the clearest install/path rules first, read:
|
|
34
34
|
- `docs/INSTALLATION.md`
|
|
35
|
+
- `docs/AI_ASSISTANT.md` for the small Ollama setup and SDK linking flow
|
|
36
|
+
- `docs/EVIDENCE_BASE.md` for the full medical + technical source legend
|
|
35
37
|
|
|
36
38
|
Short rule:
|
|
37
39
|
- installed `iints ...` commands can run from any folder
|
|
@@ -109,6 +111,12 @@ ollama pull ministral-3:8b
|
|
|
109
111
|
iints ai models
|
|
110
112
|
```
|
|
111
113
|
|
|
114
|
+
If you want the short "install Ollama + link it to the SDK" guide, read:
|
|
115
|
+
- `docs/AI_ASSISTANT.md`
|
|
116
|
+
|
|
117
|
+
If you want the full legend of medical, dataset, runtime, and emulator references used across the project docs:
|
|
118
|
+
- `docs/EVIDENCE_BASE.md`
|
|
119
|
+
|
|
112
120
|
Recommended first-time setup:
|
|
113
121
|
|
|
114
122
|
```bash
|
|
@@ -126,6 +134,7 @@ cd iints_quickstart
|
|
|
126
134
|
iints presets run --name baseline_t1d --algo algorithms/example_algorithm.py
|
|
127
135
|
iints ai prepare results/<run_id>
|
|
128
136
|
iints ai report results/<run_id>
|
|
137
|
+
iints ai review results/<run_id>
|
|
129
138
|
```
|
|
130
139
|
|
|
131
140
|
For imported CareLink data, the matching flow is:
|
|
@@ -136,6 +145,7 @@ iints carelink-workbench \
|
|
|
136
145
|
--output-dir results/personal_carelink
|
|
137
146
|
|
|
138
147
|
iints ai report results/personal_carelink --model ministral-3:3b
|
|
148
|
+
iints ai review results/personal_carelink --model ministral-3:3b
|
|
139
149
|
iints ai trends results/personal_carelink --model ministral-3:3b
|
|
140
150
|
iints ai explain results/personal_carelink --model ministral-3:3b
|
|
141
151
|
```
|
|
@@ -156,7 +166,7 @@ Notes:
|
|
|
156
166
|
- `iints ai prepare <run_dir>` now creates AI-ready JSON payloads and, when MDMP is installed, a local development certificate plus keypair in `<run_dir>/ai/`.
|
|
157
167
|
- `iints carelink-workbench` now does the same kind of AI preparation for imported personal CareLink data and also generates a dashboard PNG/HTML pair.
|
|
158
168
|
- If Ollama closes the connection during generation, the SDK now surfaces an explicit recovery hint and points users toward `ministral-3:3b` for lower-memory systems.
|
|
159
|
-
- After `iints ai prepare`, you can point `iints ai explain|trends|anomalies|report` directly at the run directory.
|
|
169
|
+
- After `iints ai prepare`, you can point `iints ai explain|trends|anomalies|report|review` directly at the run directory.
|
|
160
170
|
- After `iints carelink-workbench`, you can point those same AI commands directly at the generated CareLink workspace directory.
|
|
161
171
|
- Output is research-only and not medical advice.
|
|
162
172
|
|
|
@@ -294,13 +304,13 @@ iints mdmp validate mdmp_contract.yaml data/my_cgm.csv --output-json results/mdm
|
|
|
294
304
|
iints mdmp visualizer results/mdmp_report.json --output-html results/mdmp_dashboard.html
|
|
295
305
|
```
|
|
296
306
|
|
|
297
|
-
Use
|
|
307
|
+
Use bundled `mdmp_core` backend (optional):
|
|
298
308
|
|
|
299
309
|
```bash
|
|
300
310
|
export IINTS_MDMP_BACKEND=mdmp_core
|
|
301
311
|
```
|
|
302
312
|
|
|
303
|
-
Staleness / lineage checks
|
|
313
|
+
Staleness / lineage checks via the bundled `mdmp` CLI:
|
|
304
314
|
|
|
305
315
|
```bash
|
|
306
316
|
mdmp fingerprint-record data/my_cgm.csv --output-json results/fingerprint.json --expires-days 365
|
|
@@ -310,21 +320,17 @@ mdmp registry init --registry registry/mdmp_registry.json
|
|
|
310
320
|
mdmp registry push --registry registry/mdmp_registry.json --report results/mdmp_report.json
|
|
311
321
|
```
|
|
312
322
|
|
|
313
|
-
##
|
|
314
|
-
- SDK repo: `python35/IINTS-SDK`
|
|
315
|
-
- MDMP repo: `python35/MDMP`
|
|
323
|
+
## Bundled MDMP
|
|
316
324
|
|
|
317
|
-
|
|
318
|
-
- `tools/dev/dual_repo_status.sh`
|
|
319
|
-
- `tools/dev/dual_repo_commit_push.sh`
|
|
325
|
+
MDMP now ships inside the SDK, so the SDK no longer depends on a separate public MDMP repository checkout.
|
|
320
326
|
|
|
321
|
-
|
|
327
|
+
That means:
|
|
328
|
+
- `iints mdmp ...` stays available
|
|
329
|
+
- the bundled `mdmp` CLI can still be used
|
|
330
|
+
- local AI signing and verification can still use `mdmp_core`
|
|
322
331
|
|
|
323
|
-
|
|
324
|
-
-
|
|
325
|
-
- Uses private-repo checkout when `MDMP_REPO_TOKEN` is configured.
|
|
326
|
-
- Falls back to `mdmp-protocol` from PyPI when checkout is unavailable.
|
|
327
|
-
- Auto dependency updates for MDMP are handled via Dependabot (`.github/dependabot.yml`).
|
|
332
|
+
Reference:
|
|
333
|
+
- `docs/DUAL_REPO_WORKFLOW.md`
|
|
328
334
|
|
|
329
335
|
## Tools Layout
|
|
330
336
|
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
[build-system]
|
|
2
|
-
requires = ["setuptools>=
|
|
2
|
+
requires = ["setuptools>=77.0.0"]
|
|
3
3
|
build-backend = "setuptools.build_meta"
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "iints-sdk-python35"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.5.0"
|
|
8
8
|
authors = [
|
|
9
9
|
{ name="Rune Bobbaers", email="rune.bobbaers@gmail.com" },
|
|
10
10
|
]
|
|
11
11
|
description = "A pre-clinical Edge-AI SDK for diabetes management validation."
|
|
12
12
|
readme = "README.md"
|
|
13
|
+
license = "Apache-2.0"
|
|
14
|
+
license-files = ["LICENSE", "NOTICE", "LICENSE-MIT-IINTS-LEGACY"]
|
|
13
15
|
requires-python = ">=3.10"
|
|
14
16
|
classifiers = [
|
|
15
17
|
"Programming Language :: Python :: 3",
|
|
@@ -17,7 +19,6 @@ classifiers = [
|
|
|
17
19
|
"Programming Language :: Python :: 3.11",
|
|
18
20
|
"Programming Language :: Python :: 3.12",
|
|
19
21
|
"Programming Language :: Python :: 3.13",
|
|
20
|
-
"License :: OSI Approved :: MIT License",
|
|
21
22
|
"Operating System :: OS Independent",
|
|
22
23
|
"Development Status :: 5 - Production/Stable",
|
|
23
24
|
]
|
|
@@ -60,12 +61,13 @@ research = [
|
|
|
60
61
|
"onnxscript>=0.1.0",
|
|
61
62
|
]
|
|
62
63
|
mdmp = [
|
|
63
|
-
"
|
|
64
|
+
"cryptography>=42.0.0",
|
|
64
65
|
]
|
|
65
66
|
|
|
66
67
|
[project.scripts]
|
|
67
68
|
iints = "iints.cli.cli:app"
|
|
68
69
|
iints-sdk-doctor = "iints_sdk_python35_doctor:main"
|
|
70
|
+
mdmp = "mdmp_core.cli:app"
|
|
69
71
|
|
|
70
72
|
[project.entry-points."iints.algorithms"]
|
|
71
73
|
"PID Controller" = "iints.core.algorithms.pid_controller:PIDController"
|
|
@@ -92,3 +94,7 @@ iints = [
|
|
|
92
94
|
"presets/*.json",
|
|
93
95
|
"presets/*.yaml",
|
|
94
96
|
]
|
|
97
|
+
mdmp_core = [
|
|
98
|
+
"keys/*.pem",
|
|
99
|
+
"data/conformance/vectors/*.json",
|
|
100
|
+
]
|
|
@@ -11,7 +11,7 @@ except ImportError: # pragma: no cover - Python < 3.8 fallback
|
|
|
11
11
|
try:
|
|
12
12
|
__version__ = version("iints-sdk-python35")
|
|
13
13
|
except PackageNotFoundError: # pragma: no cover - source tree fallback
|
|
14
|
-
__version__ = "1.
|
|
14
|
+
__version__ = "1.5.0"
|
|
15
15
|
|
|
16
16
|
# Note to developers: this SDK is currently maintained by a single author.
|
|
17
17
|
# Please report bugs via GitHub issues and feel free to contribute fixes via PRs.
|
|
@@ -2,9 +2,11 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import json
|
|
4
4
|
import os
|
|
5
|
+
from ipaddress import ip_address
|
|
5
6
|
from http.client import IncompleteRead, RemoteDisconnected
|
|
6
7
|
from time import sleep
|
|
7
8
|
from urllib import error, request
|
|
9
|
+
from urllib.parse import urlparse
|
|
8
10
|
|
|
9
11
|
|
|
10
12
|
DEFAULT_OLLAMA_HOST = "http://127.0.0.1:11434"
|
|
@@ -35,10 +37,38 @@ class OllamaBackend:
|
|
|
35
37
|
timeout_seconds: float = 120.0,
|
|
36
38
|
) -> None:
|
|
37
39
|
self.model_name = model_name
|
|
38
|
-
|
|
40
|
+
raw_base_url = base_url or os.getenv("OLLAMA_HOST") or DEFAULT_OLLAMA_HOST
|
|
41
|
+
self.base_url = self._validate_base_url(raw_base_url)
|
|
39
42
|
self.timeout_seconds = timeout_seconds
|
|
40
43
|
self.resolved_model_name: str | None = None
|
|
41
44
|
|
|
45
|
+
@staticmethod
|
|
46
|
+
def _is_loopback_host(hostname: str) -> bool:
|
|
47
|
+
if hostname == "localhost":
|
|
48
|
+
return True
|
|
49
|
+
try:
|
|
50
|
+
return ip_address(hostname).is_loopback
|
|
51
|
+
except ValueError:
|
|
52
|
+
return False
|
|
53
|
+
|
|
54
|
+
@classmethod
|
|
55
|
+
def _validate_base_url(cls, raw_base_url: str) -> str:
|
|
56
|
+
parsed = urlparse(raw_base_url)
|
|
57
|
+
if parsed.scheme not in {"http", "https"}:
|
|
58
|
+
raise ValueError(
|
|
59
|
+
"OLLAMA_HOST/base_url must use http or https. Other URL schemes are blocked."
|
|
60
|
+
)
|
|
61
|
+
if not parsed.hostname:
|
|
62
|
+
raise ValueError("OLLAMA_HOST/base_url must include a hostname.")
|
|
63
|
+
if parsed.path not in {"", "/"}:
|
|
64
|
+
raise ValueError("OLLAMA_HOST/base_url must not include a path component.")
|
|
65
|
+
if not cls._is_loopback_host(parsed.hostname) and os.getenv("IINTS_ALLOW_REMOTE_OLLAMA") != "1":
|
|
66
|
+
raise ValueError(
|
|
67
|
+
"Remote Ollama endpoints are disabled by default. "
|
|
68
|
+
"Use localhost/127.0.0.1 or set IINTS_ALLOW_REMOTE_OLLAMA=1 explicitly."
|
|
69
|
+
)
|
|
70
|
+
return raw_base_url.rstrip("/")
|
|
71
|
+
|
|
42
72
|
def _pull_hint(self) -> str:
|
|
43
73
|
return f"ollama pull {self.model_name}"
|
|
44
74
|
|
|
@@ -102,7 +132,7 @@ class OllamaBackend:
|
|
|
102
132
|
headers["Content-Type"] = "application/json"
|
|
103
133
|
req = request.Request(url, data=body, headers=headers, method=method)
|
|
104
134
|
try:
|
|
105
|
-
with request.urlopen(req, timeout=self.timeout_seconds) as response:
|
|
135
|
+
with request.urlopen(req, timeout=self.timeout_seconds) as response: # nosec B310 - base_url is scheme/host validated
|
|
106
136
|
text = response.read().decode("utf-8")
|
|
107
137
|
except error.HTTPError as exc:
|
|
108
138
|
detail = exc.read().decode("utf-8", errors="replace").strip()
|
|
@@ -43,6 +43,7 @@ def _default_prepared_payload(task: str, ai_dir: Path) -> Path:
|
|
|
43
43
|
"trends": ["trends_payload.json"],
|
|
44
44
|
"anomalies": ["anomalies_payload.json"],
|
|
45
45
|
"report": ["report_payload.json"],
|
|
46
|
+
"review": ["review_payload.json", "report_payload.json"],
|
|
46
47
|
}.get(task, [])
|
|
47
48
|
for filename in candidates:
|
|
48
49
|
candidate = ai_dir / filename
|
|
@@ -95,6 +96,14 @@ def _write_output(path: Path | None, response: AIResponse) -> None:
|
|
|
95
96
|
path.write_text(response.text + "\n", encoding="utf-8")
|
|
96
97
|
|
|
97
98
|
|
|
99
|
+
def _default_output_for_review(input_path: Path, output: Path | None) -> Path | None:
|
|
100
|
+
if output is not None:
|
|
101
|
+
return output
|
|
102
|
+
if input_path.is_dir():
|
|
103
|
+
return input_path / "ai" / "realism_review.md"
|
|
104
|
+
return None
|
|
105
|
+
|
|
106
|
+
|
|
98
107
|
def _render_response(console: Console, title: str, response: AIResponse, output: Path | None) -> None:
|
|
99
108
|
console.print(Panel(response.text, title=title, border_style="cyan"))
|
|
100
109
|
console.print(
|
|
@@ -438,3 +447,45 @@ def report(
|
|
|
438
447
|
except Exception as exc:
|
|
439
448
|
console.print(f"[bold red]Error:[/bold red] {exc}")
|
|
440
449
|
raise typer.Exit(code=1)
|
|
450
|
+
|
|
451
|
+
|
|
452
|
+
@app.command("review")
|
|
453
|
+
def review(
|
|
454
|
+
input_json: Annotated[Path, typer.Argument(help="Prepared run directory or JSON file with run-level simulation outputs.")],
|
|
455
|
+
mdmp_cert: Annotated[Optional[Path], typer.Option(help="Signed MDMP artifact required before AI analysis can run.")] = None,
|
|
456
|
+
mode: Annotated[str, typer.Option(help="AI backend mode. Use 'local' for Ollama/Ministral.")] = "auto",
|
|
457
|
+
model: Annotated[str, typer.Option(help="Ollama model name to use.")] = DEFAULT_MINISTRAL_MODEL,
|
|
458
|
+
minimum_grade: Annotated[str, typer.Option(help="Minimum MDMP grade required to allow analysis.")] = "research_grade",
|
|
459
|
+
public_key: Annotated[Optional[Path], typer.Option(help="Explicit MDMP public key for verification.")] = None,
|
|
460
|
+
trust_store: Annotated[Optional[Path], typer.Option(help="MDMP trust store for verification.")] = None,
|
|
461
|
+
ollama_host: Annotated[Optional[str], typer.Option(help="Override the Ollama base URL.")] = None,
|
|
462
|
+
timeout_seconds: Annotated[float, typer.Option(help="HTTP timeout for Ollama generation requests.")] = 120.0,
|
|
463
|
+
output: Annotated[Optional[Path], typer.Option(help="Optional file path to save the realism review.")] = None,
|
|
464
|
+
) -> None:
|
|
465
|
+
console = Console()
|
|
466
|
+
try:
|
|
467
|
+
resolved_input, resolved_cert, resolved_public_key = _resolve_cli_inputs(
|
|
468
|
+
task="review",
|
|
469
|
+
input_path=input_json,
|
|
470
|
+
mdmp_cert=mdmp_cert,
|
|
471
|
+
public_key=public_key,
|
|
472
|
+
trust_store=trust_store,
|
|
473
|
+
)
|
|
474
|
+
payload = _load_json_payload(resolved_input, "Input JSON")
|
|
475
|
+
assistant = _build_assistant(
|
|
476
|
+
mdmp_cert=resolved_cert,
|
|
477
|
+
mode=mode,
|
|
478
|
+
model=model,
|
|
479
|
+
minimum_grade=minimum_grade,
|
|
480
|
+
public_key=resolved_public_key,
|
|
481
|
+
trust_store=trust_store,
|
|
482
|
+
ollama_host=ollama_host,
|
|
483
|
+
timeout_seconds=timeout_seconds,
|
|
484
|
+
)
|
|
485
|
+
resolved_output = _default_output_for_review(input_json, output)
|
|
486
|
+
response = assistant.review_realism(payload)
|
|
487
|
+
_write_output(resolved_output, response)
|
|
488
|
+
_render_response(console, "IINTS AI Realism Review", response, resolved_output)
|
|
489
|
+
except Exception as exc:
|
|
490
|
+
console.print(f"[bold red]Error:[/bold red] {exc}")
|
|
491
|
+
raise typer.Exit(code=1)
|
|
@@ -14,9 +14,8 @@ def _load_mdmp_verifier() -> type[Any]:
|
|
|
14
14
|
module = importlib.import_module("mdmp_core")
|
|
15
15
|
except Exception as exc:
|
|
16
16
|
raise ImportError(
|
|
17
|
-
"MDMP verification requires the
|
|
18
|
-
"Install with: pip install iints-sdk-python35[mdmp]
|
|
19
|
-
"or: pip install 'mdmp-protocol>=0.3.0'"
|
|
17
|
+
"MDMP verification requires the bundled MDMP crypto support.\n"
|
|
18
|
+
"Install with: pip install iints-sdk-python35[mdmp]"
|
|
20
19
|
) from exc
|
|
21
20
|
verifier_cls = getattr(module, "MDMPVerifier", None)
|
|
22
21
|
if verifier_cls is None:
|