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-0.7.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

alfalfa_client-0.7.0-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

Details for the file alfalfa_client-0.7.0.tar.gz.

File metadata

  • Download URL: alfalfa_client-0.7.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for alfalfa_client-0.7.0.tar.gz
Algorithm Hash digest
SHA256 934f1d7fedff626bb692df61fa4bc863e4cbdf40f2b919db028ccace618135a4
MD5 ff4334405fc7ca3898961f490f99b840
BLAKE2b-256 88936c1567235850d63a64afd17629245302b7109503e6f41b567b9791ab9194

See more details on using hashes here.

File details

Details for the file alfalfa_client-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: alfalfa_client-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 10.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.11.6 Darwin/22.6.0

File hashes

Hashes for alfalfa_client-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 47719e75b864c38a8de2c49ffa45abe55df0d4fdcbce2bdea1cde30b3bb81e8f
MD5 2cec41ad00dc4794515c112ddd4e4f85
BLAKE2b-256 17e335b6facccd2a759011610015b56e33b9f811565840d76fb5cdb0848c7a9e

See more details on using hashes here.

Supported by

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