Stor4Build TES benefits and decision tool
Project description
Stor4Build Modeling Tool
Table of Contents
Installation
pip install stor4build
Command Line Usage
The stor4build command includes three subcommands at this time:
run-icetank- Runs the chiller-based ice tank Python plugin case with a specified capacity. Using--chwwill use the chilled water version.size-icetank- Runs the chiller-based ice tank Python plugin case with a size based on the baseline model and discharge window parameters. Using--chwwill use the chilled water version.run-dxcoil- Runs the native E+ DX coil TES system with autosizing.
Further information is available with the --help option.
VS Code/Hatch Dev Environment
To set up a Visual Studio Code development environment, first install Python. Then install Visual Studio code and the Python extension(s) from Microsoft. Next, install hatch with
pip install hatch
Clone the repository to the location of your choice and open the directory with Visual Studio Code. In the root folder of the repo, execute the following to generate an environment that has everything that is needed:
hatch env create
To point Visual Studio Code at the created environment, find the environment with
hatch run python -c "import sys;print(sys.executable)"
and copy the result. In Visual Studio Code, hit ctrl-shift-P to bring up the command palette, select "Python: Select Interpreter", and paste in the result from above. Any warnings (yellow squiqqly underlines) in the source files should go away. To make sure that everything has worked, run
hatch shell
to enter the environment that was created, and then execute
stor4build --help
You should see the help output from the tool.
Web API
A simple flask-based web api is included. To run it, a PostgreSQL database storing the baseline models and weather is required. That setup is not described here yet. The following four environment variables need to be set:
FLASK_TIMESCALE_HOST
FLASK_TIMESCALE_DB
FLASK_TIMESCALE_USERNAME
FLASK_TIMESCALE_PASSWORD
Standard password rules apply. To launch the back end (that does the calculation) run
flask --app stor4build.api run
This will start up the flask development server and output will appear on the console. The API accepts JSON inputs in the form described in the schema directory in the file stor4build.json. Example inputs and scripts to send them to the API are in the resources and scripts directories.
License
stor4build is distributed under the terms of the BSD-3-Clause license.
Project details
Release history Release notifications | RSS feed
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stor4build-0.3.0.tar.gz.
File metadata
- Download URL: stor4build-0.3.0.tar.gz
- Upload date:
- Size: 3.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae7ed55c4439442e2055c2273bb7d984227015c1cb0648145dfd0b4e35d9ad34
|
|
| MD5 |
43ce4585905cd660d9ce41c6a064c180
|
|
| BLAKE2b-256 |
9d86a4f06cebb93d3154711e898d084a2f8c4bd16f46252cb7b6df78af44939d
|
Provenance
The following attestation bundles were made for stor4build-0.3.0.tar.gz:
Publisher:
python-publish.yml on Stor4Build/stor4build
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stor4build-0.3.0.tar.gz -
Subject digest:
ae7ed55c4439442e2055c2273bb7d984227015c1cb0648145dfd0b4e35d9ad34 - Sigstore transparency entry: 702401310
- Sigstore integration time:
-
Permalink:
Stor4Build/stor4build@fc8a38173c9c8b0f52b76e316b7dc303a8864f6e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Stor4Build
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fc8a38173c9c8b0f52b76e316b7dc303a8864f6e -
Trigger Event:
release
-
Statement type:
File details
Details for the file stor4build-0.3.0-py3-none-any.whl.
File metadata
- Download URL: stor4build-0.3.0-py3-none-any.whl
- Upload date:
- Size: 27.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
40dd1b13b5f69f9a2c1faab3ee49049876c07d5856596ae00b824d55163d435f
|
|
| MD5 |
37e4b30f1ff456ad615cd53f1a5a79a2
|
|
| BLAKE2b-256 |
295874da3ec83b59738c8ca876b09f92138cb8add6aa9515bad31232823d1d3a
|
Provenance
The following attestation bundles were made for stor4build-0.3.0-py3-none-any.whl:
Publisher:
python-publish.yml on Stor4Build/stor4build
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
stor4build-0.3.0-py3-none-any.whl -
Subject digest:
40dd1b13b5f69f9a2c1faab3ee49049876c07d5856596ae00b824d55163d435f - Sigstore transparency entry: 702401311
- Sigstore integration time:
-
Permalink:
Stor4Build/stor4build@fc8a38173c9c8b0f52b76e316b7dc303a8864f6e -
Branch / Tag:
refs/tags/v0.3.0 - Owner: https://github.com/Stor4Build
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@fc8a38173c9c8b0f52b76e316b7dc303a8864f6e -
Trigger Event:
release
-
Statement type: