Skip to content

Generate nutritionally complete diets, optimized by price or weight

Notifications You must be signed in to change notification settings

josh-minch/spartan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spartan

Spartan is a Python application that generates nutritionally complete diets given a selection of foods.

  • Generate diets optimized by nutritional density, minimizing total weight.
  • Enter price data to generate diets which minimize total cost.
  • Provides a nutrient composition database with over 7000 foods that can be easily inspected and compared.
  • Personal nutritional requirements based on US Food and Nutrition Board recommendations.
  • Choose dietary preferences to exclude certain food groups.
  • Customize food constraints to limit quantity of specific foods in generated diets.
  • Examine nutritional breakdown of generated diet on a food by food basis.

Run

A prebuilt Windows executable can be found under releases. Tested on Windows 10, but may work on earlier versions.

From source

Prerequisites

  • Python 3.6
  • virtualenv

Clone, install dependencies, and run

On Windows

git clone https://github.com/josh-minch/spartan.git
cd spartan/spartan
virtualenv --no-site-packages virtual
virtual\Scripts\activate
pip install -r requirements.txt
python main.py

On macOS / Linux

git clone https://github.com/josh-minch/spartan.git
cd spartan/spartan
virtualenv --no-site-packages virtual
source virtual/bin/activate
pip install -r requirements.txt
python main.py

Built with

Legal

This software does not currently have a license.

This project includes open source software licensed under the MIT License and the BSD License. In compliance with these licenses, all copies and substantial portions of the licensed software retains the original copyright and license notices.