PyTrakt
=======
.. image:: https://github.com/glensc/python-pytrakt/actions/workflows/test.yml/badge.svg
:target: https://github.com/glensc/python-pytrakt/actions
:alt: CI Status
.. image:: https://img.shields.io/pypi/dm/pytrakt.svg
:target: https://pypi.org/project/pytrakt/
:alt: Downloads
.. image:: https://img.shields.io/pypi/l/pytrakt.svg
:target: https://pypi.org/project/pytrakt/
:alt: License
This module is designed to be a Pythonic interface to the `Trakt.tv <http://trakt.tv>`_.
REST API. The official documentation for which can be found `here <http://docs.trakt.apiary.io/#>`_.
trakt contains interfaces to all of the Trakt.tv functionality in an, ideally, easily
scriptable fashion. For more information on this module's contents and example usages
please see the `PyTrakt docs <https://glensc.github.io/python-pytrakt/>`_.
More information about getting started and accessing the information you thirst for
can be found throughout the documentation below.
Installation
------------
There are two ways through which you can install trakt
Install Via Pip
^^^^^^^^^^^^^^^
To install with `pip <http://www.pip-installer.org/>`_, just run this in your terminal::
$ pip install pytrakt
Get the code
^^^^^^^^^^^^
trakt is available on `GitHub <https://github.com/glensc/python-pytrakt>`_.
You can either clone the public repository::
$ git clone git://github.com/glensc/python-pytrakt.git
Download the `tarball <https://github.com/glensc/python-pytrakt/tarball/main>`_::
$ curl -OL https://github.com/glensc/python-pytrakt/tarball/main
Or, download the `zipball <https://github.com/glensc/python-pytrakt/zipball/main>`_::
$ curl -OL https://github.com/glensc/python-pytrakt/zipball/main
Once you have a copy of the source, you can embed it in your Python package,
or install it into your site-packages easily::
$ python setup.py install
Contributing
------------
Pull requests are graciously accepted. Any pull request should not break any tests
and should pass `flake8` style checks (unless otherwise warranted). Additionally
the user opening the Pull Request should ensure that their username and a link to
their GitHub page appears in `CONTRIBUTORS.md <https://github.com/glensc/python-pytrakt/blob/main/CONTRIBUTORS.md>`_.
TODO
----
The following lists define the known functionality provided by the Trakt.tv API
which this module does not yet have support for. The current plan is that
support for the following features will be added over time. As always, if you
would like a feature added sooner rather than later, pull requests are most
definitely appreciated.
High Level API Features
^^^^^^^^^^^^^^^^^^^^^^^
- Pagination
Sync
^^^^
- Create a comment class to facilitate
- returning an instance when a comment is created, instead of None
- add ability to update and delete comments
Movies
^^^^^^
- movies/popular
- movies/played/{time_period}
- movies/watched/{time_period}
- movies/collected/{time_period}
- movies/anticipated
- movies/boxoffice
- movies/{slug}/stats
Shows
^^^^^
- Played
- Watched
- Collected
- Anticipated
- Collection Progress
- Watched Progress
- Stats
Seasons
^^^^^^^
- extended
- images
- episodes
- full
- stats
Episodes
^^^^^^^^
- stats
Users
^^^^^
- hidden everything
- likes
- comments
- comments
- UserList
- comments
- history
- watchlists
- seasons
- episodes
Release History
^^^^^^^^^^^^^^^
3.4.0 (2022-01-11)
+++++++++++++++++++
* Config boostrapping now occurs at runtime rather than load time @glensc (#162)
* Unit tests can now be run from any working directory @glensc (#170)
* Code cleanup - removed unused imports and superfluous parens from some yield statements @glensc (#171)
3.3.0 (2022-01-07)
+++++++++++++++++++
* Add LockedUserAccountException support @glensc (#163)
* Add ids property to People objects @thechicacode (#135)
3.2.2 (2021-10-26)
+++++++++++++++++++
* Fix an issue where the show of a TVEpisode was not always set properly @twolaw (#157)
3.2.1 (2021-08-08)
+++++++++++++++++++
* Fix an issue when accessing the `seasons` property of a `TVShow` instance whose slug requires a year
3.2.0 (2021-06-21)
+++++++++++++++++++
* Add global `session` instance which will allow clients to override requests behavior (#151)
3.1.0 (2021-04-10)
+++++++++++++++++++
* Add MethodNotAllowedException for 405 status codes (#141)
* Ensure CI commands use python3 (#142)
3.0.0 (2021-03-16)
+++++++++++++++++++
* Drop python 2 support + update dependencies (#137)
* Drop Travis CI in favor of CircleCI (#137)
* Update in-code documentation to match existing APIs (#137)
* Include response information in raised TraktExceptions @twolaw (#138)
2.15.0 (2021-01-31)
+++++++++++++++++++
* Add documentation for the sync module @p0psicles (#133)
* Added option for fetching extended calendar objects and cleaned up calendar building logic @p0psicles (#133)
* Added load_config function for standalone authentication loading @p0psicles (#133)
* Ensure sync functions return their responses and allow for raw json data to be used when syncing @p0psicles (#133)
* Added sync.get_watchlist, sync.get_watched, and sync.get_collection functions @p0psicles (#133)
* Added pagination options to tv.get_recommended_shows, tv.popular_shows, tv.trending_shows, and tv.updated_shows @p0psicles (#133)
* Added tv.recommended_shows, tv.played_shows, tv.watched_shows, tv.collected_shows, and tv.anticipated_shows functions @p0psicles (#133)
* Added TVShow.progress attribute for fetching the progress through a TVShow instance @p0psicles (#133)
2.14.1 (2020-09-23)
+++++++++++++++++++
* Ensure that only trakt username slugs are only used when forming URLs @twolaw (#128)
2.14.0 (2020-07-12)
+++++++++++++++++++
* TraktException now properly inherits from Exception @mindigmarton (#122)
* OAUTH token is automatically refreshed once a request is made within 2 days of the tokens expiration @twolaw (#121)
* Users custom lists can now be properly read without causing an exception @tecknicaltom (#120)
* Search queries are no longer slugified by default. Queries can be slugified by specifying `slugify=True` when running a search. (#116)
2.13.0 (2020-04-26)
+++++++++++++++++++
* Add support for media type when searching by id @teancom (#115)
* Implement TV Episode first_aired_end_time and end_time_from_custom_start methods (#114)
2.12.0 (2019-10-22)
+++++++++++++++++++
* Implement TV Show last_episode and next_episode @Faboor (#111)
2.11.0 (2019-08-26)
+++++++++++++++++++
* Implemented Checkin, fixed Scrobble & Comment @omjadas (#109)
2.10.0 (2019-06-25)
+++++++++++++++++++
* Add the ability to return a list of search results instead of their underlying media types (#106)
2.9.1 (2019-02-24)
++++++++++++++++++
* Fix season number naming issue @StoneMonarch (#104)
2.9.0 (2018-10-21)
++++++++++++++++++
* Add the ability to customize oauth authentication flow @Forcide (#95)
2.8.3 (2018-08-27)
++++++++++++++++++
* Fix the case in which first_aired property of tv show is null @alexpayne482 (#88)
2.8.2 (2018-08-14)
++++++++++++++++++
* Fix error code handling in the device auth flow @anongit (#83)
2.8.1 (2018-08-09)
++++++++++++++++++
* Fix bug loading stored credentials for PIN auth (#84)
* Fix an issue with the formatting of now() timestamps on the 10th of the month
2.8.0 (2018-02-25)
++++++++++++++++++
* Add support for device authentication (#81)
2.7.3 (2016-11-5)
+++++++++++++++++
* Fix a bug with comment instance creation (#73)
2.7.2 (2016-07-11)
++++++++++++++++++
* Properly export module contents across `trakt` module (#70)
2.7.1 (2016-07-09)
++++++++++++++++++
* Added `datetime` representation of episode first_aired date
2.7.0 (2016-06-05)
++++++++++++++++++
* Add Movie and TV credit accessors to the Person class
2.6.0 (2016-06-04)
++++++++++++++++++
* Add optional year to movie search parameters @justlaputa (#67)
* Add optional year to show, and episode searches
* Add convenience Person.search class method
2.5.3 (2016-06-02)
++++++++++++++++++
* Fix missing episode ids returned from calendar @anongit (#66)
2.5.2 (2016-05-29)
++++++++++++++++++
* Fix logic in _bootstrapped function @permster (#65)
2.5.1 (2016-05-15)
++++++++++++++++++
* Fix TVShow id attributes @TheJake123 (#64)
2.5.0 (2016-05-09)
++++++++++++++++++
* Add support for enumerate list items (#63)
2.4.6 (2016-05-01)
++++++++++++++++++
* Fix adding to watchlists (#59)
2.4.5 (2016-03-20)
++++++++++++++++++
* Add `six` support for cleaner 2-3 compatibility
* General code cleanup and style improvements
2.4.4 (2016-03-19)
++++++++++++++++++
* Update `slugify` function to better match trakt slugs (#51)
2.4.3 (2016-03-12)
++++++++++++++++++
* Python Style Fixes (per flake8)
* Added mocked unit level tests to ensure API responses are handled properly
* Miscellaneous bug fixes and improvements
2.4.2 (2016-03-05)
++++++++++++++++++
* Fix authentication issue pointed out by @BrendanBall (#48)
2.4.1 (2016-02-20)
++++++++++++++++++
* Fixed user list retrieval @permster (#42)
* Fixed return from generator py 2.x bug (#45)
2.4.0 (2016-02-13)
++++++++++++++++++
* Cleaned up some ugliness in the auth workflows
* User GET's now actually fetch User data from trakt
* User.watching no longer raises an exception if a user isn't watching anything (#40)
* HTTP 204 responses now return None for more obvious error handling
2.3.0 (2016-02-12)
++++++++++++++++++
* Expose documented vars, fix watching query (#39)
* Add easier customization for PIN Authentication url (#38)
2.2.5 (2015-09-29)
++++++++++++++++++
* Added `User.watchlist_movies` and `User.watchlist_shows` properties to the `trake.users.User` class. Thanks @a904guy! (#32)
2.2.4 (2015-09-25)
++++++++++++++++++
* Fix a bug with authentication prompts on Python 2.x. Thanks @Dreamersoul (#30)
2.2.3 (2015-09-21)
++++++++++++++++++
# Fix a bug with loading calendars of `TVEpisode` objects. Thanks @Dreamersoul (#28)
# Fix a bug with `TVEpisode.__str__` (and some others) not properly escaping non-ascii characters on Python 2.x (#27)
2.2.2 (2015-09-20)
++++++++++++++++++
* Fix a bug loading `trakt.calendar.SeasonCalendar` (#25)
* Added new personalized Calendar classes to `trakt.calendar` module
2.2.1 (2015-09-16)
++++++++++++++++++
* Add default values to non-critical `dict.get` calls (#23)
* Updated some documentation.
2.2.0 (2015-08-23)
++++++++++++++++++
* A TVSeason's `episodes` attribute is now dynamically generated from all episodes in that season
* `sync.rate` and `sync.add_to_history` now properly make valid requests (#21)
* Note: `sync.add_to_history`'s `watched_at` argument is now expected to be a datetime object, in order to match `sync.rate`
2.1.0 (2015-07-19)
++++++++++++++++++
* Add Trakt PIN Authentication (#15)
2.0.3 (2015-07-12)
++++++++++++++++++
* Fix BASE_URL to point at correct v2 API (#19)
2.0.2 (2015-04-18)
++++++++++++++++++
* Fix CLIENT_SECRET assignment Bug (#16)
2.0.1 (2015-03-15)
++++++++++++++++++
* Fixed TVEpisode Scrobbling Bug (#13)
* Fixed DEBUG logging messages to properly reflect HTTP Methods
* Added a 400 HTTP Response Code Exception type
2.0.0 (2015-03-04)
++++++++++++++++++
* 2.0 Version bump due to incompatible API changes relating to the location of the trakt api_key attribute
* Add additional debug logging for API responses
* Add tmdb_id to the `TVShow.ids` attribute
* Fixed `trakt.init` to instruct users on how to create a new OAuth application
* * Fixed `TVSeason.to_json` to return accurately scoped season information
* Updated documentation on APIv2's Authentication patterns
1.0.3 (2015-02-28)
++++++++++++++++++
* Fixed a bug with `First Aired Date` datetime parsing
1.0.2 (2015-02-17)
++++++++++++++++++
* Fixes Generator issue detailed in #7
* Fixes Python 2x Unicode bug
1.0.1 (2015-02-15)
++++++++++++++++++
* PyTrakt now utilizes Trakt's new API 2.0
* API Keys can now obtained via the `trakt.init` function
* Note: POSTS have been hit or miss, but get's all appear to be working
0.3.6 (2015-01-15)
++++++++++++++++++
* Bug fix for the failure to process JSON API responses
0.3.4 (2014-08-12)
++++++++++++++++++
* Merged @stampedeboss changes from PR #1
* Some small stylistic changes for consistency
0.3.3 (2014-07-04)
++++++++++++++++++
* trakt.tv.TVShow improvements/changes
* Misc bug fixes in trakt.tv
* Import enhancements in trakt.movies
* Added community module
* Fixed/updated documentation
0.3.0 (2014-06-19)
++++++++++++++++++
* Initial Release
Raw data
{
"_id": null,
"home_page": "https://github.com/glensc/python-pytrakt",
"name": "pytrakt",
"maintainer": null,
"docs_url": null,
"requires_python": null,
"maintainer_email": null,
"keywords": null,
"author": "Elan Ruusam\u00e4e",
"author_email": "glen@pld-linux.org",
"download_url": "https://files.pythonhosted.org/packages/2e/f4/8153c417737fde976db87873dc6d4aad0eed0ce341d8432db022897f1314/pytrakt-4.1.0.tar.gz",
"platform": null,
"description": "PyTrakt\n=======\n\n.. image:: https://github.com/glensc/python-pytrakt/actions/workflows/test.yml/badge.svg\n :target: https://github.com/glensc/python-pytrakt/actions\n :alt: CI Status\n\n.. image:: https://img.shields.io/pypi/dm/pytrakt.svg\n :target: https://pypi.org/project/pytrakt/\n :alt: Downloads\n\n.. image:: https://img.shields.io/pypi/l/pytrakt.svg\n :target: https://pypi.org/project/pytrakt/\n :alt: License\n\nThis module is designed to be a Pythonic interface to the `Trakt.tv <http://trakt.tv>`_.\nREST API. The official documentation for which can be found `here <http://docs.trakt.apiary.io/#>`_.\ntrakt contains interfaces to all of the Trakt.tv functionality in an, ideally, easily\nscriptable fashion. For more information on this module's contents and example usages\nplease see the `PyTrakt docs <https://glensc.github.io/python-pytrakt/>`_.\n\nMore information about getting started and accessing the information you thirst for\ncan be found throughout the documentation below.\n\n\nInstallation\n------------\nThere are two ways through which you can install trakt\n\nInstall Via Pip\n^^^^^^^^^^^^^^^\nTo install with `pip <http://www.pip-installer.org/>`_, just run this in your terminal::\n\n $ pip install pytrakt\n\nGet the code\n^^^^^^^^^^^^\ntrakt is available on `GitHub <https://github.com/glensc/python-pytrakt>`_.\n\nYou can either clone the public repository::\n\n $ git clone git://github.com/glensc/python-pytrakt.git\n\nDownload the `tarball <https://github.com/glensc/python-pytrakt/tarball/main>`_::\n\n $ curl -OL https://github.com/glensc/python-pytrakt/tarball/main\n\nOr, download the `zipball <https://github.com/glensc/python-pytrakt/zipball/main>`_::\n\n $ curl -OL https://github.com/glensc/python-pytrakt/zipball/main\n\nOnce you have a copy of the source, you can embed it in your Python package,\nor install it into your site-packages easily::\n\n $ python setup.py install\n\nContributing\n------------\nPull requests are graciously accepted. Any pull request should not break any tests\nand should pass `flake8` style checks (unless otherwise warranted). Additionally\nthe user opening the Pull Request should ensure that their username and a link to\ntheir GitHub page appears in `CONTRIBUTORS.md <https://github.com/glensc/python-pytrakt/blob/main/CONTRIBUTORS.md>`_.\n\n\nTODO\n----\nThe following lists define the known functionality provided by the Trakt.tv API\nwhich this module does not yet have support for. The current plan is that\nsupport for the following features will be added over time. As always, if you\nwould like a feature added sooner rather than later, pull requests are most\ndefinitely appreciated.\n\nHigh Level API Features\n^^^^^^^^^^^^^^^^^^^^^^^\n- Pagination\n\nSync\n^^^^\n- Create a comment class to facilitate\n - returning an instance when a comment is created, instead of None\n - add ability to update and delete comments\n\nMovies\n^^^^^^\n- movies/popular\n- movies/played/{time_period}\n- movies/watched/{time_period}\n- movies/collected/{time_period}\n- movies/anticipated\n- movies/boxoffice\n- movies/{slug}/stats\n\nShows\n^^^^^\n- Played\n- Watched\n- Collected\n- Anticipated\n- Collection Progress\n- Watched Progress\n- Stats\n\nSeasons\n^^^^^^^\n- extended\n - images\n - episodes\n - full\n- stats\n\nEpisodes\n^^^^^^^^\n- stats\n\nUsers\n^^^^^\n- hidden everything\n- likes\n - comments\n- comments\n- UserList\n - comments\n- history\n- watchlists\n - seasons\n - episodes\n\nRelease History\n^^^^^^^^^^^^^^^\n3.4.0 (2022-01-11)\n+++++++++++++++++++\n\n* Config boostrapping now occurs at runtime rather than load time @glensc (#162)\n* Unit tests can now be run from any working directory @glensc (#170)\n* Code cleanup - removed unused imports and superfluous parens from some yield statements @glensc (#171)\n\n3.3.0 (2022-01-07)\n+++++++++++++++++++\n\n* Add LockedUserAccountException support @glensc (#163)\n* Add ids property to People objects @thechicacode (#135)\n\n3.2.2 (2021-10-26)\n+++++++++++++++++++\n\n* Fix an issue where the show of a TVEpisode was not always set properly @twolaw (#157)\n\n3.2.1 (2021-08-08)\n+++++++++++++++++++\n\n* Fix an issue when accessing the `seasons` property of a `TVShow` instance whose slug requires a year\n\n3.2.0 (2021-06-21)\n+++++++++++++++++++\n\n* Add global `session` instance which will allow clients to override requests behavior (#151)\n\n3.1.0 (2021-04-10)\n+++++++++++++++++++\n\n* Add MethodNotAllowedException for 405 status codes (#141)\n* Ensure CI commands use python3 (#142)\n\n3.0.0 (2021-03-16)\n+++++++++++++++++++\n\n* Drop python 2 support + update dependencies (#137)\n* Drop Travis CI in favor of CircleCI (#137)\n* Update in-code documentation to match existing APIs (#137)\n* Include response information in raised TraktExceptions @twolaw (#138)\n\n2.15.0 (2021-01-31)\n+++++++++++++++++++\n\n* Add documentation for the sync module @p0psicles (#133)\n* Added option for fetching extended calendar objects and cleaned up calendar building logic @p0psicles (#133)\n* Added load_config function for standalone authentication loading @p0psicles (#133)\n* Ensure sync functions return their responses and allow for raw json data to be used when syncing @p0psicles (#133)\n* Added sync.get_watchlist, sync.get_watched, and sync.get_collection functions @p0psicles (#133)\n* Added pagination options to tv.get_recommended_shows, tv.popular_shows, tv.trending_shows, and tv.updated_shows @p0psicles (#133)\n* Added tv.recommended_shows, tv.played_shows, tv.watched_shows, tv.collected_shows, and tv.anticipated_shows functions @p0psicles (#133)\n* Added TVShow.progress attribute for fetching the progress through a TVShow instance @p0psicles (#133)\n\n2.14.1 (2020-09-23)\n+++++++++++++++++++\n\n* Ensure that only trakt username slugs are only used when forming URLs @twolaw (#128)\n\n2.14.0 (2020-07-12)\n+++++++++++++++++++\n\n* TraktException now properly inherits from Exception @mindigmarton (#122)\n* OAUTH token is automatically refreshed once a request is made within 2 days of the tokens expiration @twolaw (#121)\n* Users custom lists can now be properly read without causing an exception @tecknicaltom (#120)\n* Search queries are no longer slugified by default. Queries can be slugified by specifying `slugify=True` when running a search. (#116)\n\n2.13.0 (2020-04-26)\n+++++++++++++++++++\n\n* Add support for media type when searching by id @teancom (#115)\n* Implement TV Episode first_aired_end_time and end_time_from_custom_start methods (#114)\n\n2.12.0 (2019-10-22)\n+++++++++++++++++++\n\n* Implement TV Show last_episode and next_episode @Faboor (#111)\n\n2.11.0 (2019-08-26)\n+++++++++++++++++++\n\n* Implemented Checkin, fixed Scrobble & Comment @omjadas (#109)\n\n2.10.0 (2019-06-25)\n+++++++++++++++++++\n\n* Add the ability to return a list of search results instead of their underlying media types (#106)\n\n2.9.1 (2019-02-24)\n++++++++++++++++++\n\n* Fix season number naming issue @StoneMonarch (#104)\n\n2.9.0 (2018-10-21)\n++++++++++++++++++\n\n* Add the ability to customize oauth authentication flow @Forcide (#95)\n\n2.8.3 (2018-08-27)\n++++++++++++++++++\n\n* Fix the case in which first_aired property of tv show is null @alexpayne482 (#88)\n\n2.8.2 (2018-08-14)\n++++++++++++++++++\n\n* Fix error code handling in the device auth flow @anongit (#83)\n\n2.8.1 (2018-08-09)\n++++++++++++++++++\n\n* Fix bug loading stored credentials for PIN auth (#84)\n* Fix an issue with the formatting of now() timestamps on the 10th of the month\n\n2.8.0 (2018-02-25)\n++++++++++++++++++\n\n* Add support for device authentication (#81)\n\n2.7.3 (2016-11-5)\n+++++++++++++++++\n\n* Fix a bug with comment instance creation (#73)\n\n2.7.2 (2016-07-11)\n++++++++++++++++++\n\n* Properly export module contents across `trakt` module (#70)\n\n2.7.1 (2016-07-09)\n++++++++++++++++++\n\n* Added `datetime` representation of episode first_aired date\n\n2.7.0 (2016-06-05)\n++++++++++++++++++\n\n* Add Movie and TV credit accessors to the Person class\n\n2.6.0 (2016-06-04)\n++++++++++++++++++\n\n* Add optional year to movie search parameters @justlaputa (#67)\n* Add optional year to show, and episode searches\n* Add convenience Person.search class method\n\n2.5.3 (2016-06-02)\n++++++++++++++++++\n\n* Fix missing episode ids returned from calendar @anongit (#66)\n\n2.5.2 (2016-05-29)\n++++++++++++++++++\n\n* Fix logic in _bootstrapped function @permster (#65)\n\n2.5.1 (2016-05-15)\n++++++++++++++++++\n\n* Fix TVShow id attributes @TheJake123 (#64)\n\n2.5.0 (2016-05-09)\n++++++++++++++++++\n\n* Add support for enumerate list items (#63)\n\n2.4.6 (2016-05-01)\n++++++++++++++++++\n\n* Fix adding to watchlists (#59)\n\n2.4.5 (2016-03-20)\n++++++++++++++++++\n\n* Add `six` support for cleaner 2-3 compatibility\n* General code cleanup and style improvements\n\n2.4.4 (2016-03-19)\n++++++++++++++++++\n\n* Update `slugify` function to better match trakt slugs (#51)\n\n2.4.3 (2016-03-12)\n++++++++++++++++++\n\n* Python Style Fixes (per flake8)\n* Added mocked unit level tests to ensure API responses are handled properly\n* Miscellaneous bug fixes and improvements\n\n2.4.2 (2016-03-05)\n++++++++++++++++++\n\n* Fix authentication issue pointed out by @BrendanBall (#48)\n\n2.4.1 (2016-02-20)\n++++++++++++++++++\n\n* Fixed user list retrieval @permster (#42)\n* Fixed return from generator py 2.x bug (#45)\n\n2.4.0 (2016-02-13)\n++++++++++++++++++\n\n* Cleaned up some ugliness in the auth workflows\n* User GET's now actually fetch User data from trakt\n* User.watching no longer raises an exception if a user isn't watching anything (#40)\n* HTTP 204 responses now return None for more obvious error handling\n\n2.3.0 (2016-02-12)\n++++++++++++++++++\n\n* Expose documented vars, fix watching query (#39)\n* Add easier customization for PIN Authentication url (#38)\n\n2.2.5 (2015-09-29)\n++++++++++++++++++\n\n* Added `User.watchlist_movies` and `User.watchlist_shows` properties to the `trake.users.User` class. Thanks @a904guy! (#32)\n\n2.2.4 (2015-09-25)\n++++++++++++++++++\n\n* Fix a bug with authentication prompts on Python 2.x. Thanks @Dreamersoul (#30)\n\n2.2.3 (2015-09-21)\n++++++++++++++++++\n\n# Fix a bug with loading calendars of `TVEpisode` objects. Thanks @Dreamersoul (#28)\n# Fix a bug with `TVEpisode.__str__` (and some others) not properly escaping non-ascii characters on Python 2.x (#27)\n\n2.2.2 (2015-09-20)\n++++++++++++++++++\n\n* Fix a bug loading `trakt.calendar.SeasonCalendar` (#25)\n* Added new personalized Calendar classes to `trakt.calendar` module\n\n2.2.1 (2015-09-16)\n++++++++++++++++++\n\n* Add default values to non-critical `dict.get` calls (#23)\n* Updated some documentation.\n\n2.2.0 (2015-08-23)\n++++++++++++++++++\n\n* A TVSeason's `episodes` attribute is now dynamically generated from all episodes in that season\n* `sync.rate` and `sync.add_to_history` now properly make valid requests (#21)\n* Note: `sync.add_to_history`'s `watched_at` argument is now expected to be a datetime object, in order to match `sync.rate`\n\n2.1.0 (2015-07-19)\n++++++++++++++++++\n\n* Add Trakt PIN Authentication (#15)\n\n2.0.3 (2015-07-12)\n++++++++++++++++++\n\n* Fix BASE_URL to point at correct v2 API (#19)\n\n2.0.2 (2015-04-18)\n++++++++++++++++++\n\n* Fix CLIENT_SECRET assignment Bug (#16)\n\n2.0.1 (2015-03-15)\n++++++++++++++++++\n\n* Fixed TVEpisode Scrobbling Bug (#13)\n* Fixed DEBUG logging messages to properly reflect HTTP Methods\n* Added a 400 HTTP Response Code Exception type\n\n2.0.0 (2015-03-04)\n++++++++++++++++++\n\n* 2.0 Version bump due to incompatible API changes relating to the location of the trakt api_key attribute\n* Add additional debug logging for API responses\n* Add tmdb_id to the `TVShow.ids` attribute\n* Fixed `trakt.init` to instruct users on how to create a new OAuth application\n* * Fixed `TVSeason.to_json` to return accurately scoped season information\n* Updated documentation on APIv2's Authentication patterns\n\n1.0.3 (2015-02-28)\n++++++++++++++++++\n\n* Fixed a bug with `First Aired Date` datetime parsing\n\n1.0.2 (2015-02-17)\n++++++++++++++++++\n\n* Fixes Generator issue detailed in #7\n* Fixes Python 2x Unicode bug\n\n1.0.1 (2015-02-15)\n++++++++++++++++++\n\n* PyTrakt now utilizes Trakt's new API 2.0\n* API Keys can now obtained via the `trakt.init` function\n* Note: POSTS have been hit or miss, but get's all appear to be working\n\n0.3.6 (2015-01-15)\n++++++++++++++++++\n\n* Bug fix for the failure to process JSON API responses\n\n0.3.4 (2014-08-12)\n++++++++++++++++++\n\n* Merged @stampedeboss changes from PR #1\n* Some small stylistic changes for consistency\n\n0.3.3 (2014-07-04)\n++++++++++++++++++\n\n* trakt.tv.TVShow improvements/changes\n* Misc bug fixes in trakt.tv\n* Import enhancements in trakt.movies\n* Added community module\n* Fixed/updated documentation\n\n\n0.3.0 (2014-06-19)\n++++++++++++++++++\n\n* Initial Release\n",
"bugtrack_url": null,
"license": "Apache 2.0",
"summary": "Pythonic abstraction layer for easier scripting of the Trakt.tv REST API.",
"version": "4.1.0",
"project_urls": {
"Homepage": "https://github.com/glensc/python-pytrakt"
},
"split_keywords": [],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "1d7a27133fa1c61ae48d0528a9bba41be7b0c691cba4da5b60fcd43dc812fc5d",
"md5": "2a44e9817ae1ce46d3a93cac0bd1f7f2",
"sha256": "6b5930eab6cc77eeef0b21ab3defd8bcbb5a2aa1c1ac941cf725d7331a52cfbc"
},
"downloads": -1,
"filename": "pytrakt-4.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "2a44e9817ae1ce46d3a93cac0bd1f7f2",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": null,
"size": 46193,
"upload_time": "2025-01-31T16:01:36",
"upload_time_iso_8601": "2025-01-31T16:01:36.685004Z",
"url": "https://files.pythonhosted.org/packages/1d/7a/27133fa1c61ae48d0528a9bba41be7b0c691cba4da5b60fcd43dc812fc5d/pytrakt-4.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2ef48153c417737fde976db87873dc6d4aad0eed0ce341d8432db022897f1314",
"md5": "865df1c4ca41c2baa5d593899532b7db",
"sha256": "8c206441cf731b85e4379e2bf509aa9e8eb99dc43c6b4397f5ceb67b5d059884"
},
"downloads": -1,
"filename": "pytrakt-4.1.0.tar.gz",
"has_sig": false,
"md5_digest": "865df1c4ca41c2baa5d593899532b7db",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 46983,
"upload_time": "2025-01-31T16:01:37",
"upload_time_iso_8601": "2025-01-31T16:01:37.949796Z",
"url": "https://files.pythonhosted.org/packages/2e/f4/8153c417737fde976db87873dc6d4aad0eed0ce341d8432db022897f1314/pytrakt-4.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-31 16:01:37",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "glensc",
"github_project": "python-pytrakt",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"requirements": [
{
"name": "deprecated",
"specs": [
[
"~=",
"1.2.13"
]
]
},
{
"name": "requests-oauthlib",
"specs": [
[
">=",
"1.3"
]
]
},
{
"name": "requests",
"specs": [
[
">=",
"2.25"
]
]
},
{
"name": "dataclasses",
"specs": []
}
],
"lcname": "pytrakt"
}