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 +18 -15
- yutipy/spotify.py +4 -0
- yutipy/utils/__init__.py +2 -6
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/METADATA +6 -7
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/RECORD +9 -9
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/WHEEL +1 -1
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/entry_points.txt +0 -0
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/licenses/LICENSE +0 -0
- {yutipy-1.6.12.dist-info → yutipy-2.0.0.dist-info}/top_level.txt +0 -0
yutipy/__init__.py
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
|
-
from
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
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:
|
|
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.
|
|
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
|
|
31
|
-
Requires-Dist: rapidfuzz==3.
|
|
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.
|
|
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.
|
|
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=
|
|
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=
|
|
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=
|
|
14
|
+
yutipy/utils/__init__.py,sha256=AZaqvs6AJwnqwJuodbGnHu702WSUqc8plVC16SppOcU,239
|
|
15
15
|
yutipy/utils/helpers.py,sha256=W3g9iqoSygcFFCKCp2sk0NQrZOEG26wI2XuNi9pgAXE,5207
|
|
16
|
-
yutipy-
|
|
17
|
-
yutipy-
|
|
18
|
-
yutipy-
|
|
19
|
-
yutipy-
|
|
20
|
-
yutipy-
|
|
21
|
-
yutipy-
|
|
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,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|