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
import alfalfa_client.alfalfa_client as ac
import alfalfa_client.historian as ah
client = ac.AlfalfaClient
historian = ah.Historian
Setup and Testing
This repository is setup to use:
- pyenv for managing python versions
- poetry for managing environment
- pre-commit for managing code styling
- tox for running tests in isolated build environments. See the expected python versions in tox.ini
Assuming poetry is installed and the necessary python versions are installed, the following should exit cleanly:
git clone https://github.com/NREL/alfalfa-client.git
cd alfalfa-client
poetry run tox
This may take some time resolving on the initial run, but subsequent runs should be faster.
See this gist for additional info.
History
- The implemented client is previously referred to as Boptest, from the alfalfa/client/boptest.py implementation. It has been ported as a standalone package for easier usage across projects.
Releasing
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
alfalfa-client-0.1.1.tar.gz
(8.8 kB
view hashes)
Built Distribution
Close
Hashes for alfalfa_client-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b429780809366fb01037c1a4ba7d41353df300f88493207476b94cf169446b0 |
|
MD5 | 2b5943b2634e59f15e2a54b20dd32ffb |
|
BLAKE2b-256 | c19440de6415559185c29cdf13b909f8bce542d6f397036d84e0c74500eb08f5 |