Skip to main content

Python package for generating optimized settings handlers (especially for HPC use) in C++ and other languages

Project description

snowdrift

Python package for generating optimized settings handlers (especially for HPC use) in C++ and other languages.

Coverage Status

IMPORTANT - Project in Initial Development

This project is in initial stages of active development and has not yet achieved even minimal functionality. Please refrain from installing it at this point. If You are interested, however, please read short plan and rationale behind it below, and provide Your feedback, ideas, or feature requests by submitting an issue.

THe idea behind snowdrift is to provide a generator that could convert simple description into a fully functioning configuration that could work in two different contests: setup and execution. This is inspired by the use case of many research, scientific or any other high-throughput (for HPC applications) software that has distinct setup (and cleanup) phase that has minimal impact on the entire run time, as well as execution phase which is highly optimized and runs for the most of the time with preset conditions. Such generated configuration could be freely and easily manipulated during setup, loaded from different common formats (JSON, YAML, TOML, XML, INI) or easily shared with other processes (e.g. via MPI). After necessary setup, such configuration could be converted to a highly performant, cache-friendly, and immutable (for both performance and safety) version usable during execution phase. The initial set of supported languages include compiled-languages common in HPC contexts - C, C++, and Fortran, as well as Python and Julia. Later, extensions to other languages are possible. More specific ideas will be made available here during the initial development stage.

Links

Quick Dev Basics (WIP)

(TODO: Update)

Initial dev setup:

uv sync --frozen
uv run pre-commit install --install-hooks

Running tests:

uv run pytest

or with code coverage report (exported to HTML):

uv run pytest --cov=src/snowdrift --cov-report html

Manually running pre-commit checks (including ruff linting / formatting and mymp type checking):

uv run pre-commit run -a --hook-stage manual

Running snowdrift CLI:

uv run snowdrift

Testing sybil

x = 2
assert x == 2

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

snowdrift-0.1.3.tar.gz (63.5 kB view details)

Uploaded Source

Built Distribution

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

snowdrift-0.1.3-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file snowdrift-0.1.3.tar.gz.

File metadata

  • Download URL: snowdrift-0.1.3.tar.gz
  • Upload date:
  • Size: 63.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for snowdrift-0.1.3.tar.gz
Algorithm Hash digest
SHA256 70a6ddc859ae725633903f1254f6a6e56ac7005e009dd1dc333f75d8e83dea5f
MD5 cae897f42b59af58828ab57c5760f233
BLAKE2b-256 bf3face2b34582ef7549106c8c494c49b2f3224d1a06609195ce3128b6468614

See more details on using hashes here.

File details

Details for the file snowdrift-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: snowdrift-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 8.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.1 {"installer":{"name":"uv","version":"0.10.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for snowdrift-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 17503996e63209ea93a0ee4318558798dfc14d7984ee2711789ed30eec11eda8
MD5 1d4b29209d04be14f313d90a51b33f99
BLAKE2b-256 f5c7a47575fbf38dd5733f80477fdcf5c209d168b33ea214c37788bb2e9a692a

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