yutipy 2.2.8__tar.gz → 2.2.10__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.
- {yutipy-2.2.8 → yutipy-2.2.10}/PKG-INFO +4 -4
- {yutipy-2.2.8 → yutipy-2.2.10}/README.md +1 -1
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/index.rst +1 -1
- {yutipy-2.2.8 → yutipy-2.2.10}/pyproject.toml +2 -2
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/base_clients.py +4 -4
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/PKG-INFO +4 -4
- {yutipy-2.2.8 → yutipy-2.2.10}/.gitattributes +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/FUNDING.yml +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/dependabot.yml +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/workflows/pytest-unit-testing.yml +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.github/workflows/release.yml +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.gitignore +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/.readthedocs.yaml +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/LICENSE +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/MANIFEST.in +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/Makefile +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/_static/yutipy_header.png +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/_static/yutipy_logo.png +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/api_reference.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/available_platforms.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/cli.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/conf.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/faq.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/installation.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/make.bat +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/requirements.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/docs/usage_examples.rst +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/requirements-dev.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/requirements.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/setup.cfg +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/__init__.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_deezer.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_itunes.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_kkbox.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_lastfm.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_models.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_musicyt.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_spotify.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/tests/test_utils.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/__init__.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/cli/__init__.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/cli/config.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/cli/search.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/deezer.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/exceptions.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/itunes.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/kkbox.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/lastfm.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/logger.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/models.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/musicyt.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/spotify.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/utils/__init__.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/utils/helpers.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy/yutipy_music.py +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/SOURCES.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/dependency_links.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/entry_points.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/requires.txt +0 -0
- {yutipy-2.2.8 → yutipy-2.2.10}/yutipy.egg-info/top_level.txt +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yutipy
|
|
3
|
-
Version: 2.2.
|
|
4
|
-
Summary: A simple package
|
|
3
|
+
Version: 2.2.10
|
|
4
|
+
Summary: A simple Python package to interact with various music platforms APIs.
|
|
5
5
|
Author: Cheap Nightbot
|
|
6
6
|
Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
7
7
|
Maintainer-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
@@ -12,7 +12,7 @@ Project-URL: Repository, https://github.com/CheapNightbot/yutipy.git
|
|
|
12
12
|
Project-URL: Issues, https://github.com/CheapNightbot/yutipy/issues
|
|
13
13
|
Project-URL: Changelog, https://github.com/CheapNightbot/yutipy/blob/master/CHANGELOG.md
|
|
14
14
|
Project-URL: funding, https://ko-fi.com/cheapnightbot
|
|
15
|
-
Keywords: music,API,Deezer,iTunes,KKBox,Spotify,YouTube Music,search,retrieve,information,yutify
|
|
15
|
+
Keywords: music,API,Deezer,iTunes,KKBox,Lastfm,Spotify,YouTube Music,search,retrieve,information,yutify
|
|
16
16
|
Classifier: Development Status :: 4 - Beta
|
|
17
17
|
Classifier: Intended Audience :: Developers
|
|
18
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -59,7 +59,7 @@ Dynamic: license-file
|
|
|
59
59
|
</a>
|
|
60
60
|
</p>
|
|
61
61
|
|
|
62
|
-
A _**simple**_ Python package
|
|
62
|
+
A _**simple**_ Python package to interact with various music platforms APIs.
|
|
63
63
|
|
|
64
64
|
## Table of Contents
|
|
65
65
|
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</a>
|
|
24
24
|
</p>
|
|
25
25
|
|
|
26
|
-
A _**simple**_ Python package
|
|
26
|
+
A _**simple**_ Python package to interact with various music platforms APIs.
|
|
27
27
|
|
|
28
28
|
## Table of Contents
|
|
29
29
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
:target: https://github.com/CheapNightbot/yutipy
|
|
4
4
|
:align: center
|
|
5
5
|
|
|
6
|
-
**yutipy** is a Python package
|
|
6
|
+
**yutipy** is a Python package to interact and retrieving music information from various music platforms (see list of :doc:`available muisc platforms <available_platforms>`).
|
|
7
7
|
This documentation will help you get started with yutipy and provide detailed information about its features and usage.
|
|
8
8
|
|
|
9
9
|
.. raw:: html
|
|
@@ -20,10 +20,10 @@ authors = [
|
|
|
20
20
|
maintainers = [
|
|
21
21
|
{name = "Cheap Nightbot", email = "hi@cheapnightbot.slmail.me"}
|
|
22
22
|
]
|
|
23
|
-
description = "A simple package
|
|
23
|
+
description = "A simple Python package to interact with various music platforms APIs."
|
|
24
24
|
readme = "README.md"
|
|
25
25
|
license = "MIT"
|
|
26
|
-
keywords = ["music", "API", "Deezer", "iTunes", "KKBox", "Spotify", "YouTube Music", "search", "retrieve", "information", "yutify"]
|
|
26
|
+
keywords = ["music", "API", "Deezer", "iTunes", "KKBox", "Lastfm", "Spotify", "YouTube Music", "search", "retrieve", "information", "yutify"]
|
|
27
27
|
classifiers = [
|
|
28
28
|
"Development Status :: 4 - Beta",
|
|
29
29
|
"Intended Audience :: Developers",
|
|
@@ -87,7 +87,7 @@ class BaseClient:
|
|
|
87
87
|
token_info = None
|
|
88
88
|
try:
|
|
89
89
|
token_info = self.load_access_token()
|
|
90
|
-
if not isinstance(token_info, dict):
|
|
90
|
+
if token_info and not isinstance(token_info, dict):
|
|
91
91
|
raise InvalidValueException(
|
|
92
92
|
"`load_access_token()` should return a dict."
|
|
93
93
|
)
|
|
@@ -96,7 +96,7 @@ class BaseClient:
|
|
|
96
96
|
"`load_access_token` is not implemented. Falling back to in-memory storage and requesting new access token."
|
|
97
97
|
)
|
|
98
98
|
finally:
|
|
99
|
-
if not token_info:
|
|
99
|
+
if not token_info or not token_info.get("access_token"):
|
|
100
100
|
token_info = self._get_access_token()
|
|
101
101
|
self._access_token = token_info.get("access_token")
|
|
102
102
|
self._token_expires_in = token_info.get("expires_in")
|
|
@@ -316,7 +316,7 @@ class BaseAuthClient:
|
|
|
316
316
|
token_info = None
|
|
317
317
|
try:
|
|
318
318
|
token_info = self.load_access_token()
|
|
319
|
-
if not isinstance(token_info, dict):
|
|
319
|
+
if token_info and not isinstance(token_info, dict):
|
|
320
320
|
raise InvalidValueException(
|
|
321
321
|
"`load_access_token()` should return a dict."
|
|
322
322
|
)
|
|
@@ -325,7 +325,7 @@ class BaseAuthClient:
|
|
|
325
325
|
"`load_access_token` is not implemented. Falling back to in-memory storage."
|
|
326
326
|
)
|
|
327
327
|
finally:
|
|
328
|
-
if token_info:
|
|
328
|
+
if token_info and token_info.get("access_token"):
|
|
329
329
|
self._access_token = token_info.get("access_token")
|
|
330
330
|
self._refresh_token = token_info.get("refresh_token")
|
|
331
331
|
self._token_expires_in = token_info.get("expires_in")
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: yutipy
|
|
3
|
-
Version: 2.2.
|
|
4
|
-
Summary: A simple package
|
|
3
|
+
Version: 2.2.10
|
|
4
|
+
Summary: A simple Python package to interact with various music platforms APIs.
|
|
5
5
|
Author: Cheap Nightbot
|
|
6
6
|
Author-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
7
7
|
Maintainer-email: Cheap Nightbot <hi@cheapnightbot.slmail.me>
|
|
@@ -12,7 +12,7 @@ Project-URL: Repository, https://github.com/CheapNightbot/yutipy.git
|
|
|
12
12
|
Project-URL: Issues, https://github.com/CheapNightbot/yutipy/issues
|
|
13
13
|
Project-URL: Changelog, https://github.com/CheapNightbot/yutipy/blob/master/CHANGELOG.md
|
|
14
14
|
Project-URL: funding, https://ko-fi.com/cheapnightbot
|
|
15
|
-
Keywords: music,API,Deezer,iTunes,KKBox,Spotify,YouTube Music,search,retrieve,information,yutify
|
|
15
|
+
Keywords: music,API,Deezer,iTunes,KKBox,Lastfm,Spotify,YouTube Music,search,retrieve,information,yutify
|
|
16
16
|
Classifier: Development Status :: 4 - Beta
|
|
17
17
|
Classifier: Intended Audience :: Developers
|
|
18
18
|
Classifier: Topic :: Software Development :: Libraries
|
|
@@ -59,7 +59,7 @@ Dynamic: license-file
|
|
|
59
59
|
</a>
|
|
60
60
|
</p>
|
|
61
61
|
|
|
62
|
-
A _**simple**_ Python package
|
|
62
|
+
A _**simple**_ Python package to interact with various music platforms APIs.
|
|
63
63
|
|
|
64
64
|
## Table of Contents
|
|
65
65
|
|
|
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
|
|
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
|