r2x 0.1.0

A framework plugin manager for the r2x power systems modeling ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""Minimal DataStore implementation for integration tests."""

from __future__ import annotations

from pathlib import Path
from typing import Any


class DataStore:
    """Stub that only tracks the provided path."""

    def __init__(self, path: Path | str, **_: Any) -> None:
        self.path = Path(path)

    @classmethod
    def from_plugin_config(cls, _config: Any, path: Path | str) -> "DataStore":
        return cls(path)