{ "info": { "author": "Javi Palanca", "author_email": "jpalanca@codemaniacs.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Framework :: Django", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3" ], "description": "=============================\ndjango-usda-mongo\n=============================\n\n.. image:: https://badge.fury.io/py/django-usda-mongo.png\n :target: https://badge.fury.io/py/django-usda-mongo\n\n.. image:: https://travis-ci.org/javipalanca/django-usda-mongo.png?branch=master\n :target: https://travis-ci.org/javipalanca/django-usda-mongo\n\n.. image:: https://coveralls.io/repos/javipalanca/django-usda-mongo/badge.png?branch=master\n :target: https://coveralls.io/r/javipalanca/django-usda-mongo?branch=master\n\nOverview\n--------\ndjango-usda-mongo imports and maps the USDA National Nutrient Database for Standard Reference (SR22) to Django models using MongoDB with mongoengine.\nIt also integrate django-mongonaut to admin the MongoDB database.\n\n\nRequirements\n------------\n* Python 2.5.x\n* Django 1.2.x (import_sr22 will not work with early versions)\n* mongoengine\n* django-mongonaut\n\nInstallation\n------------\n#. pip install django-usda-mongo or copy the `usda_mongo` folder to a location available on your `PYTHONPATH`.\n#. Add 'usda' to `INSTALLED_APPS` in `settings.py`\n#. Optionally, add `(r'^usda/', include('usda.urls')),` to your `urlpatterns`.\n\nData Import\n-----------\nTo import the latest SR22 data. Simply use the `import_sr22` management command\nas follows:\n\n ./manage.py import_sr22\n\nThe above assumes that the `sr22.zip` file is in the current folder. To specify\nan alternative location specify `-f `.\n\nThe `import_sr22` command takes several options:\n\n* --database -- Specify an alternative database to populate.\n* --food -- Create/update all foods.\n* --group -- Create/Update food groups.\n* --nutrient -- Create/Update nutrients.\n* --weight -- Create/Update weights.\n* --footnote -- Create/Update footnotes.\n* --datasource -- Create/Update data sources.\n* --derivation -- Create/Update data derivations.\n* --source -- Create/Update sources.\n* --data -- Create/Update nutrient data.'\n* --all -- Create/Update all data.\n\nAll of the above options can be combined to only create/update the desired\ndata. If no options are specified, `-all` is assumed.\n\nAlso note that all data is loaded in a single transaction to ensure that\ndatabase consistency is maintained.\n\nNotes\n-----\nThe USDA National Nutrient Database for Standard Reference (SR22) can be found\nhere: `http://www.ars.usda.gov/Services/docs.htm?docid=18879 `_.\n\n\n\nHistory\n-------\n\n0.1.0 (2015-03-31)\n++++++++++++++++++\n\n* First release on PyPI.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/javipalanca/django-usda-mongo", "keywords": "django-usda-mongo", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "django-usda-mongo", "package_url": "https://pypi.org/project/django-usda-mongo/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/django-usda-mongo/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/javipalanca/django-usda-mongo" }, "release_url": "https://pypi.org/project/django-usda-mongo/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "Import and map the USDA National Nutrient Database for Standard Reference (SR22) to Django models using MongoDB with mongoengine", "version": "0.1.1" }, "last_serial": 1556723, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "a7b3b9a455428dd8019910b4800ebcfe", "sha256": "03ffa99e27faff0cd936dfcb3295f522e7cdd359c044a023bb2666756c4c661f" }, "downloads": -1, "filename": "django-usda-mongo-0.1.0.tar.gz", "has_sig": false, "md5_digest": "a7b3b9a455428dd8019910b4800ebcfe", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 13308, "upload_time": "2015-04-01T16:47:43", "url": "https://files.pythonhosted.org/packages/cb/ba/09a25f57abeff9f35def36e1098ee55e7631dc9cbca2024aa2a56c15c503/django-usda-mongo-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "bb04557c6eedd4c561122736d6c667e9", "sha256": "e6f179d55ff688e0b1e9058be187e2e71de3c3b03c7887512d968b28e4ead559" }, "downloads": -1, "filename": "django_usda_mongo-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bb04557c6eedd4c561122736d6c667e9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14591, "upload_time": "2015-05-21T17:38:28", "url": "https://files.pythonhosted.org/packages/bc/dd/45addd633ad4814b0301a3546c96fefba4cfc71c767509304b2f560bf4ab/django_usda_mongo-0.1.1-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "bb04557c6eedd4c561122736d6c667e9", "sha256": "e6f179d55ff688e0b1e9058be187e2e71de3c3b03c7887512d968b28e4ead559" }, "downloads": -1, "filename": "django_usda_mongo-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "bb04557c6eedd4c561122736d6c667e9", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 14591, "upload_time": "2015-05-21T17:38:28", "url": "https://files.pythonhosted.org/packages/bc/dd/45addd633ad4814b0301a3546c96fefba4cfc71c767509304b2f560bf4ab/django_usda_mongo-0.1.1-py2.py3-none-any.whl" } ] }