{ "info": { "author": "Sean Whalen", "author_email": "whalenster@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "Intended Audience :: Education", "Intended Audience :: Legal Industry", "Intended Audience :: Science/Research", "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2", "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" ], "description": "===========\npydol\n===========\n\npydol provides a pythonic interface to the `U.S. Department of Labor API`_.\nIt can be used to fetch official unemployment numbers and other interesting \ndata.\n::\n\n from pydol import DOLAPI\n\n # Create an instance of the API\n DOL = DOLAPI(\"d9c6c290-da4c-424e-a378-fb4bd027b58b\",\n \"mysecret11111111111\")\n\n # Get dataset metadata as a dictionary structure\n # Multi-part dataset names are separated by a /\n BLS = DOL.metadata(\"statistics/BLS_Numbers\")\n\n # Get table data as a list of dictionaries\n UNEMPLOYMENT = DOL.table(\"statistics/BLS_Numbers\", \"unemploymentRate\")\n\n # Detailed examples at docs/examples.rst\n\nIt is well documented, easy-to-use, `PEP 8`_ compliant, and unit tested. \n\n\nDependencies\n============\n\n* Python_ >= 2.6\n\n* requests_\n\n* xmltodict_\n\n\nObtaining API credentials\n=========================\n\nValid API credentials are required to request data from tables. To obtain credentials:\n\n1) `Create a DOL developer account`_ and log in\n2) `Create a new token/key`_\n You must provide:\n\n * A random shared secret::\n\n >>> import os\n >>> import binascii\n >>> binascii.hexlify(os.urandom(32))\n 'daae7948824525c1b8b59f9d5a75e9c0404e46259c7b1e17a4654a7e73c91b87'\n\n * An application name\n * An application description\n\n4) The token/key will be generated after the submission of the form\n\n**Note**: The words token and key are used interchangeably\n\n\nThis project is not affiliated with or endorsed by the `U.S. Department of Labor`_.\n\n\n.. _U.S. Department of Labor API: http://developer.dol.gov/\n.. _PEP 8: http://www.python.org/dev/peps/pep-0008/\n.. _Python: http://www.python.org/download/\n.. _requests: http://docs.python-requests.org/en/latest/index.html\n.. _xmltodict: https://github.com/martinblech/xmltodict\n.. _Create a DOL developer account: https://devtools.dol.gov/developer/Account/Register\n.. _Create a new token/key: https://devtools.dol.gov/developer/Tokens/Create\n.. _U.S. Department of Labor: http://www.dol.gov", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/seanthegeek/pydol", "keywords": "DoL USDoL BLS statistics API", "license": "Apache 2.0", "maintainer": "", "maintainer_email": "", "name": "pydol", "package_url": "https://pypi.org/project/pydol/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pydol/", "project_urls": { "Homepage": "https://github.com/seanthegeek/pydol" }, "release_url": "https://pypi.org/project/pydol/1.0.3/", "requires_dist": [ "requests", "xmltodict", "nose; extra == 'test'" ], "requires_python": "", "summary": "A pythonic interface to the U.S. Department of Labor API", "version": "1.0.3" }, "last_serial": 2160783, "releases": { "1.0.3": [ { "comment_text": "", "digests": { "md5": "acaf233cd02268b330bca8a4f7b3f2af", "sha256": "6ff702092fac66ef3cb566cb712f47818253e1e634b04efe18b693deea7e3cce" }, "downloads": -1, "filename": "pydol-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "acaf233cd02268b330bca8a4f7b3f2af", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7761, "upload_time": "2016-06-10T14:19:46", "url": "https://files.pythonhosted.org/packages/7a/d6/a76e7a6a95e354e16816ec1b2ba1679bfc1d3c58702f7c5d7b7ad5e684d6/pydol-1.0.3-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "acaf233cd02268b330bca8a4f7b3f2af", "sha256": "6ff702092fac66ef3cb566cb712f47818253e1e634b04efe18b693deea7e3cce" }, "downloads": -1, "filename": "pydol-1.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "acaf233cd02268b330bca8a4f7b3f2af", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 7761, "upload_time": "2016-06-10T14:19:46", "url": "https://files.pythonhosted.org/packages/7a/d6/a76e7a6a95e354e16816ec1b2ba1679bfc1d3c58702f7c5d7b7ad5e684d6/pydol-1.0.3-py2.py3-none-any.whl" } ] }