Skip to main content

Pythonic abstraction layer for easier scripting of the Trakt.tv REST API.

Project description

CI Status Downloads License

This module is designed to be a Pythonic interface to the Trakt.tv. REST API. The official documentation for which can be found here. 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.

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, just run this in your terminal:

$ pip install pytrakt

Get the code

trakt is available on GitHub.

You can either clone the public repository:

$ git clone git://github.com/glensc/python-pytrakt.git

Download the tarball:

$ curl -OL https://github.com/glensc/python-pytrakt/tarball/main

Or, download the zipball:

$ 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.

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytrakt-4.2.3.tar.gz (47.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytrakt-4.2.3-py3-none-any.whl (43.1 kB view details)

Uploaded Python 3

File details

Details for the file pytrakt-4.2.3.tar.gz.

File metadata

  • Download URL: pytrakt-4.2.3.tar.gz
  • Upload date:
  • Size: 47.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytrakt-4.2.3.tar.gz
Algorithm Hash digest
SHA256 d24fbc2715ecabb56aa083bb1f7e0bcb1fd6f45f009488981db7f539c740dc1b
MD5 7acda1bce7723d3544b7ea9ebffe7361
BLAKE2b-256 f9d7cd4d77fc305460d90eb86a0b5b08f1143e5c9f0771cf7f4450c34c801e68

See more details on using hashes here.

File details

Details for the file pytrakt-4.2.3-py3-none-any.whl.

File metadata

  • Download URL: pytrakt-4.2.3-py3-none-any.whl
  • Upload date:
  • Size: 43.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytrakt-4.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c4549f2b3c6d88b4c65f4185712ec8341765c848c3ae4a94ec0c890643cebfb
MD5 c08d64438163bd4d474a74ba88d9b550
BLAKE2b-256 ceeb17683e3867dc2734306284c1b6b15532f4ed8c3b93a063a0be412d1ba812

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page