glensc / python-pytrakt

A Pythonic interface to the Trakt.tv REST API
https://glensc.github.io/python-pytrakt/
Other
22 stars 7 forks source link

Feature: Add PublicList class #43

Closed glensc closed 7 months ago

glensc commented 8 months ago

Add PublicList for:

movie_list = PublicList.load(trakt_id)
print(movie_list.description)

for m in movie_list:
  print(f"{m.rank}. {m.title}: {m.listed_at} {m.trakt}")

Actual usage example:

Tests in a separate PR:

glensc commented 8 months ago

The module name where it's placed is perhaps odd:

from trakt.users import PublicList
glensc commented 8 months ago

@simonc56 any comments?

simonc56 commented 8 months ago

I didn't test. Maybe some tests for PublicList could be helpful.

glensc commented 8 months ago

@simonc56 so, no comments on code and naming?

glensc commented 7 months ago

Tests in a separate PR: