Skip to main content

EnergyPlus API Helper Scripts

This project is a small library of helper functionality and, more importantly, demo scripts, for interacting with the EnergyPlus API. The EnergyPlus Python API is not on PyPi (as of now), it simply comes with the EnergyPlus installation. This library makes that process a bit easier, and also offers a set of demos in the energyplus_api_helpers/demos folder.

A super minimal example using the helper class here:

from pathlib import Path
from energyplus_api_helpers.import_helper import EPlusAPIHelper

helper = EPlusAPIHelper(Path('/path/to/EnergyPlus-22-2-0'))
api = helper.get_api_instance()
state = api.state_manager.new_state()
return_value = api.runtime.run_energyplus(state, ['-D', helper.path_to_test_file('5ZoneAirCooled.idf')])

In this example, the helper class is constructed simply by pointing it to a valid EnergyPlus install path (or build/Products directory for developers). The helper class is then used to get an EnergyPlus API instance, which is in turn used to create a new EnergyPlus "state". Finally, EnergyPlus is executed with some basic command line arguments passed into the run_energyplus function of the main EnergyPlus API.

Code Quality

Flake8

Code is checked for style using GitHub Actions.

Releases

PyPIRelease

When a release is tagged, a GitHub Action workflow will create a Python wheel and upload it to the PyPi server.

To install into an existing Python environment, execute pip install energyplus_api_helpers

Metadata

Release files for energyplus-api-helpers 0.4

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

Source distribution (sdist)

Source distribution for energyplus-api-helpers 0.4
File Size Uploaded
energyplus_api_helpers-0.4.tar.gz 9.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for energyplus-api-helpers 0.4
File Interpreter ABI Platform
energyplus_api_helpers-0.4-py3-none-any.whl Python 3 none any Details

Total release size: 27.6 kB

Release files / energyplus_api_helpers-0.4.tar.gz

Download URL energyplus_api_helpers-0.4.tar.gz
Size 9.5 kB
Tags Source
SHA-256 checksum
How to use checksums
f5ee3c47b12d268f3fe55827abab691eadf1e4ec0000d3dd1ae2a1a0ea16f1aa
BLAKE2b-256 checksum
How to use checksums
3f74cf1ecad471601a01c0dc996f7edd174fcf4340fe6da3066c3435ab669d3a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release files / energyplus_api_helpers-0.4-py3-none-any.whl

Download URL energyplus_api_helpers-0.4-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
60c24c2e68ca0e513ca01770cc8671279458c6dda46cd18b919b16466b943642
BLAKE2b-256 checksum
How to use checksums
2546ca6f8a377d0f80c66c3354489d59b1ee0360d1d887d50de0d2b6362c9f53
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.9.16

Release history Release notifications | RSS feed

This release

0.4 This release

2 release files

0.3

2 release files

0.2

2 release files

0.1

2 release files

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