Skip to main content

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

  1. Finish merging PRs into develop
  2. Confirm all tests pass
  3. Update the version (assume version is 0.1.2): poetry version 0.1.2
  4. Create PR to merge version update
  5. Rebase develop onto main, make sure tests pass
  6. Create a tag: git tag 0.1.2
  7. Build: poetry build
  8. Publish poetry publish (this will push to pypi)
  9. Create a new release on the Github repository using the tag and link to PyPI

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

alfalfa_client-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

alfalfa_client-1.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

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

Hashes for alfalfa_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 48d2c5d42418e9be7f55cf95afc129b6dc6cdaadd7159747ff8a76601496cd9f
MD5 3cdff3e9abf76ec37a42c52195d172a5
BLAKE2b-256 d50a652687bbcd4e18f6f92e7d1d2ad08b14a5dcf313f3c12f715f0e239c5e97

See more details on using hashes here.

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

Hashes for alfalfa_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6a78a9009a751a96f1b71be4f32128655e98f8d259a772d42d534555b86e78e2
MD5 0fcbb571e5e60dde1ecbb02d4b232836
BLAKE2b-256 eac6fecf76d3fd0e7ddde3c1a0cc43bcf2f50e1b1e4e2b933e40b07bd9e1aa19

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page