A Python module for computing calorie requirements for individuals based on their needs and objectives
Project description
Table of Contents
Nutripy
file:https://travis-ci.org/yafeunteun/nutripy.svg?branch=master
Installation
pip install nutripy
Usage
from nutripy import Nutripy
nut = Nutripy()
age = 25
weight = 60
height = 180
gender = "male"
activity = "sedentary"
goal = "loss_1000"
daily_needs = nut.get_daily_needs(age, weight, height, gender, activity, goal)
Activity
The parameter activity can take several values described in this section.
sedentary
: little or no exercicelightly_active
: exercice/sports 1-3 times/weekmoderately_active
: exercice/sports 3-5 times/weekvery_active
: exercice/sports 6-7 times/weekextra_active
: very hard exercice/sports or physical job
Goal
The parameter goal can take several values described in this section.
loss_1000
: lose 1 kg per weekloss_500
: lose 0.5 kg per weekmaintain
: maintain your weightgain_500
: gain 0.5 kg per weekgain_1000
: gain 1 kg per week
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
nutripy-0.3.tar.gz
(2.9 kB
view hashes)