bmi-batch-process-0.3
توضیحات
This package is used to process BMI (BodyMassIndex) using Height and Weight of person. The input must a iterable of json objects
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bmi-batch-process-0.3 |
| نام | bmi-batch-process |
| نسخه کتابخانه | 0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Jagadeesh Reddy |
| ایمیل نویسنده | mail4jagadeeshreddy@gmail.com |
| آدرس صفحه اصلی | https://github.com/jagadeesh-r1/code-20210626-jagadeeshreddy |
| آدرس اینترنتی | https://pypi.org/project/bmi-batch-process/ |
| مجوز | GNU General Public License v3.0 |
# code-20210626-jagadeeshreddy
# Body Mass Index Batch Processor
[](https://pypi.org/project/bmi-batch-process/)
This Package is used to calculate BMI and categorise the BMI in to 6 classes (i.e, Under Weight,Normal Weight,Over Weight,Moderately Obese,Severely Obese,Very Severely Obese) along with their health risks.
## Development
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
```python3
from BMI.bmi_processer import BodyMassIndex
```
- Create an object for the class
```python3
obj = BodyMassIndex()
```
- Input file example
```python3
# the input must be an iterable of json objects
[
{
"Gender":"Male",
"HeightCm":171,
"WeightKg":96
},
{
"Gender":"Male",
"HeightCm":161,
"WeightKg":85
},
...
]
```
Example:
```python3
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
```python3
from BMI.count_overweight import count_overweight
```
- give the processed records file as input
```python3
count_overweight('path of processed records')
#prints the no of over weight people
```
## License
GNU v3
نحوه نصب
نصب پکیج whl bmi-batch-process-0.3:
pip install bmi-batch-process-0.3.whl
نصب پکیج tar.gz bmi-batch-process-0.3:
pip install bmi-batch-process-0.3.tar.gz