Repository navigation
Installation
HarmonizePy is a pure-Python package: NumPy and pandas are its only required dependencies, and it needs no R installation. It runs on Python 3.12 or later, and is tested on Linux with Python 3.12, 3.13 and 3.14, and on macOS and Windows with Python 3.12.
HarmonizePy is not on PyPI yet. Install it from the repository:
pip install git+https://github.com/LangeLab/HarmonizePy.gitTo add optional extras, name them on the same install:
pip install "harmonizepy[io,config] @ git+https://github.com/LangeLab/HarmonizePy.git"| Extra | Adds | Needed for |
|---|---|---|
io |
pyarrow >= 14.0 |
Parquet input and output |
config |
pyyaml >= 6.0 |
YAML config files |
completion |
argcomplete >= 3.0 |
shell tab completion |
all |
all three |
- TOML and JSON config files need no extra; Python reads them itself.
- Without
io, a.parquetor.pqpath raises anImportErrorthat names the extra.
The repository uses uv, with a lock file:
git clone https://github.com/LangeLab/HarmonizePy.git
cd HarmonizePy
uv sync --dev
uv run pytest--dev adds the test, type-checking and lint tools, among them pytest, mypy and ruff. The tests compare against committed R outputs, so they need no R installation.
harmonizepy --versionprints harmonizepy and the installed version. From Python, harmonizepy.__version__ holds the same.
Quick start runs one small matrix from start to finish.
HarmonizePy
Getting started
The data
The pipeline
The engines
Results
Reference