Metadata-Version: 2.3
Name: r2x-sienna
Version: 0.5.1
Summary: Sienna model plugin
Keywords: Sienna
Author: mcllerena, pesap
Author-email: mcllerena <mcllerena@users.noreply.github.com>, pesap <pesap@users.noreply.github.com>
License: BSD 3-Clause License
         
         Copyright (c) 2025, PCM
         
         Redistribution and use in source and binary forms, with or without
         modification, are permitted provided that the following conditions are met:
         
         1. Redistributions of source code must retain the above copyright notice, this
            list of conditions and the following disclaimer.
         
         2. Redistributions in binary form must reproduce the above copyright notice,
            this list of conditions and the following disclaimer in the documentation
            and/or other materials provided with the distribution.
         
         3. Neither the name of the copyright holder nor the names of its
            contributors may be used to endorse or promote products derived from
            this software without specific prior written permission.
         
         THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
         AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
         IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
         DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
         FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
         DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
         SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
         CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
         OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
         OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Topic :: Software Development :: Build Tools
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
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: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Topic :: File Formats :: JSON
Classifier: Topic :: Scientific/Engineering
Classifier: Topic :: Scientific/Engineering :: Information Analysis
Classifier: Topic :: Scientific/Engineering :: Interface Engine/Protocol Translator
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: r2x-core>=1.0.0,<2.0.0
Maintainer: mcllerena, pesap
Maintainer-email: mcllerena <mcllerena@users.noreply.github.com>, pesap <pesap@users.noreply.github.com>
Requires-Python: >=3.11, <3.14
Description-Content-Type: text/markdown

<img src="./docs/src/assets/r2x-logo-full-square.svg" alt="R2X framework logo" align="left" width="220px" height="220px" hspace="10"/>
<img align="left" alt="" width="0" height="220px" hspace="10"/>

#### r2x-sienna
<p><small>Sienna models, parser, and exporter for the R2X ecosystem.</small></p>

[![PyPI](https://img.shields.io/pypi/v/r2x-sienna.svg)](https://pypi.org/project/r2x-sienna/) [![Docs](https://img.shields.io/badge/docs-guides-0079c2)](https://natlabrockies.github.io/r2x-sienna/)

<br clear="left">

`r2x-sienna` reads Sienna/PowerSystems JSON into typed R2X systems and exports systems back to Sienna.
Use [r2x-cli](https://github.com/NatLabRockies/r2x-cli) for repeatable pipelines and [R2X translation plugins](https://natlabrockies.github.io/R2X/) for cross-format mappings.

## Quick Start

Use Python 3.11, 3.12, or 3.13. In your active Python environment:

```bash
python -m pip install r2x-sienna
python -c "import r2x_sienna; print(r2x_sienna.__version__)"
```

The command prints the installed package version. For the separately installed CLI, install into its managed environment:

```bash
r2x python install
r2x install r2x-sienna
r2x list r2x-sienna
```

Confirm `sienna-parser` and `sienna-exporter` are discovered, then follow the [round-trip tutorial](https://natlabrockies.github.io/r2x-sienna/tutorials/round-trip/).

## Documentation

- [Getting started](https://natlabrockies.github.io/r2x-sienna/getting-started/installation/): installation, environment setup, and first-use checks.
- [Tutorials](https://natlabrockies.github.io/r2x-sienna/tutorials/round-trip/): parse and export a public test model.
- [How-to guides](https://natlabrockies.github.io/r2x-sienna/how-to/python/): Python contexts and CLI pipelines.
- [Reference / API](https://natlabrockies.github.io/r2x-sienna/reference/): exports, configuration, and source links.
- [Explanation](https://natlabrockies.github.io/r2x-sienna/explanation/): data flow and compatibility.
- [Troubleshooting](https://natlabrockies.github.io/r2x-sienna/troubleshooting/): discovery, inputs, and export failures.
- [Changelog](CHANGELOG.md): canonical release history.
- [Contributors](https://natlabrockies.github.io/r2x-sienna/contributors/): development and docs checks.

## Development

```bash
uv sync --all-groups
uv run prek run --all-files --hook-stage pre-push
```

See [docs/README.md](docs/README.md) for the documentation build.

## License

BSD-3-Clause. See [LICENSE.txt](LICENSE.txt).
