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.
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file snowdrift-0.1.2.tar.gz.
File metadata
- Download URL: snowdrift-0.1.2.tar.gz
- Upload date:
- Size: 63.2 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b5f7ab50ddb2fea94b1f599c144b122384fb943014720edd6ffb64c0e95bd77
|
|
| MD5 |
2ee2ac906fc2566fe5e191f1e8c880c4
|
|
| BLAKE2b-256 |
e075cdbaf9e51abf42484531dd435caa12adfd8e1a8d097b4bda6585c54c9f3b
|
File details
Details for the file snowdrift-0.1.2-py3-none-any.whl.
File metadata
- Download URL: snowdrift-0.1.2-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f24945540579035f5ce5782a12436fec8fe15ebfaef7e16b1a3d9cf7bd76143
|
|
| MD5 |
ddeeda30c5f474ccf6c36a943a260999
|
|
| BLAKE2b-256 |
5ab4ae86389403ca626be41baaa19522d3e004ee3bf202e45ec29efeaedfdc6a
|