Metadata-Version: 2.4
Name: snowdrift
Version: 0.1.2
Summary: Python package for generating optimized settings handlers (especially for HPC use) in C++ and other languages
Project-URL: Homepage, https://github.com/xann16/snowdrift
Project-URL: Documentation, https://xann16.github.io/snowdrift
Project-URL: Repository, https://github.com/xann16/snowdrift
Project-URL: Issues, https://github.com/xann16/snowdrift/issues
Project-URL: Changelog, https://github.com/xann16/snowdrift/releases
Author-email: Maciej Manna <maciejmanna@gmail.com>
License-Expression: MIT
License-File: LICENSE
Keywords: Code Generation,HPC,High-Performance Computing,Parameters,Settings
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.10
Description-Content-Type: text/markdown

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

[![Coverage Status](https://codecov.io/gh/xann16/snowdrift/branch/main/graph/badge.svg)](https://app.codecov.io/gh/xann16/snowdrift)

# 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](https://xann16.github.io/snowdrift/).

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

- [Documentation (Testing + Simple Full API Docstring-based Dump)](https://xann16.github.io/snowdrift/)

# Quick Dev Basics (WIP)

(TODO: Update)

Initial dev setup:

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

Running tests:

```shell
uv run pytest
```

or with code coverage report (exported to HTML):

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

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

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

Running snowdrift CLI:

```shell
uv run snowdrift
```

### Testing `sybil`

```python
x = 2
assert x == 2
```
