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.4.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.4.0
File Size Uploaded Provenance Actions
medpipe-0.4.0.tar.gz 90.5 kB With provenance Details for medpipe-0.4.0.tar.gz

Built distribution (wheel)

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

Total release size: 189.6 kB

Release files / medpipe-0.4.0.tar.gz

Download URL medpipe-0.4.0.tar.gz
Size 90.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b00868ecd3522d1728acde386e9e2b159e0162ddac49c237ef36f9e81607664e
BLAKE2b-256 checksum
How to use checksums
9e5b5ed57014c122fcd6e36ce90e0964e47fb00317ad86d5aeaa4ac3dc5c7816
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 Oct 30, 2026.

Transparency log

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

Download URL medpipe-0.4.0-py3-none-any.whl
Size 99.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2967d58b4d8577560c9b1113555320286d2a61f190e1dd73a1b5af3315546322
BLAKE2b-256 checksum
How to use checksums
682c34eb382bae602585e5bbb08ca25e7a537c22165f69f455e11a4bce92711b
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 Oct 30, 2026.

Transparency log

Security for medpipe 0.4.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.4.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 Oct 30, 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