# -*- coding: utf-8 -*-
from setuptools import setup

package_dir = \
{'': 'src'}

packages = \
['bmigraph']

package_data = \
{'': ['*']}

install_requires = \
['plotly-express>=0.4.1,<0.5.0', 'plotly>=5.12.0']

setup_kwargs = {
    'name': 'bmigraph',
    'version': '1.4.1',
    'description': 'A BMI calculator and more!',
    'long_description': "# bmigraph [![codecov](https://codecov.io/gh/UBC-MDS/bmi-calculator-python/branch/master/graph/badge.svg)](https://codecov.io/gh/UBC-MDS/bmi-calculator-python/tree/master) [![Documentation Status](https://readthedocs.org/projects/bmigraph/badge/?version=latest)](https://bmigraph.readthedocs.io/en/latest/?badge=latest) ![CI/CD Workflow](https://github.com/UBC-MDS/bmi-calculator-python/actions/workflows/ci-cd.yml/badge.svg)\n\n> Authors: Qurat-ul-Ain Azim, Natalie Cho, HanChen Wang, Kelvin Wong\n>\n> Project complete in accordance with DSCI 524 for the UBC MDS Program 2022-23 for Group 12\n\nThis Python package is for calculation of BMI (body mass index), and some more computations based on weight loss goals. The package provides simple answers to a user's weight loss goals in terms of how much weight loss/gain and calorie deficit/increase should be aimed for with a target weight and time frame in mind.  The package also provides helpful visualizations about BMI and calorie intake change trajectory leading to the target.\n\nThe latest documentation of the package, hosted on Read the Docs, can be found [here](https://bmigraph.readthedocs.io/en/latest).\n\n## Functions\n\nThe package contains the following functions\n\n- `calculate_bmi`: computes user's BMI based on weight and height. Also creates a visual of the BMI on scale\n- `project_bmi`: computes how much average change in BMI should be achieved per day given a targeted weight and the timeframe to reach the goal. Also presents a visual trajectory for BMI\n- `project_calories`: computes how much average calorie intake is ideal per day given a targeted weight and the timeframe to reach the goal. Also presents a visual trajectory for calories\n- `exercise_plan`: suggests possible exercise plans to achieve the targeted weight. Also gives a graph showing how much exercise of each kind is needed per day\n\n## Suitability within Python Ecosystem\n\nOur BMI calculator is unique in the sense that it provides easy and instantly understandable visuals to quickly get the gist of how healthy a person is. The package does not rely on any historical data of a person's weights, and hence needs no dataset files to be provided. The only arguments needed for the functions of this calculator are current weight and height, and target weight with timeframe in case weight change is desired. It also recommends simple figures for weight gain/loss goals. There are many BMI calculators in the Python ecosystem. Some of the examples can be found [here](https://pypi.org/project/body-mass-index/) and [here](https://pypi.org/project/Py-bmi/). Both these offer limited visual aid in understanding one's health metrics and targets related to BMI.\n\n\n## Installation\n\n```bash\n$ pip install bmigraph\n```\n\n## Usage\n\nTo use the package, import the package with following command:\n\n```\nfrom bmigraph import calculate_bmi, exercise_plan, project_bmi, project_calories\n```\n\nTo use the functions, see examples below:\n\n### Calculate BMI\n```\n# Weight 100kg, height 1.85 meters, BMI value returned.\ncalculate_bmi(100, 1.85, return_graph=False)\n# 29.218407596785973\n\n# Weight 100kg, height 1.85 meters, BMI graph returned.\ncalculate_bmi(100, 1.85, return_graph=True)\n```\n![BMI graph](_images/calculate_bmi_graph_example.png)\n\n### Compute average BMI change per week\n```\n# Weight 100kg, height 1.85 meters, BMI goal 25, 30 days to reach goal, return average BMI change per week. \nproject_bmi(100, 1.85, 25, 30, return_graph=False)\n# -0.98\n\n# Weight 100kg, height 1.85 meters, BMI goal 25, 30 days to reach goal, return plot of Projected BMI trajectory. \nproject_bmi(100, 1.85, 25, 30, return_graph=True)\n```\n![Projected BMI trajectory graph](_images/project_bmi_graph_example.png)\n\n### Compute caloric intake per day based in a target weight\n```\n# Weight 100kg, height 1.85 meters, male, 25 years old, moderate exercise 3-5 times a week, ideal weight 75kg, \n# 25 days to reach goal, return caloric intake per day based in a target weight. \nproject_calories(100, 1.85, 1, 25, 1.6, 75, 25, return_graph=False)\n# 2417.0400000000004\n\n# Weight 100kg, height 1.85 meters, male, 25 years old, moderate exercise 3-5 times a week, ideal weight 75kg, \n# 25 days to reach goal, return plot of Projected Weight Loss. \nproject_calories(100, 1.85, 1, 25, 1.6, 75, 25, return_graph=True)\n```\n![Projected Weight Loss graph](_images/project_calories_graph_example.png)\n\n### Create an exercise plan\n```\n# Weight 100kg, height 1.83 meters, female, aged 27\n# Target weight: 68kg in 30 days\nexercise_plan(100, 1.83, 2, 27, 68, 30)\n# {'Leisure cycling or walking': 213,\n# 'Moderate rope-jumping': 88,\n# 'General running': 112,\n# 'Leisure swimming': 156}\n\n# Weight 100kg, height 1.83 meters, female, aged 27\n# Target weight: 68kg in 30 days\n# But this time, a graph instead:\nexercise_plan(100, 1.83, 2, 27, 68, 30, return_graph=True)\n```\n![Exercise plan](_images/exercise_plan_graph_example.png)\n\n## Contributing\n\nInterested in contributing? Check out the contributing guidelines. Please note that this project is released with a [Code of Conduct](https://github.com/UBC-MDS/bmi-calculator-python/blob/master/CONDUCT.md). You can follow guidelines outlined [here](https://github.com/UBC-MDS/bmi-calculator-python/blob/master/CONTRIBUTING.md) in case you want to contribute to the project. By contributing to this project, you agree to abide by its terms.\n\nThe list of contributors to the original project can be found [here](https://github.com/UBC-MDS/bmi-calculator-python/blob/master/CONTRIBUTORS.md).\n\n## License\n\n`bmigraph` was created by Qurat-ul-Ain Azim, Natalie Cho, HanChen Wang, Kelvin Wong. It is licensed under the terms of the MIT license.\n\n## Credits\n\n`bmigraph` was created with [`cookiecutter`](https://cookiecutter.readthedocs.io/en/latest/) and the `py-pkgs-cookiecutter` [template](https://github.com/py-pkgs/py-pkgs-cookiecutter).\n",
    'author': 'Qurat-ul-Ain Azim, Natalie Cho, HanChen Wang, Kelvin Wong',
    'author_email': 'None',
    'maintainer': 'None',
    'maintainer_email': 'None',
    'url': 'None',
    'package_dir': package_dir,
    'packages': packages,
    'package_data': package_data,
    'install_requires': install_requires,
    'python_requires': '>=3.9',
}


setup(**setup_kwargs)
