code-20210626-jagadeeshreddy
Body Mass Index Batch Processor
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
from BMI.bmi_processer import BodyMassIndex
- Create an object for the class
obj = BodyMassIndex()
- Input file example
# the input must be an iterable of json objects [ { "Gender":"Male", "HeightCm":171, "WeightKg":96 }, { "Gender":"Male", "HeightCm":161, "WeightKg":85 }, ... ]
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
Metadata
Release files for bmi-batch-process 0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| bmi_batch_process-0.3.tar.gz | 16.0 kB | Without provenance | Details for bmi_batch_process-0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| bmi_batch_process-0.3-py3-none-any.whl | Python 3 | none | any | Details for bmi_batch_process-0.3-py3-none-any.whl |
Total release size: 32.6 kB
Release files / bmi_batch_process-0.3.tar.gz
| Download URL | bmi_batch_process-0.3.tar.gz |
|---|---|
| Size | 16.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1c016f46c921faccfba3f1e8f14348ab2c76158e640580cb26fffc679abfb59b
|
|
BLAKE2b-256 checksum How to use checksums |
11eef512e217409d746d86af04e02970dde703330c3b55f336c80dfba324636b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Release files / bmi_batch_process-0.3-py3-none-any.whl
| Download URL | bmi_batch_process-0.3-py3-none-any.whl |
|---|---|
| Size | 16.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8edf9f42ff24a7e9395a175ec4d5e5e82703d79b0cd11bdbd2d01c1da5a36c21
|
|
BLAKE2b-256 checksum How to use checksums |
e5c90603c501fd7ee84660a37d9a5813cff496c6e35069d7126d18f6e2d05338
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.9.5
|
Security for bmi-batch-process 0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.