A standalone client for the NREL Alfalfa application
Project description
Alfalfa Client
The purpose of this repository is to provide a standalone client for use with the Alfalfa application. It additionally includes a Historian to quickly/easily enable saving of results from Alfalfa simulations.
Usage
This repo is packaged and hosted on PyPI here.
pip install alfalfa-client
from alfalfa_client.alfalfa_client import AlfalfaClient
client = AlfalfaClient("http://localhost")
Additional documentation for the functions of alfalfa-client can be found here.
Development
Prerequisites:
- poetry for managing environment
Cloning and Installing:
git clone https://github.com/NREL/alfalfa-client.git
cd alfalfa-client
poetry install
Running Tests:
All alfalfa-client tests currently require a running instance of Alfalfa with at least 2 workers.
poetry run pytest -m integration
Releasing
- Finish merging PRs into develop
- Confirm all tests pass
- Update the version (assume version is 0.1.2):
poetry version 0.1.2 - Create PR to merge version update
- Rebase develop onto main, make sure tests pass
- Create a tag:
git tag 0.1.2 - Build:
poetry build - Publish
poetry publish(this will push to pypi) - Create a new release on the Github repository using the tag and link to PyPI
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 alfalfa_client-1.0.0.tar.gz.
File metadata
- Download URL: alfalfa_client-1.0.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
48d2c5d42418e9be7f55cf95afc129b6dc6cdaadd7159747ff8a76601496cd9f
|
|
| MD5 |
3cdff3e9abf76ec37a42c52195d172a5
|
|
| BLAKE2b-256 |
d50a652687bbcd4e18f6f92e7d1d2ad08b14a5dcf313f3c12f715f0e239c5e97
|
File details
Details for the file alfalfa_client-1.0.0-py3-none-any.whl.
File metadata
- Download URL: alfalfa_client-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.13.2 Darwin/24.6.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a78a9009a751a96f1b71be4f32128655e98f8d259a772d42d534555b86e78e2
|
|
| MD5 |
0fcbb571e5e60dde1ecbb02d4b232836
|
|
| BLAKE2b-256 |
eac6fecf76d3fd0e7ddde3c1a0cc43bcf2f50e1b1e4e2b933e40b07bd9e1aa19
|