{
"info": {
"author": "Gabriel Rodr\u00edguez Alberich",
"author_email": "gabi@gabi.is",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 2 - Pre-Alpha",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules"
],
"description": "A Pythonic wrapper for the Nobel Prize API\n==========================================\n\nA simple Python wrapper for the `Nobel Prize\nAPI `__.\n\nQuickstart\n----------\n\nFirst, initialize the API wrapper:\n\n.. code:: python\n\n import nobel\n api = nobel.Api()\n\nNow you have access to the resources defined by the API (``prizes``,\n``laureates`` and ``countries``) and their methods.\n\nFor example, to list all laureates:\n\n.. code:: python\n\n >>> for laureate in api.laureates.all():\n ... print '%s (%s)' % (laureate, laureate.born_country)\n\nTo filter (check the `Nobel Prize\nAPI `__\ndocumentation for all available filtering parameters):\n\n.. code:: python\n\n >>> api.laureates.filter(gender='female', born_country='Iran')\n [, ]\n >>> api.prizes.filter(year=1969)\n [, ,\n , ,\n , ]\n\nTo retrieve a single resource:\n\n.. code:: python\n\n >>> laureate = api.laureates.get(id=26)\n >>> laureate.firstname\n u'Albert'\n >>> laureate.surname\n u'Einstein'\n >>> laureate.prizes\n []\n >>> laureate.born_country\n \n >>> laureate.died_country\n \n\n >>> prize = api.prizes.get(year=2000, category='economics')\n >>> print \", \".join([str(l) for l in prize.laureates])\n James J. Heckman, Daniel L. McFadden\n\nAs you can see, every ``Prize`` object is given a ``laureates``\nattribute populated with a list of its ``Laureate`` objects. Likewise,\nevery ``Laureate`` objects is given a ``prizes`` attribute with\n``Prize`` objects.\n\nAttributes and query parameters in the Nobel Prize API are\n``mixedCase``, but this wrapper uses the more pythonic\n``lower_case_with_underscores`` style and takes care of the conversion\nwhen filtering and accessing attributes.\n\nInstallation\n------------\n\nTo install Nobel, simply:\n\n.. code:: sh\n\n $ pip install nobel\n\nTODO\n----\n\n- Documentation and full reference\n- Tests\n- More ORM-ish stuff, like filtering using Prize, Laureate or Country\n objects as arguments\n- Add relation attributes, like affiliations.\n\nCredits\n-------\n\nThis is inspired by the beautifully written\n`hipchat-api `__ wrapper.",
"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/vibragiel/nobel",
"keywords": null,
"license": "Apache Software License",
"maintainer": null,
"maintainer_email": null,
"name": "nobel",
"package_url": "https://pypi.org/project/nobel/",
"platform": "any",
"project_url": "https://pypi.org/project/nobel/",
"project_urls": {
"Download": "UNKNOWN",
"Homepage": "https://github.com/vibragiel/nobel"
},
"release_url": "https://pypi.org/project/nobel/0.2/",
"requires_dist": null,
"requires_python": null,
"summary": "A simple pythonic wrapper for the Nobel Prize API.",
"version": "0.2"
},
"last_serial": 853098,
"releases": {
"0.1a": [
{
"comment_text": "",
"digests": {
"md5": "ca9b920a8a3ef73a2a04c07160ceddd1",
"sha256": "1a3ece0966e029220d5607d2982b357c7cc8d8acd97eec295b08f5b0b976b4ce"
},
"downloads": -1,
"filename": "nobel-0.1a.tar.gz",
"has_sig": false,
"md5_digest": "ca9b920a8a3ef73a2a04c07160ceddd1",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 5844,
"upload_time": "2013-08-27T13:10:06",
"url": "https://files.pythonhosted.org/packages/a9/51/39e4246cd2d2412602eeafe4b105f6ed5e8123f9bd3e499d7a0b72c7957e/nobel-0.1a.tar.gz"
}
],
"0.2": [
{
"comment_text": "",
"digests": {
"md5": "10de0f2136ec83b663cd9192a4f28781",
"sha256": "6a97d6e63f315da7f04ccecf18798f7e895834c9407f68e4a9c3617cbf52b6c8"
},
"downloads": -1,
"filename": "nobel-0.2.tar.gz",
"has_sig": false,
"md5_digest": "10de0f2136ec83b663cd9192a4f28781",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6024,
"upload_time": "2013-08-30T14:20:21",
"url": "https://files.pythonhosted.org/packages/82/87/3ac9c2d29e5f2f933da9faf3b8bd56434dd910c99b286f4ffc284f80b2c7/nobel-0.2.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "10de0f2136ec83b663cd9192a4f28781",
"sha256": "6a97d6e63f315da7f04ccecf18798f7e895834c9407f68e4a9c3617cbf52b6c8"
},
"downloads": -1,
"filename": "nobel-0.2.tar.gz",
"has_sig": false,
"md5_digest": "10de0f2136ec83b663cd9192a4f28781",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 6024,
"upload_time": "2013-08-30T14:20:21",
"url": "https://files.pythonhosted.org/packages/82/87/3ac9c2d29e5f2f933da9faf3b8bd56434dd910c99b286f4ffc284f80b2c7/nobel-0.2.tar.gz"
}
]
}