Releases: romenrg/body-mass-index
Releases · romenrg/body-mass-index
v1.0.1 - 2021-01-15
Flake8 linter & better i18n messages
Added
- .
Changed
- Applied most Flake8 Linter suggestions (minor changes, such as breaking lines or adding spaces around operators)
- Now i18n messages for obesity use "," instead of "|" to clarify the type in each case
Removed
- .
v1.0.0 - 2021-01-02
First release, including module and CLI
Added
- Module provides:
- Two static methods:
calculate_bmi: Calculates BMI, provided weight and heightcalculate_weight: Calculates weight, provided height and BMI
- Several class methods:
calculate_bmi_with_info: Calculate BMI with range info, providing weight, height and languagerange_info: Return range info, providing BMI and languageranges_with_info: Return info of all rangescalculate_weight_ranges: Return weight ranges, providing heightcalculate_weight_ranges_with_info: Return weight ranges info, providing height and languagecalculate_healthy_weight: Return healthy weight range, providing height
- Module provides class attributes:
boundaries: List with the boundaries for BMI ranges, as defined by the WHOranges_i18n: Text defining each BMI range, as per the WHO, in English and Spanish
- Two static methods:
- CLI provides several commands:
calculate_bmi: Calculate BMI, provided weight (kg) and height (m) [info]get_bmi_range_info: Return range info, provided BMI and languageget_bmi_ranges_info: Return info of all BMI rangescalculate_weight: Calculate weight (kg), provided height (m) and BMIcalculate_weight_ranges_info: Calculate weight ranges (kg), based on BMI ranges; provided height (m)calculate_healthy_weight: Calculate healthy weight range (kg), provided height (m)