This package is used to process BMI (BodyMassIndex) using Height and Weight of person. The input must a iterable of json objects
Project description
code-20210626-jagadeeshreddy
Body Mass Index Batch Processor
This Package is used to calculate BMI and Categorise the BMI in 5 Classes.
Tech
Python
- Written code to take input as json file and dump results in to a new json file
- Using Pytest for checking the functionality of methods for every update
- Using Github Actions to publish the package.
Installation
pip install bmi-batch-process
Usage
- import BodyMassIndex package
from BMI.bmi_processer import BodyMassIndex
- Create an object for the class
obj = BodyMassIndex()
Example:
processed_results = obj.process_start('input_file.json', 'output_path.json')
Task 2
Counting No of OverWeight people can be done by the following
- import count_overweight function
from BMI.count_overweight import count_overweight
- give the processed records file as input
count_overweight('path of processed records') #prints the no of over weight people
License
GNU v3
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
bmi_batch_process-0.2.tar.gz
(15.5 kB
view details)
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 bmi_batch_process-0.2.tar.gz.
File metadata
- Download URL: bmi_batch_process-0.2.tar.gz
- Upload date:
- Size: 15.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f2fe68eca9bb3be177583b8eddea7aa74dd04f47787d5c2be3301a8b71d16a4
|
|
| MD5 |
ca555c90fc8580e42bef5e5e537712d4
|
|
| BLAKE2b-256 |
6e6cc21ee0b1304106b87a2ce2ee1ca56ad2e996b6334d97084836acf1d3477a
|
File details
Details for the file bmi_batch_process-0.2-py3-none-any.whl.
File metadata
- Download URL: bmi_batch_process-0.2-py3-none-any.whl
- Upload date:
- Size: 16.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2206823c09306035ee9db78f3f55de362b2cd122143f5bc3d1098292949e0f94
|
|
| MD5 |
437307918b22975c0fab7e25b108f76e
|
|
| BLAKE2b-256 |
9176bb5e7419a9087d0da9f3aa6d504c3a5a1239efe7af508c64d82bae17887d
|