Registry / data / flexvalue

flexvalue

JSON →
library2.0.8pypypiunverified

FLEXvalue is a Python library for calculating avoided costs, commonly used in energy efficiency and demand-side management. Version 2.0.8 is the latest, with maintenance-oriented updates. Release cadence is irregular, driven by method updates.

pip install flexvalue
INSTALL
IMPORT
SIG · FLEXVALUE
F
flexvalue
datapythonv2.0.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Flexvalue
from flexvalue import Flexvalue
from flexvalue import FlexValue
The class name uses a lowercase 'v' (Flexvalue not FlexValue)

Basic usage: import Flexvalue, create an instance with default parameters, and call calculate() with required inputs.

from flexvalue import Flexvalue # Initialize with configuration (adjust parameters as needed) fv = Flexvalue() # Calculate avoided costs for a given scenario result = fv.calculate( fuel_price=0.05, # $/kWh discount_rate=0.03, # 3% lifetime_years=10, annual_savings_kwh=10000 ) print(result)
Debug
Known issues
breakingIn version 2.0.0, the main class was renamed from 'FlexValue' to 'Flexvalue' (lowercase 'v'). Old code using 'FlexValue' will raise an ImportError.
fix
Change import to 'from flexvalue import Flexvalue' and replace all 'FlexValue' references with 'Flexvalue'.
affects: <2.0.0
gotchaThe calculate() method parameters changed in 2.0.0. Old code using positional arguments may silently produce wrong results if order changed. Always use keyword arguments.
fix
Always call calculate() with explicit keyword arguments, e.g., calculate(fuel_price=..., discount_rate=..., ...).
affects: <2.0.0
deprecatedThe function 'avoided_cost' (lowercase, module-level) is deprecated since 1.5.0 and removed in 2.0.0. Use the class-based API instead.
fix
Replace 'from flexvalue import avoided_cost' with 'from flexvalue import Flexvalue' and use the object-oriented approach.
affects: >=1.5.0, <2.0.0
Upgrade
Version history
2.0.8latest on PyPI · released Jan 31, 2024
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
flexvalue — pip install flexvalue · libregistry