{ "info": { "author": "Dennis Lutter", "author_email": "lad1337@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: MacOS :: MacOS X", "Operating System :: POSIX :: Linux", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Topic :: Software Development :: Libraries" ], "description": "EasyTrakt\n=========\n\n|alt travis build| |alt codecov| |alt pypi version| |alt requires| |alt pypi\ndownloads|\n\ninstall\n-------\n\n.. code:: python\n\n pip install easytrakt\n\nuse\n---\n\n.. code:: python\n\n from easytrakt import Client\n client = Client()\n search_results = client.search(\"The Big Lebowski\")\n movie = search_results[0]\n assert movie.title == \"The Big Lebowski\"\n\nwith OAuth you need a session with a token this libary does not take\ncare of OAuth authentcation but can use a ``OAuth2Session`` from\n``requests_oauthlib``\n\n.. code:: python\n\n # you get this stuff from the oauth process\n token = {\n \"access_token\": \"\",\n \"created_at\": 1433447370,\n \"expires_in\": 7776000,\n \"expires_at\": 1441223370.73398,\n \"token_type\": \"bearer\",\n \"scope\": [\"public\"],\n \"refresh_token\": \"\"\n }\n from requests_oauthlib import OAuth2Session\n session = OAuth2Session(your_app_client_id, token=token)\n\n from easytrakt import Client\n client = Client(session)\n search_results = client.shows(\"Dexter\")\n show = search_results[0]\n assert show.title == \"Dexter\"\n # all ids are behind 'ids'\n assert show.ids.trakt == 1396\n # the trakt id has a short version\n assert show.ids.trakt == show.trakt\n # for a show/movie it's also the .id\n assert show.trakt == show.id\n\n # or if you have the trakt id\n from easytrakt.models import Show\n # still need a client ...\n dexter = Show(client, 1396)\n for season in dexter.seasons:\n print season.number\n print season.images.poster.medium\n for episode in season.episodes:\n print episode.number\n print epidode.title\n print episode.first_air_date\n print episode.images.screenshot.full\n\nevery attribute is build dynamically, to get all keys on the current\nlevel call ``.keys()`` of any model class\n\n.. |alt travis build| image:: https://img.shields.io/travis/lad1337/easytrakt.svg\n.. |alt codecov| image:: https://img.shields.io/codecov/c/github/lad1337/easytrakt.svg\n.. |alt pypi version| image:: https://img.shields.io/pypi/v/easytrakt.svg\n.. |alt requires| image:: https://img.shields.io/requires/github/lad1337/easytrakt.svg\n.. |alt pypi downloads| image:: https://img.shields.io/pypi/dm/easytrakt.svg", "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/lad1337/easytrakt", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "easytrakt", "package_url": "https://pypi.org/project/easytrakt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/easytrakt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/lad1337/easytrakt" }, "release_url": "https://pypi.org/project/easytrakt/0.1.6/", "requires_dist": null, "requires_python": null, "summary": "simple client for Trakt.TV api", "version": "0.1.6" }, "last_serial": 1588582, "releases": { "0.1.1": [], "0.1.2": [ { "comment_text": "", "digests": { "md5": "de35996e784fd53ab5273767da0f94f5", "sha256": "33bc73dc70a1fae9fe2b79babb37f20210498d9a955e3c7d4ded864060d14dd5" }, "downloads": -1, "filename": "easytrakt-0.1.2.tar.gz", "has_sig": false, "md5_digest": "de35996e784fd53ab5273767da0f94f5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8210, "upload_time": "2015-06-06T02:09:30", "url": "https://files.pythonhosted.org/packages/65/11/121845d5f715dbbe47460065d47706972c6ea726b3edbc6f0ae45ce2d115/easytrakt-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "65109aa08f072493cf3d59303921ca6b", "sha256": "3308bc7e09ff5e87ccc93454e73a653b5b8dcce911b846fea4bc0afa7116b0f8" }, "downloads": -1, "filename": "easytrakt-0.1.3.tar.gz", "has_sig": false, "md5_digest": "65109aa08f072493cf3d59303921ca6b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8466, "upload_time": "2015-06-06T02:40:00", "url": "https://files.pythonhosted.org/packages/86/97/47862fbc4d9de5fbeb5efeef07685e9671bfd23422148b54ca4595ad0c8e/easytrakt-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "cadb33ef1cc78a90553752d92f9e28f6", "sha256": "7989bef50f3c6a02f624d47d9e7c548117b8779d9ea3d923250a2f3ff7b50e3c" }, "downloads": -1, "filename": "easytrakt-0.1.4.tar.gz", "has_sig": false, "md5_digest": "cadb33ef1cc78a90553752d92f9e28f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8843, "upload_time": "2015-06-06T03:32:37", "url": "https://files.pythonhosted.org/packages/ea/2b/b993a2c855c6b9e550d46df113a5d051443cf12d9d40ec65d9bac44fac33/easytrakt-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "825531b6f929040184b37979af504a1f", "sha256": "45047abcc9cb331ab7077327a0cfe12567e3c499748b9acb53d045d803c79adc" }, "downloads": -1, "filename": "easytrakt-0.1.5.tar.gz", "has_sig": false, "md5_digest": "825531b6f929040184b37979af504a1f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10185, "upload_time": "2015-06-10T00:07:12", "url": "https://files.pythonhosted.org/packages/f2/3f/9215cadc3638b028a9464f25350ee7ec8006b56d59379da8a7ceabd9f125/easytrakt-0.1.5.tar.gz" } ], "0.1.6": [ { "comment_text": "", "digests": { "md5": "75758d089fea1e711fc408e9647e3dc8", "sha256": "871323f2af850c56d464f9211035ae4592662cc6acfa6a459b5860f06032d838" }, "downloads": -1, "filename": "easytrakt-0.1.6.tar.gz", "has_sig": false, "md5_digest": "75758d089fea1e711fc408e9647e3dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10251, "upload_time": "2015-06-11T20:27:56", "url": "https://files.pythonhosted.org/packages/68/51/689a8faca3d653b32fa91005801be6977a4f98ba1edade27aa07efb226f2/easytrakt-0.1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75758d089fea1e711fc408e9647e3dc8", "sha256": "871323f2af850c56d464f9211035ae4592662cc6acfa6a459b5860f06032d838" }, "downloads": -1, "filename": "easytrakt-0.1.6.tar.gz", "has_sig": false, "md5_digest": "75758d089fea1e711fc408e9647e3dc8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 10251, "upload_time": "2015-06-11T20:27:56", "url": "https://files.pythonhosted.org/packages/68/51/689a8faca3d653b32fa91005801be6977a4f98ba1edade27aa07efb226f2/easytrakt-0.1.6.tar.gz" } ] }