Calculate Body-Mass Index
Project description
BMICalculator
BMICalculator is a Python package that allows users to calculate their Body Mass Index (BMI) based on their weight, height, and unit system (metric or imperial). It also categorizes the BMI into standard categories such as Underweight, Normal weight, Overweight, and Obesity.
Installation
You can install the package using pip:
pip install glarki-bmi-calculator
Usage
Import
from glarki_bmi_calculator import Class_01_BMIcalc as bmi
Example with metric units
person1 = bmi(gender="female", weight=68, height=1.65)
print(person1.get_bmi_info()) # Output: Gender: Female, BMI: 24.98, Category: Normal weight
Example with imperial units
person2 = bmi(gender="male", weight=150, height=65, unit="imperial")
print(person2.get_bmi_info()) # Output: Gender: Male, BMI: 24.96, Category: Normal weight
Help
In python:
print(bmi.__doc__)
print(bmi.{method}.__doc__)
In Command Line Interface
glarki_bmi_help
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for glarki_bmi_calculator-0.3.3.tar.gz
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 512760033cf3069235feb463be971edafb89f2f67c9f97c6abedf7482b1f8fec |
|
| MD5 | da23dcefb114fb56b84825d9ff5b65a6 |
|
| BLAKE2b-256 | e7a83d159edd20bb0330ac7b475069c16465a6bbab94455280c6566ecd423175 |
Close
Hashes for glarki_bmi_calculator-0.3.3-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 2a1596cd5ba436f9c842eff1bff97b48e184b49b3b6537a239148eb95b6d5c54 |
|
| MD5 | d97e9db20a5b1f15a5919fc4b4ddc094 |
|
| BLAKE2b-256 | 42a59038667ac946c470be2d06045e1e73ca6ce7520fe5f83008355bbd239bf9 |