Skip to main content

A Python module for computing calorie requirements for individuals based on their needs and objectives

Project description

Table of Contents

  1. Nutripy
    1. Installation
    2. Usage
      1. Activity
      2. Goal

Nutripy

file:https://travis-ci.org/yafeunteun/nutripy.svg?branch=master img img

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 exercice
  • lightly_active: exercice/sports 1-3 times/week
  • moderately_active: exercice/sports 3-5 times/week
  • very_active: exercice/sports 6-7 times/week
  • extra_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 week
  • loss_500: lose 0.5 kg per week
  • maintain: maintain your weight
  • gain_500: gain 0.5 kg per week
  • gain_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)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page