Django application for working with the USDA nutrition database.
Project description
# 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.
## 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.
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.
## 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.
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
Built Distribution
Close
Hashes for django-usda-nutrition-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f424317c3fbdba864c4275a0cbaf7c991453611bbd57997fe62976b7f8e5fc79 |
|
MD5 | 938617d51101fcc7f532629edab121ab |
|
BLAKE2b-256 | 2fe04ae67eadf628c8137fd320b8c7bb056959a63ceb19a7141a82d9a834a889 |
Close
Hashes for django_usda_nutrition-0.0.2-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bef023d4865553b589b1912e238edfe63c02831f5d31b9973fe623ae4248b13f |
|
MD5 | 74cc53ac261932e7754ef7a6a94a994a |
|
BLAKE2b-256 | 264f5f0e2d5885050eebdc6c678e30476aba4a1a9cc435df7dcc7280bc1b5b4e |