{ "info": { "author": "Lars Holm Nielsen", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Natural Language :: English", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Libraries :: Python Modules" ], "description": "Altmetric\n=========\n``Altmetric`` is a Python wrapper for `Altmetric API v1 `.\n\nInstallation\n------------\n::\n\n pip install altmetric\n\nUsage\n-----\n\nFetching details by identifiers\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\n::\n\n from altmetric import Altmetric\n a = Altmetric()\n a.id(\"108989\")\n a.doi(\"10.1126/science.1173146\")\n a.ads(\"2009sci...325..578w\")\n a.arxiv(\"1212.4819\")\n a.pmid(\"19644114\")\n \n\n a = Altmetric(\"you_api_key\")\n a.fetch(\"doi\",\"10.1126/science.1173146\")\n\n\nQuerying the database\n~~~~~~~~~~~~~~~~~~~~~\n\n::\n from altmetric import Altmetric\n a = Altmetric()\n a.citations('1d')\n a.citations('1d', page=2)\n\n\nCatching Errors\n~~~~~~~~~~~~~~~\n\n::\n\n from altmetric import Altmetric\n a = Altmetric()\n try:\n rsp = a.doi(\"10.1234/foo\")\n if rsp is None:\n print \"DOI not found\"\n else:\n print rsp['altmetric_id']\n except AltmetricHTTPException, e:\n if e.status_code == 403:\n print \"You aren't authorized for this call\"\n elif e.status_code == 420:\n print \"You are being rate limited\"\n elif e.status_code == 502:\n print \"The API version you are using is currently down for maintenance.\"\n elif e.status_code == 404:\n print \"Invalid API function\"\n print e.msg\n\n\nAPI Reference\n-------------\nPlease see http://api.altmetric.com/ for detailed reference on response object\nand parameters.", "description_content_type": null, "docs_url": null, "download_url": "http://pypi.python.org/pypi/altmetric/", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/lnielsen-cern/python-altmetric", "keywords": "altmetric api wrapper export", "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "altmetric", "package_url": "https://pypi.org/project/altmetric/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/altmetric/", "project_urls": { "Download": "http://pypi.python.org/pypi/altmetric/", "Homepage": "https://github.com/lnielsen-cern/python-altmetric" }, "release_url": "https://pypi.org/project/altmetric/1.0/", "requires_dist": null, "requires_python": null, "summary": "Altmetric API v1 wrapper for Python.", "version": "1.0" }, "last_serial": 786247, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "9b7c6aca1eec640e55c1cd9f298ad72a", "sha256": "a0326573b769a15220ee9b84297370aabecf7235f2af05c0801a83d2f455870c" }, "downloads": -1, "filename": "altmetric-1.0.tar.gz", "has_sig": false, "md5_digest": "9b7c6aca1eec640e55c1cd9f298ad72a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3427, "upload_time": "2012-12-20T10:41:05", "url": "https://files.pythonhosted.org/packages/93/18/f69e9ab28e286a4882b06e578821b621683ba9c0675e45f281dd5a179b4f/altmetric-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "9b7c6aca1eec640e55c1cd9f298ad72a", "sha256": "a0326573b769a15220ee9b84297370aabecf7235f2af05c0801a83d2f455870c" }, "downloads": -1, "filename": "altmetric-1.0.tar.gz", "has_sig": false, "md5_digest": "9b7c6aca1eec640e55c1cd9f298ad72a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3427, "upload_time": "2012-12-20T10:41:05", "url": "https://files.pythonhosted.org/packages/93/18/f69e9ab28e286a4882b06e578821b621683ba9c0675e45f281dd5a179b4f/altmetric-1.0.tar.gz" } ] }