Skip to main content

ENPAX

PyPI version PyPI - Python Version License

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

  1. Using Git, navigate to a local target directory and clone the repository:

    git clone https://github.com/NatLabRockies/ENPAX.git
    
  2. Navigate to ENPAX:

    cd ENPAX
    
  3. 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
    
  4. 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]"
      

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 .yaml files from the configs/ directory
  • examples_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

  1. Ensure all tests pass.
  2. Ensure this README is up to date.
  3. Ensure dependency and Python versions are current.
  4. Ensure CHANGELOG.md is up to date.
  5. Bump the version in pyproject.toml using semantic versioning (https://semver.org/).
  6. Make a pull request into main from develop or a patch release branch.
    1. Merge main back into develop if develop was not the base branch.
  7. 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
    
    1. This will trigger the Deploy to Test PyPI GitHub Action. If it passes, proceed to step 8. If it fails, continue below.
    2. Delete the tag locally and on remote:
      git tag -d v0.1.1
      git push --delete origin v0.1.1
      
    3. Create a new branch off main, fix the build issue, and return to step 5.
  8. Create a new release at https://github.com/NatLabRockies/ENPAX/releases, ensuring that:
    1. The newly created tag is selected, and
    2. 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

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)

Source distribution for enpax 0.1.3
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)

Table of built distributions (wheels) for enpax 0.1.3
File Interpreter ABI Platform Actions
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 log

Release 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 log

Security 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.

Select from 2 files

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 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.

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