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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file glarki_bmi_calculator-0.3.3.tar.gz.
File metadata
- Download URL: glarki_bmi_calculator-0.3.3.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
512760033cf3069235feb463be971edafb89f2f67c9f97c6abedf7482b1f8fec
|
|
| MD5 |
da23dcefb114fb56b84825d9ff5b65a6
|
|
| BLAKE2b-256 |
e7a83d159edd20bb0330ac7b475069c16465a6bbab94455280c6566ecd423175
|
File details
Details for the file glarki_bmi_calculator-0.3.3-py3-none-any.whl.
File metadata
- Download URL: glarki_bmi_calculator-0.3.3-py3-none-any.whl
- Upload date:
- Size: 3.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a1596cd5ba436f9c842eff1bff97b48e184b49b3b6537a239148eb95b6d5c54
|
|
| MD5 |
d97e9db20a5b1f15a5919fc4b4ddc094
|
|
| BLAKE2b-256 |
42a59038667ac946c470be2d06045e1e73ca6ce7520fe5f83008355bbd239bf9
|