{ "info": { "author": "Jiayu Yi", "author_email": "yijiayu@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3.7" ], "description": ".. nlbsg documentation master file, created by\n sphinx-quickstart on Mon Apr 1 15:29:49 2019.\n You can adapt this file completely to your liking, but it should at least\n contain the root `toctree` directive.\n\nWelcome to nlbsg's documentation!\n=================================\n\n.. image:: https://travis-ci.com/yi-jiayu/nlbsg.svg?branch=master\n :target: https://travis-ci.com/yi-jiayu/nlbsg\n\n.. image:: https://codecov.io/gh/yi-jiayu/nlbsg/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/yi-jiayu/nlbsg\n\n.. image:: https://img.shields.io/pypi/v/nlbsg.svg\n :target: https://pypi.org/project/nlbsg/\n :alt: PyPI\n\n.. image:: https://img.shields.io/pypi/pyversions/nlbsg.svg\n :target: https://pypi.org/project/nlbsg/\n :alt: PyPI - Python Version\n\n.. image:: https://readthedocs.org/projects/nlbsg/badge/?version=latest\n :target: https://nlbsg.readthedocs.io/en/latest/?badge=latest\n :alt: Documentation Status\n\nPython wrapper for the `NLB Open Web Services `_.\n\nCurrently supports the `Catalogue Service `_.\n\nInstallation\n------------\n\n::\n\n pip install nlbsg\n\nUsage example\n-------------\n\nCreating a client::\n\n from nlbsg import Client\n from nlbsg.catalogue import STAGING_URL\n\n API_KEY = 'secret_api_key'\n\n client = Client(STAGING_URL, API_KEY)\n\nSearching the catalogue::\n\n >>> from nlbsg import MediaCode\n >>> results = client.search('lord of the rings', author='tolkien', media_code=MediaCode.BOOKS, limit=3)\n >>> for title in results.titles:\n ... print(f'Title: {title.title_name}\\nISBN: {title.isbn}\\nPublished: {title.publish_year}\\n')\n ...\n Title: Beren and Lu\u0301thien / by J.R.R. Tolkien ; edited by Christopher Tolkien ; with illustrations by Alan Lee.\n ISBN: 1328915336 (paperback)\n Published: 2018\n\n Title: Beren and l\u2117\u266d\u00a9\u02bbthien [electronic resource]. J. R. R Tolkien.\n ISBN: 9780008214210 (electronic bk)\n Published: 2017\n\n Title: The fall of arthur [electronic resource]. J. R. R Tolkien.\n ISBN: 9780007489954 (electronic bk)\n Published: 2013\n\nGetting title details::\n\n >>> details = client.get_title_details(isbn='1328915336')\n >>> details.title_detail.summary\n \"The epic tale of Beren and Lu\u0301thien became an essential element in the evolution of The Silmarillion, the myths and legends of J.R.R. Tolkien's First Age of the World. Always key to the story is the fate that shadowed their love: Beren was a mortal man, Lu\u0301thien an immortal Elf. Her father, a great Elvish lord, imposed on Beren an impossible task before he might wed Lu\u0301thien: to rob the greatest of all evil beings, Melkor, of a Silmaril.Painstakingly restored from Tolkien's manuscripts and presented for the first time as a continuous and standalone story, Beren and Lu\u0301thien reunites fans of The Hobbit and The Lord of the Rings with Elves and Men, along with the rich landscape and creatures unique to Tolkien's Middle-earth. Christopher Tolkien tells the story in his father's own words by giving its original form as well as prose and verse passages from later texts that illustrate the narrative as it changed. -- from back cover.\"\n\nGetting title availability::\n\n >>> availability = client.get_availability_info(isbn='1328915336')\n >>> for item in availability.items:\n ... print(f'Branch: {item.branch_name}\\nStatus: {item.status_desc}\\n')\n ...\n Branch: Ang Mo Kio Public Library\n Status: Not On Loan\n\n Branch: Bukit Batok Public Library\n Status: On Loan\n\n Branch: Bedok Public Library\n Status: On Loan\n\n Branch: Bishan Public Library\n Status: Not On Loan\n\n Branch: Bukit Panjang Public Library\n Status: Not On Loan\n\n Branch: Choa Chu Kang Public Library\n Status: On Loan\n\n Branch: Central Public Library\n Status: Not On Loan\n\n Branch: Clementi Public Library\n Status: On Loan\n\n Branch: Cheng San Public Library\n Status: On Loan\n\n Branch: Geylang East Public Library\n Status: Not On Loan\n\n\n", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yi-jiayu/nlbsg", "keywords": "", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "nlbsg", "package_url": "https://pypi.org/project/nlbsg/", "platform": "", "project_url": "https://pypi.org/project/nlbsg/", "project_urls": { "Builds": "https://travis-ci.com/yi-jiayu/nlbsg", "Coverage": "https://codecov.io/gh/yi-jiayu/nlbsg", "Documentation": "https://nlbsg.readthedocs.io/en/latest/", "Homepage": "https://github.com/yi-jiayu/nlbsg", "Source code": "https://github.com/yi-jiayu/nlbsg" }, "release_url": "https://pypi.org/project/nlbsg/0.5.0/", "requires_dist": [ "zeep" ], "requires_python": ">=3.7", "summary": "Python SDK for the NLB Open Web Services", "version": "0.5.0" }, "last_serial": 5173185, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "11df941fcfb259af1245d63278483379", "sha256": "61027c314974698c7d5bd2fdfc27ad514f86206c98976d873c7b7cce8b47a104" }, "downloads": -1, "filename": "nlbsg-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "11df941fcfb259af1245d63278483379", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 5089, "upload_time": "2019-04-01T13:18:53", "url": "https://files.pythonhosted.org/packages/c1/b7/bdd66ea1f671dc36e40edf0ae46d9639b12b44047cbf4d66b34398128279/nlbsg-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a1dd28bf094e4d6f436e2e8ff7982a82", "sha256": "35a21d630508ded33047f29edac35d3fd7a28803738ff60e173b6aad3ffea772" }, "downloads": -1, "filename": "nlbsg-0.1.1.tar.gz", "has_sig": false, "md5_digest": "a1dd28bf094e4d6f436e2e8ff7982a82", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4710, "upload_time": "2019-04-01T13:18:55", "url": "https://files.pythonhosted.org/packages/65/ca/1d21b96b7aa0b670d923c209356403858878e0705631aa21ee3a2043487e/nlbsg-0.1.1.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "579dca6679ab7269aae996996c22405e", "sha256": "42607659340a21f33420d985e4ffb1c50678c8d7c3c29615f0ed821b8557523d" }, "downloads": -1, "filename": "nlbsg-0.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "579dca6679ab7269aae996996c22405e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5293, "upload_time": "2019-04-01T14:34:02", "url": "https://files.pythonhosted.org/packages/be/03/a6a2767df511f49efc0599e384695ff0a1db4054098b75bacaf591d320b7/nlbsg-0.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "159189f5caaa1396dcb6106927cd9d8e", "sha256": "a7c291fdf2fecce61a3bb25ebdec018d1b79a953a4f5ccd426e6db6c76482aa3" }, "downloads": -1, "filename": "nlbsg-0.2.0.tar.gz", "has_sig": false, "md5_digest": "159189f5caaa1396dcb6106927cd9d8e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4925, "upload_time": "2019-04-01T14:34:04", "url": "https://files.pythonhosted.org/packages/f6/45/0318864b4b9214c871af662a20055be6f60dd98ab21f6ffdc3aa345b33ab/nlbsg-0.2.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "6582e785c7d1cfe1c074cbb9230e6396", "sha256": "558dc2eab398befb9dcb52ca4bc7c5e28bf1475192b42cf0cfab61c33213cb7a" }, "downloads": -1, "filename": "nlbsg-0.3.1-py3-none-any.whl", "has_sig": false, "md5_digest": "6582e785c7d1cfe1c074cbb9230e6396", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 6882, "upload_time": "2019-04-01T16:20:39", "url": "https://files.pythonhosted.org/packages/e2/d3/90f9e9cd83e76b69d2ed6341ae51e2d7d4af2c28fee821fe495e644af8fe/nlbsg-0.3.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "381301874a4942804314d8162c67a7d1", "sha256": "9316f52c74d361a30f29fda77ca4b1d4bbd7d80824ab07822e289ede2feda0bf" }, "downloads": -1, "filename": "nlbsg-0.3.1.tar.gz", "has_sig": false, "md5_digest": "381301874a4942804314d8162c67a7d1", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 6041, "upload_time": "2019-04-01T16:20:40", "url": "https://files.pythonhosted.org/packages/f0/d0/ccb04ab219a845bdb0afdb3e78a6bc2afa16d0ef7af4c69ba0609ae439ab/nlbsg-0.3.1.tar.gz" } ], "0.3.4": [ { "comment_text": "", "digests": { "md5": "03f805a6a2549e6ce750fb9cce6ceb9d", "sha256": "f2236894a2ebcd67c8400a5bc9e094ab471d5da10d803e15725b73edc041427a" }, "downloads": -1, "filename": "nlbsg-0.3.4-py2-none-any.whl", "has_sig": false, "md5_digest": "03f805a6a2549e6ce750fb9cce6ceb9d", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=3.7", "size": 9278, "upload_time": "2019-04-03T03:02:06", "url": "https://files.pythonhosted.org/packages/7d/ee/7ef769c53e1f9e27305a68a9429ed8bebd6dd63adda12c030dceb64512fb/nlbsg-0.3.4-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "4943cc2b5b488b1754865b330f50ada8", "sha256": "3deeee331f202c7f5a571ed76f3812dcd486b206b6e833403eccf3933eb25ac8" }, "downloads": -1, "filename": "nlbsg-0.3.4.tar.gz", "has_sig": false, "md5_digest": "4943cc2b5b488b1754865b330f50ada8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 8427, "upload_time": "2019-04-03T03:02:08", "url": "https://files.pythonhosted.org/packages/26/0b/35c2542c79e975fce21533029fbd6bdadf4b7d268fceec5ee87fbd6b2aa4/nlbsg-0.3.4.tar.gz" } ], "0.3.5": [ { "comment_text": "", "digests": { "md5": "6d2044f6f51663b3b76398e1457a0271", "sha256": "0308f7b37943ac8dd60515e8f21e159a44fff4a9d648efb0a2e72a9f47da35de" }, "downloads": -1, "filename": "nlbsg-0.3.5-py3-none-any.whl", "has_sig": false, "md5_digest": "6d2044f6f51663b3b76398e1457a0271", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 10155, "upload_time": "2019-04-03T06:37:37", "url": "https://files.pythonhosted.org/packages/08/ed/5c0d1cb0e7e8453149b6d764a7a57b579a1575200239292743afbf12b886/nlbsg-0.3.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f56a125099e10b4dd041b529a2db5b6c", "sha256": "fb3f6f05950d6dd2ea5d30f0f870dfcf980bb766791114e7e34438a2934c6f62" }, "downloads": -1, "filename": "nlbsg-0.3.5.tar.gz", "has_sig": false, "md5_digest": "f56a125099e10b4dd041b529a2db5b6c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 8552, "upload_time": "2019-04-03T06:37:39", "url": "https://files.pythonhosted.org/packages/11/83/d26b57c3ef124adf063e2318448856dab32c7fe06414733d55d2719f461a/nlbsg-0.3.5.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "0f5b3d293e782657523ef119b62653c9", "sha256": "a2beca6fd3142348e3c82db4b842df46e6be5fe3957be60c7bd076f840098742" }, "downloads": -1, "filename": "nlbsg-0.4.0-py3-none-any.whl", "has_sig": false, "md5_digest": "0f5b3d293e782657523ef119b62653c9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 12105, "upload_time": "2019-04-11T02:09:52", "url": "https://files.pythonhosted.org/packages/fd/0c/ae3e395262bc402614ce00bc04cc6ed47fccafbd14b89bb8383b884f253e/nlbsg-0.4.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "953f59e8c97858975bd040eb0486e27a", "sha256": "34e5a4f6e57c01b5af55cbb053e9c2ae63da50ac7d2d09de1e1c98399b8880e0" }, "downloads": -1, "filename": "nlbsg-0.4.0.tar.gz", "has_sig": false, "md5_digest": "953f59e8c97858975bd040eb0486e27a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 9017, "upload_time": "2019-04-11T02:09:54", "url": "https://files.pythonhosted.org/packages/93/96/ac0de7fcbb3b67a63ad4aeb451b5f7e429afdd562cd6bb9f4640a29f9098/nlbsg-0.4.0.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "a754be089e67b8f86ade407bc4a92f63", "sha256": "7034de6fd2d40e769165d2e32c6dbb76fd6f50ceb84839e32a1d675549728272" }, "downloads": -1, "filename": "nlbsg-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a754be089e67b8f86ade407bc4a92f63", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 12173, "upload_time": "2019-04-22T14:39:14", "url": "https://files.pythonhosted.org/packages/fc/9c/2c87738cead61aba3b13a16daea506cf5df701c46ea0e566ba7ae05924fd/nlbsg-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1306adc866a0cbb9746d750b4f8483ed", "sha256": "a9fa245ed22cbcd564742149d5c627b8cf617cf4def8168f1ad8ce7e1d881ab9" }, "downloads": -1, "filename": "nlbsg-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1306adc866a0cbb9746d750b4f8483ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 9054, "upload_time": "2019-04-22T14:39:16", "url": "https://files.pythonhosted.org/packages/48/e2/868df8a9ca8dd60667f29d8c87199cd2d699d119a15410ab8bc91367c0a2/nlbsg-0.5.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a754be089e67b8f86ade407bc4a92f63", "sha256": "7034de6fd2d40e769165d2e32c6dbb76fd6f50ceb84839e32a1d675549728272" }, "downloads": -1, "filename": "nlbsg-0.5.0-py3-none-any.whl", "has_sig": false, "md5_digest": "a754be089e67b8f86ade407bc4a92f63", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.7", "size": 12173, "upload_time": "2019-04-22T14:39:14", "url": "https://files.pythonhosted.org/packages/fc/9c/2c87738cead61aba3b13a16daea506cf5df701c46ea0e566ba7ae05924fd/nlbsg-0.5.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1306adc866a0cbb9746d750b4f8483ed", "sha256": "a9fa245ed22cbcd564742149d5c627b8cf617cf4def8168f1ad8ce7e1d881ab9" }, "downloads": -1, "filename": "nlbsg-0.5.0.tar.gz", "has_sig": false, "md5_digest": "1306adc866a0cbb9746d750b4f8483ed", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.7", "size": 9054, "upload_time": "2019-04-22T14:39:16", "url": "https://files.pythonhosted.org/packages/48/e2/868df8a9ca8dd60667f29d8c87199cd2d699d119a15410ab8bc91367c0a2/nlbsg-0.5.0.tar.gz" } ] }