Skip to main content
R2X framework logo

r2x-core

Shared Python tools for power system translators.

CI PyPI Last commit Docs
Python 3.11 to 3.14 Managed with uv BSD 3 clause


r2x-core provides typed plugin configuration, lifecycle hooks, file readers, rule mappings, and unit handling for systems. Model packages implement parsers and exporters. r2x-cli installs and runs them in its own managed Python environment. r2x-core is a library and does not install the r2x executable.

Quick Start

Install

Use Python 3.11 through 3.14. In an activated virtual environment:

python -m pip install r2x-core

Polars is a runtime dependency for the table reader and processor included with r2x-core. It loads only when needed, so importing configuration does not load it. Applications can provide their own FileReader and TabularProcessor. See Installation for environment and upgrade instructions.

Verify the installation and create a system:

python -c "from r2x_core import System; print(System(name='example').name)"

Expect example. Continue with the CSV capacity tutorial to build, transform, export, and independently reload a system.

Documentation

Use the guide that matches your task:

See the documentation site for the complete guide map.

Development

Install uv, a supported Python version, Node.js 22.22 or newer for the docs, and mise. From a source checkout:

mise run setup
mise run hooks
mise run test

Build the searchable documentation site:

npm ci --prefix docs
mise run docs

See Contributing for setup and checks, and the r2x-core agent skill for additional development workflows.

License

BSD license with three clauses. See LICENSE.txt for the full license text.

Metadata

Release files for r2x-core 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for r2x-core 1.0.0
File Size Uploaded Provenance Actions
r2x_core-1.0.0.tar.gz 130.4 kB With provenance Details for r2x_core-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for r2x-core 1.0.0
File Interpreter ABI Platform Actions
r2x_core-1.0.0-py3-none-any.whl Python 3 none any Details for r2x_core-1.0.0-py3-none-any.whl

Total release size: 280.9 kB

Release files / r2x_core-1.0.0.tar.gz

Download URL r2x_core-1.0.0.tar.gz
Size 130.4 kB
Tags Source
SHA-256 checksum
How to use checksums
7fc70128889f6ba6491a0e35db7e00de992e7d1ab4d08a8c9a775f60b7f218f9
BLAKE2b-256 checksum
How to use checksums
994bd4742e2d01d7a05b312c4c8547dbc40b07c96ff5573f9a20f629357fbc39
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Release files / r2x_core-1.0.0-py3-none-any.whl

Download URL r2x_core-1.0.0-py3-none-any.whl
Size 150.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04ad6ae6bc9c398648027c98ac0f3cdaf97333b2813b6d7fa3db2f77097419c6
BLAKE2b-256 checksum
How to use checksums
d0181665bb1a0d0712d93bd30380b22cced7728eea792964f79e944e9c043e35
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

Security for r2x-core 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for r2x_core-1.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page