Skip to main content

A sample package to calculate bmi

Project description

BodyMassIndex Calculator

This repository consists of a simple BodyMassIndex calculator using Python.

Summary

About BodyMassIndex

Body mass index is a value derived using weight and height of a person. Formula : - BodyMassIndex(kg/m2) = mass(kg) / height(m)2

Chart

Category Range Health risk
Underweight 18.4 and below Malnutrition risk
Normal weight 18.5 to 24.9 Low risk
Overweight 25 to 29.9 Enhanced risk
Moderately obese 30 to 34.9 Medium risk
Severely obese 35 to 39.9 High risk
Very severely obese 40 and above Very high risk

About Calculator

  1. It accepts Json file as input and returns number of overwieght people count (considering all the count above 25 BodyMassIndex) and stores the output as Json/CSV
  2. Output file contains output BodyMassIndex along with Category and Health risk data.

Future work

We can returns the people details with approximate weight to be lost or increase to reach normal BodyMassIndex.

Install and Run

  • Install the module using following command
        pip install code_20220301_rayeesck
    
  • Import the module in your code and call the process with passing the parameters
        from code_20220301_rayeesck import process
        output = process('InputJsonPath',output_format = 'csv')
    
  • ouput will have the number of over weight count and stores the output file in same directory with appending 'output' into the name of file.
  • Parameters
    • InputJsonPath = path of input json file
    • output_format = csv/json, which format output to be stored

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

code_20220301_rayeesck-0.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

code_20220301_rayeesck-0.0.1-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: code_20220301_rayeesck-0.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.3 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13

File hashes

Hashes for code_20220301_rayeesck-0.0.1.tar.gz
Algorithm Hash digest
SHA256 29f5095fe698d0e24db61de9bf9c5200f2e512299ffa77310e304a34bdf99005
MD5 2b025988eb6d3faefd16f95bd38cb5f4
BLAKE2b-256 862b25b2065dd58a46a50b260362b5bde528f2e0211ca6e1afc4cb5acf358571

See more details on using hashes here.

File details

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

File metadata

  • Download URL: code_20220301_rayeesck-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.25.1 requests-toolbelt/0.9.1 urllib3/1.26.3 tqdm/4.62.3 importlib-metadata/4.8.3 keyring/23.4.1 rfc3986/1.5.0 colorama/0.4.4 CPython/3.6.13

File hashes

Hashes for code_20220301_rayeesck-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 507ae11e81287550329c8130affd407c21c8be9e46ebad2ef13d7baaca8ed990
MD5 0edd82d19bf2a2993d3de74085b8d85f
BLAKE2b-256 91a238637545da957bbba465aa9888eca4de7a5288ffb57473d41eef8c8a43e3

See more details on using hashes here.

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