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](https://github.com/notanumber/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.
Metadata
Release files for django-usda-nutrition 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| django-usda-nutrition-0.2.0.tar.gz | 5.7 MB | Without provenance | Details for django-usda-nutrition-0.2.0.tar.gz |
Release files / django-usda-nutrition-0.2.0.tar.gz
| Download URL | django-usda-nutrition-0.2.0.tar.gz |
|---|---|
| Size | 5.7 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3ed660b9e097eb97e2f063c3b18226b03aeed954d25e03847bff96967fd63c25
|
|
BLAKE2b-256 checksum How to use checksums |
83d27e0720862f3e8f27cfc524b9bf4fd18f7aad7bd5ccd71c6f80dedf1b9243
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for django-usda-nutrition 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.