yutipy 1.7.0__tar.gz → 2.0.0__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-1.7.0 → yutipy-2.0.0}/PKG-INFO +1 -1
  2. yutipy-2.0.0/yutipy/__init__.py +21 -0
  3. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/spotify.py +4 -0
  4. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/utils/__init__.py +2 -6
  5. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/PKG-INFO +1 -1
  6. yutipy-1.7.0/yutipy/__init__.py +0 -18
  7. {yutipy-1.7.0 → yutipy-2.0.0}/.gitattributes +0 -0
  8. {yutipy-1.7.0 → yutipy-2.0.0}/.github/FUNDING.yml +0 -0
  9. {yutipy-1.7.0 → yutipy-2.0.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  10. {yutipy-1.7.0 → yutipy-2.0.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  11. {yutipy-1.7.0 → yutipy-2.0.0}/.github/dependabot.yml +0 -0
  12. {yutipy-1.7.0 → yutipy-2.0.0}/.github/workflows/pytest-unit-testing.yml +0 -0
  13. {yutipy-1.7.0 → yutipy-2.0.0}/.github/workflows/release.yml +0 -0
  14. {yutipy-1.7.0 → yutipy-2.0.0}/.gitignore +0 -0
  15. {yutipy-1.7.0 → yutipy-2.0.0}/.readthedocs.yaml +0 -0
  16. {yutipy-1.7.0 → yutipy-2.0.0}/LICENSE +0 -0
  17. {yutipy-1.7.0 → yutipy-2.0.0}/MANIFEST.in +0 -0
  18. {yutipy-1.7.0 → yutipy-2.0.0}/README.md +0 -0
  19. {yutipy-1.7.0 → yutipy-2.0.0}/docs/Makefile +0 -0
  20. {yutipy-1.7.0 → yutipy-2.0.0}/docs/_static/yutipy_header.png +0 -0
  21. {yutipy-1.7.0 → yutipy-2.0.0}/docs/_static/yutipy_logo.png +0 -0
  22. {yutipy-1.7.0 → yutipy-2.0.0}/docs/api_reference.rst +0 -0
  23. {yutipy-1.7.0 → yutipy-2.0.0}/docs/available_platforms.rst +0 -0
  24. {yutipy-1.7.0 → yutipy-2.0.0}/docs/cli.rst +0 -0
  25. {yutipy-1.7.0 → yutipy-2.0.0}/docs/conf.py +0 -0
  26. {yutipy-1.7.0 → yutipy-2.0.0}/docs/faq.rst +0 -0
  27. {yutipy-1.7.0 → yutipy-2.0.0}/docs/index.rst +0 -0
  28. {yutipy-1.7.0 → yutipy-2.0.0}/docs/installation.rst +0 -0
  29. {yutipy-1.7.0 → yutipy-2.0.0}/docs/make.bat +0 -0
  30. {yutipy-1.7.0 → yutipy-2.0.0}/docs/requirements.txt +0 -0
  31. {yutipy-1.7.0 → yutipy-2.0.0}/docs/usage_examples.rst +0 -0
  32. {yutipy-1.7.0 → yutipy-2.0.0}/pyproject.toml +0 -0
  33. {yutipy-1.7.0 → yutipy-2.0.0}/requirements-dev.txt +0 -0
  34. {yutipy-1.7.0 → yutipy-2.0.0}/requirements.txt +0 -0
  35. {yutipy-1.7.0 → yutipy-2.0.0}/setup.cfg +0 -0
  36. {yutipy-1.7.0 → yutipy-2.0.0}/tests/__init__.py +0 -0
  37. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_deezer.py +0 -0
  38. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_itunes.py +0 -0
  39. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_kkbox.py +0 -0
  40. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_models.py +0 -0
  41. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_musicyt.py +0 -0
  42. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_spotify.py +0 -0
  43. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_utils.py +0 -0
  44. {yutipy-1.7.0 → yutipy-2.0.0}/tests/test_yutipy_music.py +0 -0
  45. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/__init__.py +0 -0
  46. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/config.py +0 -0
  47. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/cli/search.py +0 -0
  48. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/deezer.py +0 -0
  49. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/exceptions.py +0 -0
  50. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/itunes.py +0 -0
  51. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/kkbox.py +0 -0
  52. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/logger.py +0 -0
  53. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/models.py +0 -0
  54. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/musicyt.py +0 -0
  55. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/utils/helpers.py +0 -0
  56. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy/yutipy_music.py +0 -0
  57. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/SOURCES.txt +0 -0
  58. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/dependency_links.txt +0 -0
  59. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/entry_points.txt +0 -0
  60. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/requires.txt +0 -0
  61. {yutipy-1.7.0 → yutipy-2.0.0}/yutipy.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 1.7.0
3
+ Version: 2.0.0
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>
@@ -0,0 +1,21 @@
1
+ from yutipy import (
2
+ deezer,
3
+ exceptions,
4
+ itunes,
5
+ kkbox,
6
+ logger,
7
+ musicyt,
8
+ spotify,
9
+ yutipy_music,
10
+ )
11
+
12
+ __all__ = [
13
+ "deezer",
14
+ "exceptions",
15
+ "itunes",
16
+ "kkbox",
17
+ "logger",
18
+ "musicyt",
19
+ "spotify",
20
+ "yutipy_music",
21
+ ]
@@ -876,10 +876,14 @@ class SpotifyAuth:
876
876
  if state != expected_state:
877
877
  raise SpotifyAuthException("state does not match!")
878
878
 
879
+ token_info = None
880
+
879
881
  try:
880
882
  token_info = self.load_access_token()
881
883
  except NotImplementedError as e:
882
884
  logger.warning(e)
885
+
886
+ if not token_info:
883
887
  token_info = self.__get_access_token(authorization_code=code)
884
888
 
885
889
  self.__access_token = token_info.get("access_token")
@@ -1,16 +1,12 @@
1
- from .helpers import (
1
+ from yutipy.utils.helpers import (
2
2
  are_strings_similar,
3
3
  guess_album_type,
4
4
  is_valid_string,
5
5
  separate_artists,
6
6
  )
7
- from ..logger import disable_logging, enable_logging
8
-
9
7
  __all__ = [
10
- "guess_album_type",
11
8
  "are_strings_similar",
9
+ "guess_album_type",
12
10
  "is_valid_string",
13
11
  "separate_artists",
14
- "enable_logging",
15
- "disable_logging"
16
12
  ]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: yutipy
3
- Version: 1.7.0
3
+ Version: 2.0.0
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>
@@ -1,18 +0,0 @@
1
- from .deezer import Deezer
2
- from .itunes import Itunes
3
- from .kkbox import KKBox
4
- from .musicyt import MusicYT
5
- from .spotify import Spotify
6
- from .utils import disable_logging, enable_logging
7
- from .yutipy_music import YutipyMusic
8
-
9
- __all__ = [
10
- "Deezer",
11
- "Itunes",
12
- "KKBox",
13
- "MusicYT",
14
- "Spotify",
15
- "YutipyMusic",
16
- "enable_logging",
17
- "disable_logging",
18
- ]
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