Skip to main content

MedPipe

PyPI Version PyPI Python Versions License tests Docs

Table of content

  1. Overview
  2. Installation
  3. Key features
  4. Quickstart example
  5. Acknowledgements

Overview

The MedPipe package is a layer to help create AI models (classifiers and regressors) for clinical applications from tabular data. It covers data loading and preprocessing, model creation and training, recalibration, and visualisation.


Installation

To install MedPipe use pip:

$ pip install medpipe

Key features

  • TRIPOD+AI Guideline Compliant: Designed from the ground up to follow rigorous clinical machine learning reporting standards.
  • Scikit-Learn Compatible: Integrates seamlessly with standard Scikit-Learn estimators, transformers, and pipelines.
  • Declarative TOML Configuration: Define entire experiments, from preprocessing to plotting aesthetics, in a single validated TOML configuration file.
  • Multi-Outcome Pipelines: Model distinct clinical outcomes in a single run with independent hyperparameter and recalibration overrides.
  • Integrated Recalibration & Fairness: Native probability recalibration and stratified subgroup analysis to evaluate algorithmic fairness across patient cohorts.
  • Clinical Metrics & Visualizations: Automatic generation of Decision Curve Analysis (DCA), reliability diagrams, ROC/PR curves, and bootstrapped 95% confidence intervals.
  • Standardized Artifact Tracking: Automatic, structured output management for models, metrics, environment metadata, and execution logs in a unified artifacts/ hierarchy.

Quickstart example

Minimal example based on the provided configuration file (examples/default_classifier_config.toml):

from pydantic import ValidationError

from medpipe import MedpipeClassifier

try:  # Catch any Pydantic configuration errors
    pipe = MedpipeClassifier("default_classifier_config.toml")
    pipe.run()
except ValidationError as err:
    print(err)
    exit()

Acknowledgements

This package was developed using Claude Sonnet 5.5. The code was reviewed and edited by humans.

Metadata

Release files for medpipe 0.5.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 medpipe 0.5.0
File Size Uploaded Provenance Actions
medpipe-0.5.0.tar.gz 92.2 kB With provenance Details for medpipe-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for medpipe 0.5.0
File Interpreter ABI Platform Actions
medpipe-0.5.0-py3-none-any.whl Python 3 none any Details for medpipe-0.5.0-py3-none-any.whl

Total release size: 193.1 kB

Release files / medpipe-0.5.0.tar.gz

Download URL medpipe-0.5.0.tar.gz
Size 92.2 kB
Tags Source
SHA-256 checksum
How to use checksums
11a6cc6d1d27ca59e78c07aee116854fc875a51a30426b6141af9c9c3d9bf6c6
BLAKE2b-256 checksum
How to use checksums
3d5cb0cc9c061e7db62766e2f19b80ecad3d3f60a29b8e0e41413a94ddd52530
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 22, 2026.

Transparency log

Release files / medpipe-0.5.0-py3-none-any.whl

Download URL medpipe-0.5.0-py3-none-any.whl
Size 100.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9479c5ff1fe453225e2a2991ea83148e0585c469f1c6e1c725f4929780d4d01d
BLAKE2b-256 checksum
How to use checksums
b87554808e07a466fea501b49d0722a82a7ef9c63f2a5aaab9d96597ecf293ef
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 22, 2026.

Transparency log

Security for medpipe 0.5.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for medpipe-0.5.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 22, 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