{ "info": { "author": "Nick Frost", "author_email": "nickfrostatx@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy" ], "description": "nass\n====\n\n.. image:: https://img.shields.io/travis/nickfrostatx/nass.svg\n :target: https://travis-ci.org/nickfrostatx/nass\n\n.. image:: https://img.shields.io/coveralls/nickfrostatx/nass.svg\n :target: https://coveralls.io/github/nickfrostatx/nass\n\n.. image:: https://img.shields.io/pypi/v/nass.svg\n :target: https://pypi.python.org/pypi/nass\n\n.. image:: https://img.shields.io/pypi/l/nass.svg\n :target: https://raw.githubusercontent.com/nickfrostatx/nass/master/LICENSE\n\n``nass`` is a wrapper around the public API for the USDA National Agricultural\nStatistics Service.\n\nInstallation\n------------\n\n.. code-block:: bash\n\n $ pip install nass\n\nUsage\n-----\n\n.. code-block:: python\n\n >>> import nass\n >>> api = nass.NassApi('your api key')\n >>> api.param_values('source_desc')\n ['CENSUS', 'SURVEY']\n >>> q = api.query()\n >>> q.filter('commodity_desc', 'CORN').filter('year', 1990)\n >>> q.count()\n 25259\n >>> q.execute()\n [{'sector_desc': 'CROPS', ...}, ...]\n\nSee http://quickstats.nass.usda.gov/ for the full list of fields.\n\nExceptions\n----------\n\nIf something goes wrong communicating with NASS, an exception will be raised.\nThis includes connection problems (e.g. timeout, DNS failure), as well as\nspecific error messages.\n\nAll exceptions subclass ``NassException``, so you can use it to catch all\nexceptions.\n\nDocumentation\n-------------\n\nYou can find full documentation of the ``nass`` package at\nhttps://nass.readthedocs.org.\n\n\n.. :changelog:\n\nHistory\n-------\n\n0.1.1 (2015-10-14)\n++++++++++++++++++\n\n- Python 3.5 support\n- Mark as stable\n\n0.1.0 (2015-07-18)\n++++++++++++++++++\n\n- Initial release", "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/nickfrostatx/nass", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "nass", "package_url": "https://pypi.org/project/nass/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nass/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/nickfrostatx/nass" }, "release_url": "https://pypi.org/project/nass/0.1.1/", "requires_dist": null, "requires_python": null, "summary": "USDA National Agricultural Statistics Service API wrapper", "version": "0.1.1" }, "last_serial": 1782261, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "10f695a718135b2b46e07a19c771c91d", "sha256": "ceccfc2c30512fa0b9ffba3184f25c19d6b72d8fd234a6084f8c2f30107b9275" }, "downloads": -1, "filename": "nass-0.1.0.tar.gz", "has_sig": false, "md5_digest": "10f695a718135b2b46e07a19c771c91d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14009, "upload_time": "2015-07-20T04:43:18", "url": "https://files.pythonhosted.org/packages/2b/af/3192582fa8101b0671024229a526cc86f4d230a70c241a345824357b1b52/nass-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "74f26a03d37378f036f1bc9d9b4510ec", "sha256": "64d7d406fa3d5e8b08fe82540863682551041177ded95302683be309ef9d7a51" }, "downloads": -1, "filename": "nass-0.1.1.tar.gz", "has_sig": false, "md5_digest": "74f26a03d37378f036f1bc9d9b4510ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14050, "upload_time": "2015-10-14T20:50:35", "url": "https://files.pythonhosted.org/packages/4f/85/aa09bc76c1c0df2fdfa2d1a8bb9bef36de50a745d1ceccf3d1ab36ab1f22/nass-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "74f26a03d37378f036f1bc9d9b4510ec", "sha256": "64d7d406fa3d5e8b08fe82540863682551041177ded95302683be309ef9d7a51" }, "downloads": -1, "filename": "nass-0.1.1.tar.gz", "has_sig": false, "md5_digest": "74f26a03d37378f036f1bc9d9b4510ec", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14050, "upload_time": "2015-10-14T20:50:35", "url": "https://files.pythonhosted.org/packages/4f/85/aa09bc76c1c0df2fdfa2d1a8bb9bef36de50a745d1ceccf3d1ab36ab1f22/nass-0.1.1.tar.gz" } ] }