Git Product home page Git Product logo

django-usda-nutrition's Introduction

django-usda-nutrition

This is a Django application which includes models corresponding to the USDA Nutrition Database, as well as import scripts to pull the current version of the dataset (SR28) into the Django-managed database.

NOTE: django-usda also exists, but imports an older (SR22) dataset.

Dependencies

This packaged has only been tested with Python 3.5+ and Django 1.9+, but should work with other versions. Feel free to submit pull requests for compatibility.

Install

Install from pip:

pip install django-usda-nutrition

Usage

Add usda_nutrition to your INSTALLED_APPS and then:

./manage.py import_usda

Notes

  • The USDA database includes comprehensive information on how all nutritional data is calculated and references to the corresponding source datasets. Because that data is out of scope to use-cases that simply want to include the raw nutritional content in an application, those tables are not imported with this package. Nonetheless, the source CSV files, stubbed out models, and references to them in the import management command and checked in. The corresponding code is commented out and could be a starting point to anyone wanted to use that data in a Django app.

  • A single bad datapoint from FOOTNOTE.txt was manually removed.

django-usda-nutrition's People

Contributors

adwylie avatar danielnaab avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.