Skip to main content

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

Metadata

Release files for alfalfa-client 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for alfalfa-client 1.0.0
File Size Uploaded Provenance Actions
alfalfa_client-1.0.0.tar.gz 7.0 kB Without provenance Details for alfalfa_client-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for alfalfa-client 1.0.0
File Interpreter ABI Platform Actions
alfalfa_client-1.0.0-py3-none-any.whl Python 3 none any Details for alfalfa_client-1.0.0-py3-none-any.whl

Total release size: 17.4 kB

Release files / alfalfa_client-1.0.0.tar.gz

Download URL alfalfa_client-1.0.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48d2c5d42418e9be7f55cf95afc129b6dc6cdaadd7159747ff8a76601496cd9f
BLAKE2b-256 checksum
How to use checksums
d50a652687bbcd4e18f6f92e7d1d2ad08b14a5dcf313f3c12f715f0e239c5e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Darwin/24.6.0

Release files / alfalfa_client-1.0.0-py3-none-any.whl

Download URL alfalfa_client-1.0.0-py3-none-any.whl
Size 10.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6a78a9009a751a96f1b71be4f32128655e98f8d259a772d42d534555b86e78e2
BLAKE2b-256 checksum
How to use checksums
eac6fecf76d3fd0e7ddde3c1a0cc43bcf2f50e1b1e4e2b933e40b07bd9e1aa19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.13.2 Darwin/24.6.0

Security for alfalfa-client 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page