Skip to main content

Python runtime library for SIMOS based DMT models

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dmtpy-0.3.5.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dmtpy-0.3.5-py3-none-any.whl (14.7 kB view details)

Uploaded Python 3

File details

Details for the file dmtpy-0.3.5.tar.gz.

File metadata

  • Download URL: dmtpy-0.3.5.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dmtpy-0.3.5.tar.gz
Algorithm Hash digest
SHA256 bde6862b3c1b12550bd6e49725d69b9a52f3f8bbc4e25c1e33f1aef33285dd25
MD5 4411734870ddd1da154a0c4187977c79
BLAKE2b-256 f7783472fcf19233335ba59b4238f26e8dddae3ccfe323b1862905df1dc0ed7f

See more details on using hashes here.

File details

Details for the file dmtpy-0.3.5-py3-none-any.whl.

File metadata

  • Download URL: dmtpy-0.3.5-py3-none-any.whl
  • Upload date:
  • Size: 14.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for dmtpy-0.3.5-py3-none-any.whl
Algorithm Hash digest
SHA256 daed45324b5d7b41fd487980f4c83c9b78e2e46681dce60790d90b1f4d0810f4
MD5 1afca4a7badf12c6c52fd0cd5253cff1
BLAKE2b-256 86290b618099395cc75678c486d0e6496f3458e304da97a50c0f74650ebf4d60

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page