This file keeps a log of version releases. This file is maintained following best practices about changelogs.
- Each significant change should be described in the "Unreleased" section
- Entry versions should follow the following:
- Syntax:
- [X.Y.Z] - YYYY-MM-DD (Short description)
- Convention:
- For X.Y.Z, increment the digit following this scheme:
- X = breaking change (previous version is now deprecated),
- Y = additive change (previous version is still valid),
- Z = just a simple patch (for a typo or error).
- For X.Y.Z, increment the digit following this scheme:
- Syntax:
- When the new version is released, a new [Unreleased] section is created in the "Release Change History" below, as a placeholder for the next version.
- .
- .
- .
- .
- 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
- .
- 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)
- .
- .