ENPAX
ENPAX (ENergy Platform — Automated eXpenditures) is an open-source Python library that provides modular, bottom-up capital and operating expenditure (CAPEX/OPEX) models for energy technologies. Cost estimates are derived using system design characteristics, site specific details, power system considerations and infrastructure assumptions.
Software Requirements
- Python 3.10+
Installing ENPAX
PyPI
pip install enpax
Source Installation
-
Using Git, navigate to a local target directory and clone the repository:
git clone https://github.com/NatLabRockies/ENPAX.git
-
Navigate to
ENPAX:cd ENPAX
-
Create a new virtual environment and activate it. Using Conda and naming it
enpax:conda create --name enpax python=3.11 -y conda activate enpax
-
Install ENPAX and its dependencies:
- To use ENPAX only:
pip install .
- To install in editable mode with development dependencies:
pip install -e ".[develop]"
- To install with example/notebook dependencies:
pip install -e ".[examples]"
- To install all optional dependencies at once:
pip install -e ".[all]"
- To use ENPAX only:
Usage
ENPAX models can be configured and run either via YAML config files or Python dictionaries. Example notebooks are provided in the examples/ directory:
examples_using_yaml_config_files.ipynb— configure and run models using.yamlfiles from theconfigs/directoryexamples_using_dictionaries.ipynb— configure and run models programmatically in Python
Quick Start
from enpax.runner import CentralRunner
runner = CentralRunner(config="configs/solar_bess.yaml")
results = runner.run()
print(results)
Available Models
The library is structured around a shared abstract base class (BaseCostModel) that enforces a consistent interface — run_capex(), run_opex(), and run_design() — across all technology models, and a central runner (CentralRunner) that assembles multi-technology systems from YAML configuration files and returns structured output objects (TechResult, SystemResult). The current release includes two fully detailed technology models as well as the ability for a user to define their own technology cost model, both applicable for CAPEX and O&M cost estimations.
| Model | Description |
|---|---|
solar_bess_2024Q1 |
Solar PV + BESS hybrid CAPEX/OPEX model |
bess_2025 |
Standalone battery energy storage CAPEX/OPEX model |
generic_passthrough |
Generic passthrough model for custom CAPEX/OPEX inputs |
Release Notes
- Ensure all tests pass.
- Ensure this README is up to date.
- Ensure dependency and Python versions are current.
- Ensure
CHANGELOG.mdis up to date. - Bump the version in
pyproject.tomlusing semantic versioning (https://semver.org/). - Make a pull request into
mainfromdevelopor a patch release branch.- Merge
mainback intodevelopifdevelopwas not the base branch.
- Merge
- Tag the new release and push it:
git tag -a v0.1.1 -m "message for v0.1.1" git push origin v0.1.1
- This will trigger the Deploy to Test PyPI GitHub Action. If it passes, proceed to step 8. If it fails, continue below.
- Delete the tag locally and on remote:
git tag -d v0.1.1 git push --delete origin v0.1.1
- Create a new branch off
main, fix the build issue, and return to step 5.
- Create a new release at https://github.com/NatLabRockies/ENPAX/releases, ensuring that:
- The newly created tag is selected, and
- Generate release notes is selected. This will trigger the Deploy to PyPI GitHub Action.
Contributing
Contributions are welcome. Please open an issue or submit a pull request against the develop branch.
Authors
- Daniel Mulas Hernando — National Laboratory of the Rockies
- Kaitlin Brunik — National Laboratory of the Rockies
- Elenya Grant — National Laboratory of the Rockies
License
This project is licensed under the BSD 3-Clause License. See LICENSE for details.
NLR Software Record
This project's NLR Software Record is SWR-26-053
Metadata
Release files for enpax 0.1.3
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 |
|---|---|---|---|---|
| enpax-0.1.3.tar.gz | 27.5 kB | With provenance | Details for enpax-0.1.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| enpax-0.1.3-py3-none-any.whl | Python 3 | none | any | Details for enpax-0.1.3-py3-none-any.whl |
Total release size: 55.3 kB
Release files / enpax-0.1.3.tar.gz
| Download URL | enpax-0.1.3.tar.gz |
|---|---|
| Size | 27.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8f860c068f00ab6db6458a1c11b483314306b802e2d4ad34cf5ddc2da8f4cca4
|
|
BLAKE2b-256 checksum How to use checksums |
81e56ce5bdf878fc7c3daf1bb15797afe5578f74dad23655431684c2f68fbeac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 9, 2026.
Transparency logRelease files / enpax-0.1.3-py3-none-any.whl
| Download URL | enpax-0.1.3-py3-none-any.whl |
|---|---|
| Size | 27.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0c02b5f1b100dcbc4193a37d0ef78388b4219abdb542666fce5855edf499b016
|
|
BLAKE2b-256 checksum How to use checksums |
e4960daf23c61a87896be522acb3c576bd31bd56c37c53e3a146b12e14bda209
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
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 Jul 9, 2026.
Transparency logSecurity for enpax 0.1.3
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 enpax-0.1.3.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 Jul 9, 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.