Body-mass-index

Latest version: v1.0.0

Safety actively analyzes 625140 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

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)

Changed

* .

Removed

* .

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.