Skip to main content

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

glarki_bmi_calculator-0.3.3.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

glarki_bmi_calculator-0.3.3-py3-none-any.whl (3.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page