pytrakt 4.2.2__tar.gz → 4.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. {pytrakt-4.2.2/pytrakt.egg-info → pytrakt-4.2.3}/PKG-INFO +1 -1
  2. {pytrakt-4.2.2 → pytrakt-4.2.3/pytrakt.egg-info}/PKG-INFO +1 -1
  3. pytrakt-4.2.3/trakt/__version__.py +1 -0
  4. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/config.py +5 -3
  5. pytrakt-4.2.2/trakt/__version__.py +0 -1
  6. {pytrakt-4.2.2 → pytrakt-4.2.3}/HISTORY.rst +0 -0
  7. {pytrakt-4.2.2 → pytrakt-4.2.3}/LICENSE +0 -0
  8. {pytrakt-4.2.2 → pytrakt-4.2.3}/MANIFEST.in +0 -0
  9. {pytrakt-4.2.2 → pytrakt-4.2.3}/README.rst +0 -0
  10. {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/SOURCES.txt +0 -0
  11. {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/dependency_links.txt +0 -0
  12. {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/not-zip-safe +0 -0
  13. {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/requires.txt +0 -0
  14. {pytrakt-4.2.2 → pytrakt-4.2.3}/pytrakt.egg-info/top_level.txt +0 -0
  15. {pytrakt-4.2.2 → pytrakt-4.2.3}/requirements.txt +0 -0
  16. {pytrakt-4.2.2 → pytrakt-4.2.3}/setup.cfg +0 -0
  17. {pytrakt-4.2.2 → pytrakt-4.2.3}/setup.py +0 -0
  18. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_api.py +0 -0
  19. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_calendars.py +0 -0
  20. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_episodes.py +0 -0
  21. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_errors.py +0 -0
  22. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_genres.py +0 -0
  23. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_lists.py +0 -0
  24. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_movies.py +0 -0
  25. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_people.py +0 -0
  26. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_scrobble.py +0 -0
  27. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_search.py +0 -0
  28. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_seasons.py +0 -0
  29. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_shows.py +0 -0
  30. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_sync.py +0 -0
  31. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_users.py +0 -0
  32. {pytrakt-4.2.2 → pytrakt-4.2.3}/tests/test_utils.py +0 -0
  33. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/__init__.py +0 -0
  34. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/api.py +0 -0
  35. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/__init__.py +0 -0
  36. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/base.py +0 -0
  37. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/device.py +0 -0
  38. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/oauth.py +0 -0
  39. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/auth/pin.py +0 -0
  40. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/calendar.py +0 -0
  41. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/core.py +0 -0
  42. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/decorators.py +0 -0
  43. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/errors.py +0 -0
  44. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/mixins.py +0 -0
  45. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/movies.py +0 -0
  46. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/people.py +0 -0
  47. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/sync.py +0 -0
  48. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/tv.py +0 -0
  49. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/users.py +0 -0
  50. {pytrakt-4.2.2 → pytrakt-4.2.3}/trakt/utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytrakt
3
- Version: 4.2.2
3
+ Version: 4.2.3
4
4
  Summary: Pythonic abstraction layer for easier scripting of the Trakt.tv REST API.
5
5
  Home-page: https://github.com/glensc/python-pytrakt
6
6
  Author: Elan Ruusamäe
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pytrakt
3
- Version: 4.2.2
3
+ Version: 4.2.3
4
4
  Summary: Pythonic abstraction layer for easier scripting of the Trakt.tv REST API.
5
5
  Home-page: https://github.com/glensc/python-pytrakt
6
6
  Author: Elan Ruusamäe
@@ -0,0 +1 @@
1
+ __version__ = '4.2.3'
@@ -3,7 +3,7 @@
3
3
  __author__ = 'Elan Ruusamäe'
4
4
 
5
5
  import json
6
- from dataclasses import dataclass
6
+ from dataclasses import dataclass, fields
7
7
  from os.path import exists
8
8
  from typing import Optional
9
9
 
@@ -40,7 +40,8 @@ class AuthConfig:
40
40
 
41
41
  def all(self):
42
42
  result = {}
43
- for key in self.__annotations__.keys():
43
+ for field in fields(self):
44
+ key = field.name
44
45
  result[key] = self.get(key)
45
46
 
46
47
  return result
@@ -55,7 +56,8 @@ class AuthConfig:
55
56
  with open(self.config_path) as config_file:
56
57
  config_data = json.load(config_file)
57
58
 
58
- for key in self.__annotations__.keys():
59
+ for field in fields(self):
60
+ key = field.name
59
61
  # Don't overwrite
60
62
  if self.get(key) is not None:
61
63
  continue
@@ -1 +0,0 @@
1
- __version__ = '4.2.2'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes