Skip to main content

OpenBES-py

Unittest ASHRAE 140 Suite .github/workflows/package_test.yml PyPI - Downloads PyPI - Version

OpenBES-py is an open-source building energy simulation tool written in Python. It is designed to provide transparent, reproducible, and extensible energy modeling for buildings, supporting research, education, and practical analysis.

Features

  • Modular simulation engine: Each energy category is implemented as a separate module for clarity and extensibility.
  • Comprehensive test suite: All core modules are covered by unit and integration tests.
  • Standardized test cases: Planned integration with ASHRAE Standard 140 test cases (see cases_ashrae_std140_... directory).
  • Modern dependency management: Uses UV for fast, reliable Python environment setup (uv.lock included).

Version 0.1.9 implements the core functionality of OpenBES with parity to Excel version 32.

Version 0.2.0 implements the core functionality of OpenBES with parity to Excel version 34.

Version 0.3.0 has full parity to Excel version 34.

Version 1.0.0 will be the first stable release:

  • Validation performed directly against ASHRAE Standard 140
  • Excel parity abandoned
  • Stable Input/Output formats
  • Documentation and examples
  • License

Installation

You can install OpenBES-py via pip:

pip install openBES[jit]

This will install the package along with optional JIT compilation support for improved performance (via Numba). If you do not need JIT support, you can install without the [jit] extra.

Why doesn't the package default to JIT support?

A major use-case for the package is in a web-based environment, using Pyodide. Pyodide does not currently support Numba, so to keep the package lightweight and compatible with such environments, JIT support is made optional.

At a later date we might custom-compile the project to WASM with Numba support, but for now this is not available.

Usage

Here is a simple example of how to use OpenBES-py to run a building energy simulation:

from openBES import BuildingSimulation, OpenBESSpecification

spec_file = "path/to/specification.toml"
spec = OpenBESSpecification.from_toml(spec_file)
simulation = BuildingSimulation(spec)  # the simulation is run upon initialization
total_annual_energy_used = simulation.energy_use.sum().sum()  # collaspse energy use DataFrame -> annual energy in kWh

Development

  1. Install UV if you do not have it: pip install uv

  2. Set up a virtual environment (recommended): uv venv

  3. Install editable package: uv pip install -e .[dev]

  4. Install dependencies: uv sync

  5. Run tests to verify installation: uv run python -m unittest discover -s tests

License

The license for this project is under consideration.

Credits

We use Pandas for data manipulation and NumPy for numerical calculations.

We use PVLib.iotools for reading EPW (energy plus weather) files.

Jensen, A., Anderson, K., Holmgren, W., Mikofski, M., Hansen, C., Boeman, L., Loonen, R. “pvlib iotools — Open-source Python functions for seamless access to solar irradiance data.” Solar Energy, 266, 112092, (2023). DOI: 10.1016/j.solener.2023.112092.

Metadata

Release files for openBES 0.3.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 openBES 0.3.3
File Size Uploaded Provenance
openbes-0.3.3.tar.gz 1.5 MB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for openBES 0.3.3
File Interpreter ABI Platform
openbes-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 3.0 MB

Release files / openbes-0.3.3.tar.gz

Download URL openbes-0.3.3.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
cc7c950db25afb8b31f0d8f89a1bf8103533013c42a3183dec91d3c258e9b888
BLAKE2b-256 checksum
How to use checksums
2a909172ca96e914fe7e7b16f084970c70ac87c0c79c28485f7480d7c6ef6c7e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / openbes-0.3.3-py3-none-any.whl

Download URL openbes-0.3.3-py3-none-any.whl
Size 1.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
307435cff56e49a76c0ea9d4cd71abbff7d30dcbe28b2339a3cb3a73b1c0c39b
BLAKE2b-256 checksum
How to use checksums
6c3261003c0b3b306d8c70fa1a428ecdc5f68b7987527e9c3d60a6ed07fdd203
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.2.0 CPython/3.11.15

Security for openBES 0.3.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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

0.3.3 This release

2 release files No 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