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
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
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| energyplus_api_helpers-0.4.tar.gz | 9.5 kB | Without provenance | Details for energyplus_api_helpers-0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| energyplus_api_helpers-0.4-py3-none-any.whl | Python 3 | none | any | Details for energyplus_api_helpers-0.4-py3-none-any.whl |
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
|
Security for energyplus-api-helpers 0.4
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.