Skip to main content

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

Metadata

Release files for glarki-bmi-calculator 0.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for glarki-bmi-calculator 0.3.3
File Size Uploaded
glarki_bmi_calculator-0.3.3.tar.gz 3.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for glarki-bmi-calculator 0.3.3
File Interpreter ABI Platform
glarki_bmi_calculator-0.3.3-py3-none-any.whl Python 3 none any Details

Total release size: 6.8 kB

Release files / glarki_bmi_calculator-0.3.3.tar.gz

Download URL glarki_bmi_calculator-0.3.3.tar.gz
Size 3.1 kB
Tags Source
SHA-256 checksum
How to use checksums
512760033cf3069235feb463be971edafb89f2f67c9f97c6abedf7482b1f8fec
BLAKE2b-256 checksum
How to use checksums
e7a83d159edd20bb0330ac7b475069c16465a6bbab94455280c6566ecd423175
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / glarki_bmi_calculator-0.3.3-py3-none-any.whl

Download URL glarki_bmi_calculator-0.3.3-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2a1596cd5ba436f9c842eff1bff97b48e184b49b3b6537a239148eb95b6d5c54
BLAKE2b-256 checksum
How to use checksums
42a59038667ac946c470be2d06045e1e73ca6ce7520fe5f83008355bbd239bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release history Release notifications | RSS feed

This release

0.3.3 This release

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.1

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page