Skip to content

Python

Quick Start

We provide three libraries for use:

  1. MedPython: A Python library that integrates with our C library.
  2. ETL Library: A pure Python utility designed to assist in creating Data Repositories.
  3. AlgoMarker API Server: A pure Python server wrapper for utilizing the AlgoMarker library (limited to predict/apply for implementation setting. Much lighter as opposed to MedPython).

Note: These libraries are not currently available as PyPi packages. To use them, you need to set the PYTHONPATH environment variable to their installation paths. For more information: Setup

Pages

Setup

Using PyPI

pip install medpython

Usage

1
2
3
import med
from AlgoMarker import AlgoMarker
from ETL_Infra import prepare_final_signals, prepare_dicts, finish_prepare_load, create_train_signal

More information on usage:

Compile Yourself

  1. Clone the Git Repositories:
  2. Set Up MedPython: Follow the instructions in Setup MedPython. The ETL Library and AlgoMarker API Server doesn't requires installation and are pure python code.
  3. Configure Environment Variables: Ensure Python recognizes the libraries by setting the PYTHONPATH environment variable. Replace ${MR_LIBS} with the path to the cloned MR_LIBS repository and ${MR_TOOLS} with the path to the cloned MR_Tools repository.
export PYTHONPATH=${MR_LIBS}/Internal/MedPyExport/generate_binding/Release/medial-python312:${MR_TOOLS}/RepoLoadUtils/common

The Python AlgoMarker API Server does not require installation. Simply run the script directly when needed.