r2x-core
Shared Python tools for power system translators.
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:
- Getting started: install the library and prepare your environment.
- Tutorials: learn through runnable examples.
- How to guides: configure files, plugins, units, and rules.
- API reference: public contracts, signatures, and implementation links.
- Explanation: architecture and data flow.
- Troubleshooting: diagnose input, lifecycle, unit, and serialization failures.
- Changelog: release history.
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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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 logRelease 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 logSecurity 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.
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 logA 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.