yutipy 2.2.2__tar.gz → 2.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.

Potentially problematic release.


This version of yutipy might be problematic. Click here for more details.

Files changed (61) hide show
  1. {yutipy-2.2.2 → yutipy-2.2.3}/PKG-INFO +1 -1
  2. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/kkbox.py +14 -0
  3. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/logger.py +2 -2
  4. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/spotify.py +14 -0
  5. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/PKG-INFO +1 -1
  6. {yutipy-2.2.2 → yutipy-2.2.3}/.gitattributes +0 -0
  7. {yutipy-2.2.2 → yutipy-2.2.3}/.github/FUNDING.yml +0 -0
  8. {yutipy-2.2.2 → yutipy-2.2.3}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  9. {yutipy-2.2.2 → yutipy-2.2.3}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  10. {yutipy-2.2.2 → yutipy-2.2.3}/.github/dependabot.yml +0 -0
  11. {yutipy-2.2.2 → yutipy-2.2.3}/.github/workflows/pytest-unit-testing.yml +0 -0
  12. {yutipy-2.2.2 → yutipy-2.2.3}/.github/workflows/release.yml +0 -0
  13. {yutipy-2.2.2 → yutipy-2.2.3}/.gitignore +0 -0
  14. {yutipy-2.2.2 → yutipy-2.2.3}/.readthedocs.yaml +0 -0
  15. {yutipy-2.2.2 → yutipy-2.2.3}/LICENSE +0 -0
  16. {yutipy-2.2.2 → yutipy-2.2.3}/MANIFEST.in +0 -0
  17. {yutipy-2.2.2 → yutipy-2.2.3}/README.md +0 -0
  18. {yutipy-2.2.2 → yutipy-2.2.3}/docs/Makefile +0 -0
  19. {yutipy-2.2.2 → yutipy-2.2.3}/docs/_static/yutipy_header.png +0 -0
  20. {yutipy-2.2.2 → yutipy-2.2.3}/docs/_static/yutipy_logo.png +0 -0
  21. {yutipy-2.2.2 → yutipy-2.2.3}/docs/api_reference.rst +0 -0
  22. {yutipy-2.2.2 → yutipy-2.2.3}/docs/available_platforms.rst +0 -0
  23. {yutipy-2.2.2 → yutipy-2.2.3}/docs/cli.rst +0 -0
  24. {yutipy-2.2.2 → yutipy-2.2.3}/docs/conf.py +0 -0
  25. {yutipy-2.2.2 → yutipy-2.2.3}/docs/faq.rst +0 -0
  26. {yutipy-2.2.2 → yutipy-2.2.3}/docs/index.rst +0 -0
  27. {yutipy-2.2.2 → yutipy-2.2.3}/docs/installation.rst +0 -0
  28. {yutipy-2.2.2 → yutipy-2.2.3}/docs/make.bat +0 -0
  29. {yutipy-2.2.2 → yutipy-2.2.3}/docs/requirements.txt +0 -0
  30. {yutipy-2.2.2 → yutipy-2.2.3}/docs/usage_examples.rst +0 -0
  31. {yutipy-2.2.2 → yutipy-2.2.3}/pyproject.toml +0 -0
  32. {yutipy-2.2.2 → yutipy-2.2.3}/requirements-dev.txt +0 -0
  33. {yutipy-2.2.2 → yutipy-2.2.3}/requirements.txt +0 -0
  34. {yutipy-2.2.2 → yutipy-2.2.3}/setup.cfg +0 -0
  35. {yutipy-2.2.2 → yutipy-2.2.3}/tests/__init__.py +0 -0
  36. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_deezer.py +0 -0
  37. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_itunes.py +0 -0
  38. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_kkbox.py +0 -0
  39. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_lastfm.py +0 -0
  40. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_models.py +0 -0
  41. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_musicyt.py +0 -0
  42. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_spotify.py +0 -0
  43. {yutipy-2.2.2 → yutipy-2.2.3}/tests/test_utils.py +0 -0
  44. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/__init__.py +0 -0
  45. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/cli/__init__.py +0 -0
  46. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/cli/config.py +0 -0
  47. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/cli/search.py +0 -0
  48. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/deezer.py +0 -0
  49. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/exceptions.py +0 -0
  50. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/itunes.py +0 -0
  51. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/lastfm.py +0 -0
  52. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/models.py +0 -0
  53. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/musicyt.py +0 -0
  54. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/utils/__init__.py +0 -0
  55. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/utils/helpers.py +0 -0
  56. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy/yutipy_music.py +0 -0
  57. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/SOURCES.txt +0 -0
  58. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/dependency_links.txt +0 -0
  59. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/entry_points.txt +0 -0
  60. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/requires.txt +0 -0
  61. {yutipy-2.2.2 → yutipy-2.2.3}/yutipy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: A simple package for retrieving music information from various music platforms APIs.
5
5
  Author: Cheap Nightbot
6
6
  Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
@@ -91,6 +91,13 @@ class KKBox:
91
91
  self.__access_token = token_info.get("access_token")
92
92
  self.__token_expires_in = token_info.get("expires_in")
93
93
  self.__token_requested_at = token_info.get("requested_at")
94
+
95
+ try:
96
+ self.save_access_token(token_info)
97
+ except NotImplementedError:
98
+ logger.warning(
99
+ "`save_access_token` is not implemented, falling back to in-memory storage. Access token will not be saved."
100
+ )
94
101
  else:
95
102
  logger.warning(
96
103
  "`defer_load` is set to `True`. Make sure to call `load_token_after_init()`."
@@ -135,6 +142,13 @@ class KKBox:
135
142
  self.__token_expires_in = token_info.get("expires_in")
136
143
  self.__token_requested_at = token_info.get("requested_at")
137
144
 
145
+ try:
146
+ self.save_access_token(token_info)
147
+ except NotImplementedError:
148
+ logger.warning(
149
+ "`save_access_token` is not implemented, falling back to in-memory storage. Access token will not be saved."
150
+ )
151
+
138
152
  def __authorization_header(self) -> dict:
139
153
  """
140
154
  Generates the authorization header for Spotify API requests.
@@ -2,7 +2,7 @@ import logging
2
2
 
3
3
  # Create a logger for the library
4
4
  logger = logging.getLogger("yutipy")
5
- logger.setLevel(logging.WARNING)
5
+ logger.setLevel(logging.NOTSET)
6
6
 
7
7
 
8
8
  def enable_logging(level=logging.INFO, handler=None):
@@ -37,6 +37,6 @@ def enable_logging(level=logging.INFO, handler=None):
37
37
 
38
38
  def disable_logging():
39
39
  """Disable logging for the library."""
40
- logger.setLevel(logging.CRITICAL)
40
+ logger.setLevel(logging.NOTSET)
41
41
  for handler in logger.handlers[:]: # Remove all handlers
42
42
  logger.removeHandler(handler)
@@ -100,6 +100,13 @@ class Spotify:
100
100
  self.__access_token = token_info.get("access_token")
101
101
  self.__token_expires_in = token_info.get("expires_in")
102
102
  self.__token_requested_at = token_info.get("requested_at")
103
+
104
+ try:
105
+ self.save_access_token(token_info)
106
+ except NotImplementedError:
107
+ logger.warning(
108
+ "`save_access_token` is not implemented, falling back to in-memory storage. Access token will not be saved."
109
+ )
103
110
  else:
104
111
  logger.warning(
105
112
  "`defer_load` is set to `True`. Make sure to call `load_token_after_init()`."
@@ -144,6 +151,13 @@ class Spotify:
144
151
  self.__token_expires_in = token_info.get("expires_in")
145
152
  self.__token_requested_at = token_info.get("requested_at")
146
153
 
154
+ try:
155
+ self.save_access_token(token_info)
156
+ except NotImplementedError:
157
+ logger.warning(
158
+ "`save_access_token` is not implemented, falling back to in-memory storage. Access token will not be saved."
159
+ )
160
+
147
161
  def __authorization_header(self) -> dict:
148
162
  """
149
163
  Generates the authorization header for Spotify API requests.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 2.2.2
3
+ Version: 2.2.3
4
4
  Summary: A simple package for retrieving music information from various music platforms APIs.
5
5
  Author: Cheap Nightbot
6
6
  Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
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
File without changes
File without changes
File without changes
File without changes