{ "info": { "author": "John Reese", "author_email": "john@noswap.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Utilities" ], "description": "libseinfeld\n===========\n\nPython library for querying Seinfeld quotes.\n\nDepends on a database generated using `scripts by Colin Pollick`_.\n\n\nInstall\n-------\n\nlibseinfeld is compatible with Python 2.7 and Python 3.3+.\nYou can install it from PyPI with the following command::\n\n $ pip install seinfeld\n\nlibseinfeld requires a local copy of the Seinfeld quote database.\nYou can build it by following the instructions on the `seinfeld-scripts repo`_,\nor you can download a prebuilt copy with the following command::\n\n $ wget https://noswap.com/pub/seinfeld.db\n\n\nUsage\n-----\n\nFirst thing is to import libseinfeld and create a connection to the local\ndatabase::\n\n >>> from seinfeld import Seinfeld\n >>> seinfeld = Seinfeld()\n\nTo get information on individual episodes or seasons::\n\n >>> seinfeld.season(1).episodes.keys()\n [1, 2, 3, 4]\n\n >>> seinfeld.season(1).episodes[1].title\n u'Good News, Bad News'\n\n >>> seinfeld.season(1).episodes[1].writers[0]\n u'Jerry Seinfeld'\n\n >>> seinfeld.season(1).episodes[1].date\n datetime.date(1990, 6, 14)\n\nQuotes can be retrieved by unique ID::\n\n >>> quote = seinfeld.quote(34665)\n >>> quote.text\n u'The show is about nothing.'\n\n >>> quote.speaker.name\n u'George'\n\n >>> quote.episode.title\n u'The Pitch'\n\nSearching for quotes is simple::\n\n >>> seinfeld.search(speaker='Jerry', subject='keys')\n [Quote(...), ...]\n\nSearches are limited to ten quotes by default, but you can get more or less.\nTo get all the quotes, in order, for a given episode::\n\n >>> episode = seinfeld.season(1).episodes[1]\n >>> quotes = seinfeld.search(episode=episode, limit=None)\n >>> len(quotes)\n 209\n\nYou can even get random quotes by search query::\n\n >>> seinfeld.random(speaker='George')\n Quote(...)\n\nIf you'd like context around an individual quote, you can get a passage::\n\n >>> passage = seinfeld.passage(quote)\n >>> len(passage.quotes)\n 5\n\n\nLicense\n-------\n\nCopyright 2016 John Reese, and licensed under the MIT license.\nSee the ``LICENSE`` file for details.\n\n.. _scripts by Colin Pollick: https://github.com/colinpollock/seinfeld-scripts\n.. _seinfeld-scripts repo: https://github.com/colinpollock/seinfeld-scripts\n", "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/jreese/libseinfeld", "keywords": null, "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "seinfeld", "package_url": "https://pypi.org/project/seinfeld/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/seinfeld/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/jreese/libseinfeld" }, "release_url": "https://pypi.org/project/seinfeld/1.0.1/", "requires_dist": null, "requires_python": null, "summary": "Query a Seinfeld quote database", "version": "1.0.1" }, "last_serial": 1908168, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d52005f4a632e3ee01de09160699a967", "sha256": "0e698151e856958e43265819af2f6de23e9b4e00074aee80c204416338e69ea8" }, "downloads": -1, "filename": "seinfeld-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d52005f4a632e3ee01de09160699a967", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3470, "upload_time": "2016-01-17T06:27:23", "url": "https://files.pythonhosted.org/packages/52/f6/5032143919f13974cb753f0a248b0293e09e82082a2e7f6174be7941eadc/seinfeld-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "7dd459967b7a77302e4358fdf48d2d1f", "sha256": "e7eb7f7b33b450feb3e1dc44b156a5d51f69c6a61e04c7ed50f17ec6a1224ca0" }, "downloads": -1, "filename": "seinfeld-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7dd459967b7a77302e4358fdf48d2d1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5010, "upload_time": "2016-01-17T07:22:44", "url": "https://files.pythonhosted.org/packages/a5/29/f9220bb0539b0a86563be8bef9eabac253fbdada5873e605faf409a9e3b1/seinfeld-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7dd459967b7a77302e4358fdf48d2d1f", "sha256": "e7eb7f7b33b450feb3e1dc44b156a5d51f69c6a61e04c7ed50f17ec6a1224ca0" }, "downloads": -1, "filename": "seinfeld-1.0.1.tar.gz", "has_sig": false, "md5_digest": "7dd459967b7a77302e4358fdf48d2d1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5010, "upload_time": "2016-01-17T07:22:44", "url": "https://files.pythonhosted.org/packages/a5/29/f9220bb0539b0a86563be8bef9eabac253fbdada5873e605faf409a9e3b1/seinfeld-1.0.1.tar.gz" } ] }