Skip to main content

A unified package for health indicators and indices e.g. BMI, BAI, etc.

Project description

healthInsight-pkg

HealthInsight – A Unified Python Package for Health Indicators

HealthInsight

Purpose of the Package

HealthInsight is a Python package designed to calculate various health indicators, including BMI, BAI, BSI, total body water, and mortality rates. It helps individuals and researchers assess different aspects of health and wellness using scientifically accepted formulas.

Features

  • BMI Calculation - Body Mass Index classification
  • BAI Calculation - Body Adipose Index
  • BSI Calculation - Body Shape Index
  • Total Body Water Calculation
  • Corpulence Index
  • Waist-to-Hip Ratio
  • Mortality Rate Calculations (Perinatal, Maternal, Infant)
  • Birth Rate Calculation

Getting Started

This package is built using Python and follows object-oriented programming principles. It is designed to be lightweight and easy to use for health-related calculations. HealthInsight is available on PyPI, so you can install it using the standard installation methods provided below.

Installation

To install HealthInsight, ensure you have Python installed (>=3.12) and run:

pip install healthinsight

Or, if using Poetry:

poetry add healthinsight

Usage

Import the HealthCalc class and use the available static methods for different health calculations.

from healthinsight.calculations import HealthCalc

Example

from healthinsight.calculations import HealthCalc

# Calculate BMI
bmi_value, category = HealthCalc.bmi(65, 1.70)
print(f"BMI: {bmi_value}, Category: {category}")

# Calculate BAI
bai_value = HealthCalc.bai(90, 1.75)
print(f"BAI: {bai_value}")

Contributions

Contributions are welcome! To contribute:

  1. Fork the repository.
  2. Create a new branch for your feature/fix.
  3. Commit your changes.
  4. Submit a pull request.

Ensure to run tests before submitting:

pytest tests/

Author

Developed by Olajide Oluwafemi Richard. Feel free to reach out for collaboration or inquiries!

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

healthinsight-0.0.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

healthinsight-0.0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file healthinsight-0.0.1.tar.gz.

File metadata

  • Download URL: healthinsight-0.0.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for healthinsight-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d0d71fa6420158fee7fc3bdab7587dda4737b6f7310d09bbd8062ace0ac75013
MD5 cc68a35bd11ed0fe08047af959c68be4
BLAKE2b-256 d4d910e75acc0722c85eef6d6b9cf84ab4a19d319d54c632eab2ccef42dd1f25

See more details on using hashes here.

File details

Details for the file healthinsight-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: healthinsight-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.0

File hashes

Hashes for healthinsight-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f347c7b0fcedaa6eb2806e7b1f19e55771254a643cd6ef6456dc9ffc5b7b5066
MD5 2acc178373f00bb113329a9c514360da
BLAKE2b-256 a23df5a367fb23d8dcb973d6acc9695bbaca3b29ceaf7a1eada092fc5932b96f

See more details on using hashes here.

Supported by

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