Skip to content

Releases: romenrg/body-mass-index

v1.0.1 - 2021-01-15

15 Jan 13:11
Compare
Choose a tag to compare

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

04 Jan 11:59
Compare
Choose a tag to compare

First release, including module and CLI

Added

  • Module provides:
    • Two static methods:
      • calculate_bmi: Calculates BMI, provided weight and height
      • calculate_weight: Calculates weight, provided height and BMI
    • Several class methods:
      • calculate_bmi_with_info: Calculate BMI with range info, providing weight, height and language
      • range_info: Return range info, providing BMI and language
      • ranges_with_info: Return info of all ranges
      • calculate_weight_ranges: Return weight ranges, providing height
      • calculate_weight_ranges_with_info: Return weight ranges info, providing height and language
      • calculate_healthy_weight: Return healthy weight range, providing height
    • Module provides class attributes:
      • boundaries: List with the boundaries for BMI ranges, as defined by the WHO
      • ranges_i18n: Text defining each BMI range, as per the WHO, in English and Spanish
  • 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 language
    • get_bmi_ranges_info: Return info of all BMI ranges
    • calculate_weight: Calculate weight (kg), provided height (m) and BMI
    • calculate_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)