Installation¶
Requirements¶
-
Python 3.9 or higher
-
pip or uv (package installer)
Installation for Users¶
Using pip:
Using uv:
Optionally, if you want to build the documentation locally:
Verifying Installation¶
After installation, verify that CLIFpy is properly installed:
You should see the version number (e.g., 0.0.8).
Installation for Contributors¶
If you want to contribute to CLIFpy or test the latest development version:
# Clone the repository
git clone https://github.com/Common-Longitudinal-ICU-data-Format/CLIFpy.git
cd CLIFpy
# Create virtual environment (if using uv, it handles this automatically)
uv venv # or: python -m venv venv
source .venv/bin/activate # On Windows: .venv\Scripts\activate (or venv\Scripts\activate)
# Install in editable mode with dev dependencies
uv pip install -e .
# or with pip
pip install -e .
# Using uv (reads from pyproject.toml [dependency-groups])
uv pip install -e . --group dev
# Or manually install dev dependencies
pip install marimo mkdocs mkdocs-material mkdocstrings[python] nbformat pytest-doctestplus sybil
Dev dependencies include:
-
sybil: For markdown documentation testing
-
mkdocs + mkdocs-material: For building documentation
-
mkdocstrings: For API reference generation
-
pytest-doctestplus: For enhanced docstring testing
-
marimo: For interactive notebook development
Platform Support¶
CLIFpy is tested on:
-
Linux (Ubuntu 20.04+)
-
macOS (10.15+)
-
Windows (10+)
Troubleshooting¶
Import Errors¶
If you encounter import errors, ensure you're using the correct Python environment:
Permission Errors¶
On some systems, you may need to use pip install --user:
Dependency Conflicts¶
If you encounter dependency conflicts, use a fresh virtual environment: