Python API for MES Infrastructure
Python API for MES Infrastructure
Overview
MedPython package provides a Python API for the MES Infrastructure, allowing you to train and manipulate MES models.
Installation
Requires Python 3.8+.
Build from source:
Platform Support
| Platform | x86_64 (Intel/AMD) | aarch64 (ARM / Apple Silicon) |
|---|---|---|
| Linux (glibc) | ✅ Pre-built (Py 3.10-3.14) | ✅ Pre-built (Py 3.12) |
| Linux (Alpine/musl) | 🛠️ Compile Required | 🛠️ Compile Required |
| Windows | ✅ Pre-built (Py 3.10-3.13) | 🛠️ Compile Required |
| macOS | ✅ Pre-built (Py 3.10-3.13) | 🛠️ Compile Required |
Note: For any Compile Required or either not listed as Pre-built. Compliation is required. See the "Build from Source" instructions below.
Installation Steps
- Install required system libraries:
- Ensure NumPy is installed:
This API supports both NumPy 1.x and 2.x. For maximum compatibility, compile with NumPy 2.x (works for clients with either version). Compiling with NumPy 1.x will not work for clients using 2.x.
- Build the Python API:
A full docker image for compilation steps can be found under this link:
- 04.medpython A build with the python. Please edit, install your python version in the build. This will use the python 3.10 on manylinux2014 (Centos 7) to support all linux distros with glibc >= 2.17. If you need a different version, please install it inside the docker before executing the setup script
Alpine
Install those Alpine packages
Just run the install script pip install . -vv