Python runtime library for SIMOS based DMT models


License
MIT
Install
pip install dmtpy==0.1.1

Documentation

DMTPY - Python runtime library for DMT based models

Serves as a common base for libraries that are generated by the SINTEF DMT Python code generator

Installation

Prerequisites

This project uses uv for fast and reliable Python package management.

Install uv:

# Windows
powershell -c "irm https://astral.sh/uv/install.ps1 | iex"

# macOS/Linux
curl -LsSf https://astral.sh/uv/install.sh | sh

Development Setup

# Clone the repository
git clone https://github.com/SINTEF/dmtpy.git
cd dmtpy

# Install dependencies (including dev dependencies)
uv sync --dev

# Activate the virtual environment
uv venv

Building

# Build the package
uv build

# Install locally for development
uv pip install -e .

Testing

# Run tests
uv run pytest

# Run tests with coverage
uv run pytest --cov=dmtpy

# Run linting
uv run pylint src/dmt

Publishing

# Build and publish (requires PUBLISH_LIB environment variable)
./publish.sh

Authors

License

This project is licensed under the MIT License - see the LICENSE file for details.