{ "info": { "author": "Paul Hallett", "author_email": "paulandrewhallett@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 2 - Pre-Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Natural Language :: English", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4" ], "description": "===============================\nswapi-python\n===============================\n\n.. image:: https://badge.fury.io/py/swapi.png\n :target: http://badge.fury.io/py/swapi\n\n.. image:: https://travis-ci.org/phalt/swapi-python.png?branch=master\n :target: https://travis-ci.org/phalt/swapi-python\n\n.. image:: https://pypip.in/d/swapi/badge.png\n :target: https://pypi.python.org/pypi/swapi\n\n\nA Python helper library for swapi.co - the Star Wars API\n\n* Free software: BSD license\n* Documentation: https://swapi-python.readthedocs.org.\n\n============\nInstallation\n============\n\nAt the command line::\n\n $ pip install swapi\n\nBasic Usage\n========\n\nTo use swapi-python in a project::\n\n import swapi\n\nAll resources are accessible through the top-level ``get_resource()`` methods::\n\n luke = swapi.get_person(1)\n tatooine = swapi.get_planet(1)\n\nMethods\n=======\n\nThese are the top-level methods you can use to get resources from swapi.co. To learn more about the models and objects that are returned, see the ``models`` page.\n\nget_person(id)\n------------\n\nReturn a single ``Person`` resource.\n\nExample::\n\n swapi.get_person(1)\n >>> \n\n\nget_planet(id)\n------------\n\nReturn a single ``Planet`` resource.\n\nExample::\n\n swapi.get_planet(1)\n >>> \n\n\nget_starship(id)\n------------\n\nReturn a single ``Starship`` resource.\n\nExample::\n\n swapi.get_starship(6)\n >>> \n\n\nget_vehicle(id)\n------------\n\nReturn a single ``Vehicle`` resource.\n\nExample::\n\n swapi.get_vehicle(4)\n >>> \n\n\nget_film(id)\n------------\n\nReturn a single ``Film`` resource.\n\nExample::\n\n swapi.get_film(1)\n >>> \n\n\nget_all(\"resource\")\n------------\n\nReturn a ``QuerySet`` containing all the items in a single resource. See the ```models``` page for more information on the models used in swapi-python.\n\nExample::\n\n swapi.get_all(\"films\")\n >>> \n\n\n\n\nHistory\n-------\n\n0.1.0 (2014-12-21)\n---------------------\n\n* First release on PyPI.\n\n\n0.1.2 (2014-12-22)\n------------------\n\n* Python 3.3 and Python 3.4 compatability\n\n\n0.1.3 (2014-12-22)\n-------------------\n\n* Add \"swapi-python\" to User-Agent to help with analytics", "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/phalt/swapi-python", "keywords": "swapi", "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "swapi", "package_url": "https://pypi.org/project/swapi/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/swapi/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/phalt/swapi-python" }, "release_url": "https://pypi.org/project/swapi/0.1.3/", "requires_dist": null, "requires_python": null, "summary": "A Python helper library for swapi.co - the Star Wars API", "version": "0.1.3" }, "last_serial": 1358062, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "9fe6c8706844d9c139660dfcd00b8780", "sha256": "0f547ab39a82cc4024a8b576090294a6ff82847fe31673b1284be1a81212f4c5" }, "downloads": -1, "filename": "swapi-0.1.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "9fe6c8706844d9c139660dfcd00b8780", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6920, "upload_time": "2014-12-21T19:45:27", "url": "https://files.pythonhosted.org/packages/53/ae/faa9df15554c75d8386530d68104adb25ed6660d49362196f9fa919565ee/swapi-0.1.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6c8cb6a7433c11cbeeee15c8e2f0280c", "sha256": "a653ad3583542f5b2be3d2fe6f9e57e3dd3366b4414ab9e1148ea2cec6aaddcb" }, "downloads": -1, "filename": "swapi-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6c8cb6a7433c11cbeeee15c8e2f0280c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15591, "upload_time": "2014-12-21T19:45:24", "url": "https://files.pythonhosted.org/packages/ae/59/017a5bcf280abced31daf26351e5e21a86e36f0392757dbed94a91b10f20/swapi-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "fb1a81530b493bc95aa86161ac2d63e3", "sha256": "cc69411c811a1788856dfb643558cea6e00ce6d6844396b08186a7eacd8fcc61" }, "downloads": -1, "filename": "swapi-0.1.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "fb1a81530b493bc95aa86161ac2d63e3", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 6918, "upload_time": "2014-12-21T20:19:45", "url": "https://files.pythonhosted.org/packages/b9/92/029cc1a493ecab490580d77e579dd9730590cfe8fadd41e645f7ae1b6821/swapi-0.1.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c53c23afd2886b5391379f694889299", "sha256": "b43b971060dfa52fc6c18890801558ecaacac9223b6df042cee2c89e2aff09b8" }, "downloads": -1, "filename": "swapi-0.1.1.tar.gz", "has_sig": false, "md5_digest": "2c53c23afd2886b5391379f694889299", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15582, "upload_time": "2014-12-21T20:19:41", "url": "https://files.pythonhosted.org/packages/03/96/9165df8f62bce8fd3fc63e48ac10e2f5db0f20a40757d01d9c4b04a3bce7/swapi-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "f1157e81d2fe91824ede3180e9fc7d12", "sha256": "037a112504832a512ff37f11157bb376449c9bb258a261cde8b0de4298e95af5" }, "downloads": -1, "filename": "swapi-0.1.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "f1157e81d2fe91824ede3180e9fc7d12", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7027, "upload_time": "2014-12-22T10:43:23", "url": "https://files.pythonhosted.org/packages/4b/5c/9a9255d23e4ba4543f26f9879191b4e39d7a8d7a2f16096592997b0d0687/swapi-0.1.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "9c581f5353368d23716bafdd4a82e678", "sha256": "73e9ff146cccf3aee3e4ce5e7de82e4a25263dac53aebd0d4b2bb563121a58c8" }, "downloads": -1, "filename": "swapi-0.1.2.tar.gz", "has_sig": false, "md5_digest": "9c581f5353368d23716bafdd4a82e678", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15622, "upload_time": "2014-12-22T10:43:21", "url": "https://files.pythonhosted.org/packages/82/18/9275defcd44a991ef1df8971827eafa9ff0538484cb5110ef682afc82dcb/swapi-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "c478de3ddba478c27ce32251559f07cd", "sha256": "97fe63f53a71cdb2b9ec66392051d8633f5bd596613bc463e2ce890cf22de129" }, "downloads": -1, "filename": "swapi-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c478de3ddba478c27ce32251559f07cd", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7153, "upload_time": "2014-12-22T23:28:32", "url": "https://files.pythonhosted.org/packages/81/be/f8522ef8c7145309dfddb19376f486d3afc2ad1f09b65b22d5bf14d091ce/swapi-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d4c9a81fc736e1dbae3f3000d9f40cc", "sha256": "e65b7d1a61cb074487c0760363b6796449286c9b3d5cbe47e8ecf467b20dd3fc" }, "downloads": -1, "filename": "swapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0d4c9a81fc736e1dbae3f3000d9f40cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15696, "upload_time": "2014-12-22T23:28:15", "url": "https://files.pythonhosted.org/packages/42/04/f6083222f3e5807595b92b6f6889a56ea1e7cab7bf1a10f10aa72d4697ae/swapi-0.1.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "c478de3ddba478c27ce32251559f07cd", "sha256": "97fe63f53a71cdb2b9ec66392051d8633f5bd596613bc463e2ce890cf22de129" }, "downloads": -1, "filename": "swapi-0.1.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c478de3ddba478c27ce32251559f07cd", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 7153, "upload_time": "2014-12-22T23:28:32", "url": "https://files.pythonhosted.org/packages/81/be/f8522ef8c7145309dfddb19376f486d3afc2ad1f09b65b22d5bf14d091ce/swapi-0.1.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "0d4c9a81fc736e1dbae3f3000d9f40cc", "sha256": "e65b7d1a61cb074487c0760363b6796449286c9b3d5cbe47e8ecf467b20dd3fc" }, "downloads": -1, "filename": "swapi-0.1.3.tar.gz", "has_sig": false, "md5_digest": "0d4c9a81fc736e1dbae3f3000d9f40cc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 15696, "upload_time": "2014-12-22T23:28:15", "url": "https://files.pythonhosted.org/packages/42/04/f6083222f3e5807595b92b6f6889a56ea1e7cab7bf1a10f10aa72d4697ae/swapi-0.1.3.tar.gz" } ] }