{ "info": { "author": "Bo Marchman", "author_email": "bo.marchman@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 3" ], "description": "hathitrust-api\n=================\n\nA simple interface for the HathiTrust APIs. The package contains basic classes and associated methods for querying the [Bibliographic API][bib api], [Data API][data api], and the [HTRC Solr Proxy][solr api].\n\nThe package is compatible with Python 2 and Python 3.\n\n[bib api]: http://www.hathitrust.org/bib_api\n[data api]: http://www.hathitrust.org/data_api\n[solr api]: http://wiki.htrc.illinois.edu/display/COM/Solr+Proxy+API+User+Guide\n\nInstallation\n------------\n\nClone and install from this repository:\n```\ngit clone https://github.com/rlmv/hathitrust-api.git\ncd hathitrust-api\npython setup.py install\n```\n\nOr install directly using `pip`:\n```\npip install hathitrust-api\n```\n\nDataAPI\n-------\nThe Data API retrieves non-google public domain works from the HathiTrust.\n\nAn OAuth [keyset][kgs] from HathiTrust is required to use the Data API.\n\nExample usage:\n```\n>>> from hathitrust_api import DataAPI\n>>> data_api = DataAPI(your_oauth_key, your_oauth_secret)\n>>> ocrtext = data_api.getpageocr('nyp.33433082228226', 120)\n```\n\n[kgs]: http://babel.hathitrust.org/cgi/kgs/request\n\nBibAPI\n------\nThe bibliographic API delivers HathiTrust bibliographic data and MARC records in JSON format.\n\nExample:\n```\n>>> from hathitrust_api import BibAPI\n>>> bib_api = BibAPI()\n>>> bib_info = bib_api.get_single_record_json('htid', 'dul1.ark:/13960/t00z82c1q')\n>>> bib_info.keys()\n[u'records', u'items']\n>>> bib_info['records']['010944133']['publishDates']\n[u'1670']\n```\n\nSolrAPI\n-------\nThe HTRC Solr Proxy is a search index over the public domain collection.\n\n```\n>>> from hathitrust_api import SolrAPI\n>>> solr = SolrAPI()\n>>> results = solr.query(\"new zealand\", fields=['title'])\n>>> results\n{u'responseHeader': {u'status': 0, u'QTime': 19}, u'response': {u'start': 0, u'numFound': 366613, u'docs': [{u'title': [u'The statues of New Zealand ...']}, {u'title': [u'New Zealand.']}, {u'title': [u\"Wise's New Zealand index\"]}, {u'title': [u'Palaeontological bulletin.']}, {u'title': [u'New Zealand,']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}, {u'title': [u'The New Zealand official year-book.']}]}}\n```\n\nNeeded:\n------\n* Write test cases.\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/rlmv/hathitrust-api", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "hathitrust-api", "package_url": "https://pypi.org/project/hathitrust-api/", "platform": "", "project_url": "https://pypi.org/project/hathitrust-api/", "project_urls": { "Homepage": "https://github.com/rlmv/hathitrust-api" }, "release_url": "https://pypi.org/project/hathitrust-api/0.1.1/", "requires_dist": [ "requests", "requests-oauthlib" ], "requires_python": "", "summary": "Python wrappers for the HathiTrust APIs", "version": "0.1.1" }, "last_serial": 4023838, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "8eaee1c611142394e5cf4b0e4bd3ba14", "sha256": "e191369f05a31bf28360bf829cf6ea9cea4e3c1841c97d9a86bf3965676dc2f6" }, "downloads": -1, "filename": "hathitrust_api-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "8eaee1c611142394e5cf4b0e4bd3ba14", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7750, "upload_time": "2018-07-02T18:47:30", "url": "https://files.pythonhosted.org/packages/93/9f/d5091c4b997b1231de17b7de3138657c7370e7c00d3538ba90af0389e037/hathitrust_api-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3951cdc17aa64e5a06bb0668b0447c62", "sha256": "b9a9a579573088927f236f2e5b6dac93a2cb6d7da7fedbc51de225c618bee569" }, "downloads": -1, "filename": "hathitrust_api-0.1.0.tar.gz", "has_sig": false, "md5_digest": "3951cdc17aa64e5a06bb0668b0447c62", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6941, "upload_time": "2018-07-02T18:47:32", "url": "https://files.pythonhosted.org/packages/3f/bf/ab02873991174f5cbb88d170ce48958c32d536d180b1a87a56d5d897bfd6/hathitrust_api-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "da1babb6e24c6cd586436be34ea42b7b", "sha256": "a1fd1d97cff4eeb27feee0747b177d9d5ecfa4bc599039762124725d3c639059" }, "downloads": -1, "filename": "hathitrust_api-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "da1babb6e24c6cd586436be34ea42b7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7770, "upload_time": "2018-07-02T19:10:34", "url": "https://files.pythonhosted.org/packages/c5/8e/fc31f51f9e24d63627d899b168aef3f653139ed3d48f3c40d1e3d834553c/hathitrust_api-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edbf3d5fca6d0c2cc65e398fd5e1471d", "sha256": "ee9de3b2d77587b967355eeb1ebfafe70078607885a7af8a676644ab99b8e9d7" }, "downloads": -1, "filename": "hathitrust_api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "edbf3d5fca6d0c2cc65e398fd5e1471d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7057, "upload_time": "2018-07-02T19:10:35", "url": "https://files.pythonhosted.org/packages/31/38/f8ccae2e3e63813d875ff8d7c37db0983270f120204fe2a5d466b68b105d/hathitrust_api-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "da1babb6e24c6cd586436be34ea42b7b", "sha256": "a1fd1d97cff4eeb27feee0747b177d9d5ecfa4bc599039762124725d3c639059" }, "downloads": -1, "filename": "hathitrust_api-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "da1babb6e24c6cd586436be34ea42b7b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7770, "upload_time": "2018-07-02T19:10:34", "url": "https://files.pythonhosted.org/packages/c5/8e/fc31f51f9e24d63627d899b168aef3f653139ed3d48f3c40d1e3d834553c/hathitrust_api-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "edbf3d5fca6d0c2cc65e398fd5e1471d", "sha256": "ee9de3b2d77587b967355eeb1ebfafe70078607885a7af8a676644ab99b8e9d7" }, "downloads": -1, "filename": "hathitrust_api-0.1.1.tar.gz", "has_sig": false, "md5_digest": "edbf3d5fca6d0c2cc65e398fd5e1471d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7057, "upload_time": "2018-07-02T19:10:35", "url": "https://files.pythonhosted.org/packages/31/38/f8ccae2e3e63813d875ff8d7c37db0983270f120204fe2a5d466b68b105d/hathitrust_api-0.1.1.tar.gz" } ] }