deezer-oauth-cli 1.2.7__tar.gz → 1.3.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.
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/PKG-INFO +3 -3
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/pyproject.toml +4 -4
- deezer_oauth_cli-1.3.0/src/deezer_oauth/__init__.py +1 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/client.py +2 -2
- deezer_oauth_cli-1.2.7/src/deezer_oauth/__init__.py +0 -1
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/LICENSE +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/README.md +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/__main__.py +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/constants.py +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/files.py +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/main.py +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/py.typed +0 -0
- {deezer_oauth_cli-1.2.7 → deezer_oauth_cli-1.3.0}/src/deezer_oauth/server.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: deezer-oauth-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.3.0
|
|
4
4
|
Summary: A small CLI to quickly obtain an API token for Deezer API.
|
|
5
5
|
Home-page: https://github.com/browniebroke/deezer-oauth-cli
|
|
6
6
|
License: MIT
|
|
@@ -19,9 +19,9 @@ Classifier: Programming Language :: Python :: 3.10
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.11
|
|
20
20
|
Classifier: Programming Language :: Python :: 3.12
|
|
21
21
|
Classifier: Topic :: Software Development :: Libraries
|
|
22
|
-
Requires-Dist:
|
|
22
|
+
Requires-Dist: httpx (>=0.27.0)
|
|
23
23
|
Requires-Dist: rich (>=10)
|
|
24
|
-
Requires-Dist: typer[all] (>=0.12.0
|
|
24
|
+
Requires-Dist: typer[all] (>=0.12.0)
|
|
25
25
|
Project-URL: Bug Tracker, https://github.com/browniebroke/deezer-oauth-cli/issues
|
|
26
26
|
Project-URL: Changelog, https://github.com/browniebroke/deezer-oauth-cli/blob/main/CHANGELOG.md
|
|
27
27
|
Project-URL: Documentation, https://github.com/browniebroke/deezer-oauth-cli/blob/main/README.md
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "deezer-oauth-cli"
|
|
3
|
-
version = "1.
|
|
3
|
+
version = "1.3.0"
|
|
4
4
|
description = "A small CLI to quickly obtain an API token for Deezer API."
|
|
5
5
|
authors = ["Bruno Alla <alla.brunoo@gmail.com>"]
|
|
6
6
|
license = "MIT"
|
|
@@ -30,16 +30,16 @@ deezer-oauth = "deezer_oauth.main:app"
|
|
|
30
30
|
|
|
31
31
|
[tool.poetry.dependencies]
|
|
32
32
|
python = "^3.8"
|
|
33
|
-
|
|
33
|
+
httpx = ">=0.27.0"
|
|
34
34
|
rich = ">=10"
|
|
35
|
-
typer = {extras = ["all"], version = "
|
|
35
|
+
typer = {extras = ["all"], version = ">=0.12.0"}
|
|
36
36
|
|
|
37
37
|
[tool.poetry.group.dev.dependencies]
|
|
38
38
|
pyfakefs = "^5.0"
|
|
39
39
|
pytest = "^8.0.0"
|
|
40
40
|
pytest-cov = "^5.0.0"
|
|
41
41
|
pytest-mock = "^3.6"
|
|
42
|
-
|
|
42
|
+
respx = "^0.21.1"
|
|
43
43
|
|
|
44
44
|
[tool.semantic_release]
|
|
45
45
|
version_toml = ["pyproject.toml:tool.poetry.version"]
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.0"
|
|
@@ -2,7 +2,7 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
from urllib.parse import parse_qsl, urlencode
|
|
4
4
|
|
|
5
|
-
import
|
|
5
|
+
import httpx
|
|
6
6
|
|
|
7
7
|
from deezer_oauth.constants import HOST_NAME, OAUTH_RETURN_PATH, SERVER_PORT
|
|
8
8
|
|
|
@@ -49,7 +49,7 @@ class OAuthDancer:
|
|
|
49
49
|
}
|
|
50
50
|
)
|
|
51
51
|
url = f"{self.base_url}/oauth/access_token.php?{query}"
|
|
52
|
-
response =
|
|
52
|
+
response = httpx.get(url, timeout=10)
|
|
53
53
|
content = response.content.decode()
|
|
54
54
|
# The body looks like this: 'access_token=blah&expires=1234'
|
|
55
55
|
# -> parse this as querystring and convert to a dictionary
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.2.7"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|