Metadata-Version: 2.3
Name: r2x-plexos
Version: 0.4.1
Summary: Plexos Models, Parser and Exporter
Keywords: PLEXOS
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: BSD License
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: 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: plexosdb>=1.8.0
Requires-Dist: polars>=1.44.1,<2.0.0
Requires-Dist: r2x-core>=1.0.0,<2.0.0
Requires-Python: >=3.11, <3.14
Project-URL: Homepage, https://github.com/NatLabRockies/r2x-plexos
Project-URL: Documentation, https://natlabrockies.github.io/r2x-plexos/
Project-URL: Repository, https://github.com/NatLabRockies/r2x-plexos
Project-URL: Issues, https://github.com/NatLabRockies/r2x-plexos/issues
Project-URL: Changelog, https://natlabrockies.github.io/r2x-plexos/CHANGELOG.html
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-plexos
<p><small>PLEXOS models, parser, and exporter for the R2X ecosystem.</small></p>

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

<br clear="left">

`r2x-plexos` reads PLEXOS XML into typed R2X systems and exports systems back to PLEXOS.
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-plexos
python -c "import r2x_plexos; print(r2x_plexos.__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-plexos
r2x list r2x-plexos
```

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

## Documentation

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