A set of helper classes, functions and demos, for interacting with the EnergyPlus Python API
Project description
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 eplus_api_helpers/demos
folder.
A super minimal example using the helper class here:
from pathlib import Path
from eplus_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
Code is checked for style using GitHub Actions.
Releases
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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for energyplus_api_helpers-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 082ca6dbf1662c9caf9aaebd10aa8af329e57effd154d0daa6dc102c9220fbce |
|
MD5 | 5a27be0306418bc4835a15e48826c968 |
|
BLAKE2b-256 | 0709a8a48146e2401051d17b4003163c086dab475ef37ebaa56cd4b521aa6953 |
Hashes for energyplus_api_helpers-0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f648ab36461e2946348e088bcecc102b1a99ef75f57b9cf47922f0509a003cc4 |
|
MD5 | 35f6b9699cde9a95b301984dc72404c4 |
|
BLAKE2b-256 | 2915ee00ea6990d75e54b51acb57d3f3177a8464babd4cd7e7826a662155eb3f |