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 currently available as PyPi package. To use them, just type pip install medpython. 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:

Use From Source Code

  1. Clone the Git Repositories:
  2. Set Up MedPython: Follow the instructions in Setup MedPython. The ETL Library and AlgoMarker API Server are pure python code, so you can just configure environment variable of PYTHONPATH to use them from source code.
  3. Configure Environment Variables: Ensure Python recognizes the libraries by setting the PYTHONPATH environment variable. Replace ${MR_TOOLS} with the path to the cloned MR_Tools repository.
export PYTHONPATH=${MR_TOOLS}/RepoLoadUtils/common