yutipy 1.6.12__py3-none-any.whl → 2.0.0__py3-none-any.whl

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.

yutipy/__init__.py CHANGED
@@ -1,18 +1,21 @@
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
1
+ from yutipy import (
2
+ deezer,
3
+ exceptions,
4
+ itunes,
5
+ kkbox,
6
+ logger,
7
+ musicyt,
8
+ spotify,
9
+ yutipy_music,
10
+ )
8
11
 
9
12
  __all__ = [
10
- "Deezer",
11
- "Itunes",
12
- "KKBox",
13
- "MusicYT",
14
- "Spotify",
15
- "YutipyMusic",
16
- "enable_logging",
17
- "disable_logging",
13
+ "deezer",
14
+ "exceptions",
15
+ "itunes",
16
+ "kkbox",
17
+ "logger",
18
+ "musicyt",
19
+ "spotify",
20
+ "yutipy_music",
18
21
  ]
yutipy/spotify.py CHANGED
@@ -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")
yutipy/utils/__init__.py CHANGED
@@ -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.6.12
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>
@@ -17,20 +17,19 @@ Classifier: Development Status :: 4 - Beta
17
17
  Classifier: Intended Audience :: Developers
18
18
  Classifier: Topic :: Software Development :: Libraries
19
19
  Classifier: Programming Language :: Python :: 3
20
- Classifier: Programming Language :: Python :: 3.8
21
20
  Classifier: Programming Language :: Python :: 3.9
22
21
  Classifier: Programming Language :: Python :: 3.10
23
22
  Classifier: Programming Language :: Python :: 3.11
24
23
  Classifier: Programming Language :: Python :: 3.12
25
24
  Classifier: Operating System :: OS Independent
26
- Requires-Python: >=3.8
25
+ Requires-Python: >=3.9
27
26
  Description-Content-Type: text/markdown
28
27
  License-File: LICENSE
29
28
  Requires-Dist: pykakasi==2.3.0
30
- Requires-Dist: python-dotenv==1.0.1
31
- Requires-Dist: rapidfuzz==3.12.1
29
+ Requires-Dist: python-dotenv==1.1.0
30
+ Requires-Dist: rapidfuzz==3.13.0
32
31
  Requires-Dist: requests==2.32.3
33
- Requires-Dist: ytmusicapi==1.10.1
32
+ Requires-Dist: ytmusicapi==1.10.3
34
33
  Provides-Extra: dev
35
34
  Requires-Dist: pytest; extra == "dev"
36
35
  Dynamic: license-file
@@ -96,7 +95,7 @@ Feel free to request any music platform you would like me to add by opening an i
96
95
 
97
96
  ## Installation
98
97
 
99
- You can install the package using pip. Make sure you have Python 3.8 or higher installed.
98
+ You can install the package using pip. Make sure you have Python 3.9 or higher installed.
100
99
 
101
100
  ```bash
102
101
  pip install -U yutipy
@@ -1,4 +1,4 @@
1
- yutipy/__init__.py,sha256=qcQS17OJL9NNnQuT_gW5t6ygHawjHhqwz2hmjjDF__M,376
1
+ yutipy/__init__.py,sha256=eURfdAFBvA9xF6cuUJUMWLf44LHxRQuXONfIPD-CkIQ,268
2
2
  yutipy/deezer.py,sha256=YZs2ilHL3pwc3AB9CmctKlyZ4GfD6qcMjZ6dgjYVxXo,11397
3
3
  yutipy/exceptions.py,sha256=fur945x1Ibu7yeIPDRsOcujfVRRa5JHQw27dsOUreK4,1393
4
4
  yutipy/itunes.py,sha256=hXMybI_lVWgAZ6QE4q_F1jOmWqIBShYQnn9nZUa8XW8,7922
@@ -6,16 +6,16 @@ yutipy/kkbox.py,sha256=tS5LqIMlExvW1tUxMEhFXs9d9t5iFMxPp1mgaf9l7uk,14184
6
6
  yutipy/logger.py,sha256=cHCjpDslVsBOnp7jluqrOOi4ekDIggPhbSfqHeIfT-U,1263
7
7
  yutipy/models.py,sha256=vvWIA3MwCOOM2CBHSabqmFXz4NdVHaQtObU6zhGpJOM,1931
8
8
  yutipy/musicyt.py,sha256=6BvHM6SK8kSdFlGlWZIXThljIVhpwqEGUYZ7LMmXqbE,9226
9
- yutipy/spotify.py,sha256=9bE-qRS_Tz7F5J3T-6tSUWtimbjwczmuL-liOAOLyX8,34667
9
+ yutipy/spotify.py,sha256=7BG9iv42mQk5CGAd7879fvUwo5ImpQlbFf3yfAzhnQI,34722
10
10
  yutipy/yutipy_music.py,sha256=3ry1KHukTInWV7xxzigYB-zWsAupBUXiAoL0F61Bmis,6531
11
11
  yutipy/cli/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  yutipy/cli/config.py,sha256=6p69ZlT3ebUH5wzhd0iisLYKOnYX6xTSzoyrdBwGNo0,3230
13
13
  yutipy/cli/search.py,sha256=8SQw0bjRzRqAg-FuVz9aWjB2KBZqmCf38SyKAQ3rx5E,3025
14
- yutipy/utils/__init__.py,sha256=AY1L9yFznlBzuDquyz7AnWB7t9BfFhnXJewc20hMSK4,325
14
+ yutipy/utils/__init__.py,sha256=AZaqvs6AJwnqwJuodbGnHu702WSUqc8plVC16SppOcU,239
15
15
  yutipy/utils/helpers.py,sha256=W3g9iqoSygcFFCKCp2sk0NQrZOEG26wI2XuNi9pgAXE,5207
16
- yutipy-1.6.12.dist-info/licenses/LICENSE,sha256=_89JsS2QnBG8tAb5-VWbJDj_uJ002zPJAYBJJdh3DPY,1071
17
- yutipy-1.6.12.dist-info/METADATA,sha256=X3qFVrJRJsoiBYc_s6Kax5lDQltQixUASipVKnFrfhM,6545
18
- yutipy-1.6.12.dist-info/WHEEL,sha256=lTU6B6eIfYoiQJTZNc-fyaR6BpL6ehTzU3xGYxn2n8k,91
19
- yutipy-1.6.12.dist-info/entry_points.txt,sha256=BrgmanaPjQqKQ3Ip76JLcsPgGANtrBSURf5CNIxl1HA,106
20
- yutipy-1.6.12.dist-info/top_level.txt,sha256=t2A5V2_mUcfnHkbCy6tAQlb3909jDYU5GQgXtA4756I,7
21
- yutipy-1.6.12.dist-info/RECORD,,
16
+ yutipy-2.0.0.dist-info/licenses/LICENSE,sha256=_89JsS2QnBG8tAb5-VWbJDj_uJ002zPJAYBJJdh3DPY,1071
17
+ yutipy-2.0.0.dist-info/METADATA,sha256=3KzURL_aKX4g6PHVo0RYO_cMxTnQ8cCHNeXVZsMxvRE,6494
18
+ yutipy-2.0.0.dist-info/WHEEL,sha256=pxyMxgL8-pra_rKaQ4drOZAegBVuX-G_4nRHjjgWbmo,91
19
+ yutipy-2.0.0.dist-info/entry_points.txt,sha256=BrgmanaPjQqKQ3Ip76JLcsPgGANtrBSURf5CNIxl1HA,106
20
+ yutipy-2.0.0.dist-info/top_level.txt,sha256=t2A5V2_mUcfnHkbCy6tAQlb3909jDYU5GQgXtA4756I,7
21
+ yutipy-2.0.0.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (78.1.1)
2
+ Generator: setuptools (79.0.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5