Metadata-Version: 2.3
Name: r2x
Version: 2.3.0
Summary: Translation Plugins for mainstream models.
Keywords: power-systems,energy-modeling,model-translation,reeds,plexos,sienna,plugin-architecture
Author: pesap, kodiobika, Vivienne Liu, Micah Webb, Kinshuk Panda, mcllerena, jarry7
Author-email: pesap <pesap@users.noreply.github.com>, kodiobika <kodiobika@users.noreply.github.com>, Vivienne Liu <vivienne.liu@nrel.gov>, Micah Webb <micahpw@user.noreply.github.com>, Kinshuk Panda <7632244+k1nshuk@users.noreply.github.com>, mcllerena <mcllerena@users.noreply.github.com>, jarry7 <27745389+jarry7@users.noreply.github.com>
License: BSD 3-Clause License
         
         Copyright (c) 2024, Alliance for Sustainable Energy LLC, All rights reserved.
         
         Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
         
         * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
         
         * 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.
         
         * 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 :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
Classifier: Natural Language :: English
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
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 :: Build Tools
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Typing :: Typed
Requires-Dist: r2x-sienna-to-plexos
Requires-Dist: r2x-plexos-to-sienna
Requires-Dist: r2x-reeds-to-plexos
Requires-Dist: r2x-reeds-to-sienna
Requires-Dist: r2x-core>=1.0.0,<2.0.0
Maintainer: pesap, Kinshuk Panda, mcllerena, jarry7, kodiobika
Maintainer-email: pesap <pesap@users.noreply.github.com>, Kinshuk Panda <7632244+k1nshuk@users.noreply.github.com>, mcllerena <mcllerena@users.noreply.github.com>, jarry7 <27745389+jarry7@users.noreply.github.com>, kodiobika <kodiobika@users.noreply.github.com>
Requires-Python: >=3.11, <3.14
Project-URL: Homepage, https://github.com/NatlabRockies/r2x
Project-URL: Documentation, https://natlabrockies.github.io/R2X/
Project-URL: Repository, https://github.com/NatlabRockies/r2x
Project-URL: Issues, https://github.com/NatlabRockies/r2x/issues
Project-URL: Changelog, https://natlabrockies.github.io/R2X/reference/changelog/
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
<p><small>Translation plugins for ReEDS, PLEXOS, and Sienna.</small></p>

[![CI](https://github.com/NatLabRockies/R2X/actions/workflows/ci.yaml/badge.svg)](https://github.com/NatLabRockies/R2X/actions/workflows/ci.yaml) [![PyPI](https://img.shields.io/pypi/v/r2x.svg)](https://pypi.org/project/r2x/) [![Python](https://img.shields.io/pypi/pyversions/r2x.svg)](https://pypi.org/project/r2x/) [![Docs](https://img.shields.io/badge/docs-guides-0079c2?style=flat-square)](https://natlabrockies.github.io/R2X/) [![License](https://img.shields.io/pypi/l/r2x.svg)](./LICENSE.txt)

<br clear="left">

R2X maps parsed power-system components and time series into a target model.
The [`r2x-cli`](https://github.com/NatLabRockies/r2x-cli) manages plugins and runs
pipelines. [`r2x-core`](https://github.com/NatLabRockies/r2x-core) supplies the
shared system, configuration, and rule APIs.

## Quick Start

For Python integration, create and activate a supported Python environment, then
install the translation package for your workflow:

```bash
python -m pip install r2x-reeds-to-plexos
python -m pip check
```

For CLI pipelines, install [r2x-cli](https://github.com/NatLabRockies/r2x-cli#install)
and run `r2x install r2x-reeds-to-plexos` in its managed environment. See
[Getting started](https://natlabrockies.github.io/R2X/getting-started/installation/)
for runtime requirements, discovery checks, and your first workflow.

## Documentation

Use the guide that matches your task:

- [Installation](https://natlabrockies.github.io/R2X/getting-started/installation/): prerequisites, published packages, and verification.
- [First CLI pipeline](https://natlabrockies.github.io/R2X/tutorials/getting-started/): run and inspect your first pipeline.
- [Translation workflows](https://natlabrockies.github.io/R2X/how-to/): parse, translate, and export a model.
- [Property reference](https://natlabrockies.github.io/R2X/reference/reeds-to-plexos-properties/): inspect mappings and their source rules.
- [Architecture](https://natlabrockies.github.io/R2X/explanation/architecture/): understand package boundaries.
- [Development](https://natlabrockies.github.io/R2X/how-to/development/): run checks and maintain translations.

The site includes searchable current documentation and release archives.

## Translation Plugins

| Package | Direction |
| --- | --- |
| [`r2x-reeds-to-plexos`](packages/r2x-reeds-to-plexos) | ReEDS → PLEXOS |
| [`r2x-reeds-to-sienna`](packages/r2x-reeds-to-sienna) | ReEDS → Sienna |
| [`r2x-plexos-to-sienna`](packages/r2x-plexos-to-sienna) | PLEXOS → Sienna |
| [`r2x-sienna-to-plexos`](packages/r2x-sienna-to-plexos) | Sienna → PLEXOS |

## Development

From the repository root, install the development environment and run its checks:

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

See [Development](docs/src/content/docs/how-to/development.mdx) for focused checks
and [the documentation README](docs/README.md) for the site build.

## License

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