Plexos Models, Parser and Exporter
Project description
r2x-plexos
R2X plug-in for translating to and from PLEXOS XML databases.
R2X PLEXOS plugin for parsing and exporting PLEXOS power system models.
Quick Start
Installation
uv add r2x-plexos
Parsing PLEXOS XML
from pathlib import Path
from r2x_core import (
DataFile,
DataStore,
PluginContext,
Rule,
System,
apply_rules_to_context,
)
from r2x_plexos import PLEXOSParser, PLEXOSConfig
xml_path = /path/to/xml
db = PlexosDB.from_xml(xml_path)
model_names = db.list_objects_by_class(ClassEnum.Model)
model_name = model_names[1] if model_names else "Base"
plexos_config = PLEXOSConfig(
model_name=model_name,
horizon_year=2012,
models=("r2x_plexos.models", "r2x_sienna.models"),)
data_file = DataFile(name="xml_file", fpath=xml_path)
store = DataStore(path=folder_path)
store.add_data([data_file])
context = PluginContext(
config=plexos_config,
store=store
)
parser = PLEXOSParser.from_context(context)
plexos_sys_result = parser.run()
plexos_sys = plexos_sys_result.system
context.source_system = plexos_sys
Documentation Sections
- Tutorials - Step-by-step learning guides
- How-To Guides - Task-focused recipes
- Explanations - Architecture and design
- References - API and configuration reference
Roadmap
If you're curious about what we're working on, check out the roadmap:
- Active issues: Issues that we are actively working on.
- Prioritized backlog: Issues we'll be working on next.
- Nice-to-have: Nice to have features or Issues to fix. Anyone can start working on (please let us know before you do).
- Ideas: Future work or ideas for R2X Core.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file r2x_plexos-0.1.5.tar.gz.
File metadata
- Download URL: r2x_plexos-0.1.5.tar.gz
- Upload date:
- Size: 815.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
86acac56bd97fecfa72c06b6fa3d175aa59f452aacbbbb3a3bfa837de48c78dd
|
|
| MD5 |
d80d382795772f7ccacf80419250c3b1
|
|
| BLAKE2b-256 |
7d85ee6e1ddd2c93f4e442cbeee1e0bd974eed5711d542eea6b7ca27125aeec3
|
Provenance
The following attestation bundles were made for r2x_plexos-0.1.5.tar.gz:
Publisher:
release.yaml on NatLabRockies/r2x-plexos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
r2x_plexos-0.1.5.tar.gz -
Subject digest:
86acac56bd97fecfa72c06b6fa3d175aa59f452aacbbbb3a3bfa837de48c78dd - Sigstore transparency entry: 1245799126
- Sigstore integration time:
-
Permalink:
NatLabRockies/r2x-plexos@1fac01659b38c419fbb1711114b057aad96c4f1e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1fac01659b38c419fbb1711114b057aad96c4f1e -
Trigger Event:
push
-
Statement type:
File details
Details for the file r2x_plexos-0.1.5-py3-none-any.whl.
File metadata
- Download URL: r2x_plexos-0.1.5-py3-none-any.whl
- Upload date:
- Size: 831.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
890eb8ee13e1b79fb276c7696ad78a495acfd7d0965aa10bc60c5ddd196476e0
|
|
| MD5 |
298f995c1ebbc861433edfe4c98dde80
|
|
| BLAKE2b-256 |
5cc993786e8c786601dbdc7ff9a69e7ab0f2db19bdb9205443da68616478407d
|
Provenance
The following attestation bundles were made for r2x_plexos-0.1.5-py3-none-any.whl:
Publisher:
release.yaml on NatLabRockies/r2x-plexos
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
r2x_plexos-0.1.5-py3-none-any.whl -
Subject digest:
890eb8ee13e1b79fb276c7696ad78a495acfd7d0965aa10bc60c5ddd196476e0 - Sigstore transparency entry: 1245799131
- Sigstore integration time:
-
Permalink:
NatLabRockies/r2x-plexos@1fac01659b38c419fbb1711114b057aad96c4f1e -
Branch / Tag:
refs/heads/main - Owner: https://github.com/NatLabRockies
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@1fac01659b38c419fbb1711114b057aad96c4f1e -
Trigger Event:
push
-
Statement type: