cdmclient 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.
@@ -1,16 +1,16 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: cdmclient
3
- Version: 1.2.7
3
+ Version: 1.3.0
4
4
  Summary: CDM - Centralized Download Manager Client
5
5
  Project-URL: Homepage, https://github.com/radaron/CDMServer/tree/master/client
6
6
  Project-URL: Repository, https://github.com/radaron/CDMServer
7
- Author-email: Aron Radics <radics.aron.jozsef@gmail.com>
7
+ Author-email: Aron Radics <radaron@radaron.hu>
8
8
  Classifier: Operating System :: OS Independent
9
9
  Classifier: Programming Language :: Python :: 3
10
10
  Requires-Python: >=3.9
11
11
  Requires-Dist: cryptography
12
+ Requires-Dist: httpx>=0.27
12
13
  Requires-Dist: qbittorrent-api>=2025.7.0
13
- Requires-Dist: requests
14
14
  Requires-Dist: sqlalchemy>=2.0.0
15
15
  Requires-Dist: transmission-rpc
16
16
  Description-Content-Type: text/markdown
@@ -6,7 +6,7 @@ from logging.handlers import SysLogHandler
6
6
  from time import sleep
7
7
  from typing import Optional
8
8
 
9
- import requests
9
+ import httpx
10
10
 
11
11
  from cdm_client.config import Config
12
12
  from cdm_client.database_adapter import DatabaseAdapter
@@ -49,21 +49,22 @@ class CDMClient:
49
49
  return logger
50
50
 
51
51
  def _update_status(self, status_data: list[dict]) -> None:
52
- resp = requests.post(
52
+ resp = httpx.post(
53
53
  f"{self._config['server_host']}/api/client/status/",
54
54
  json={"data": status_data},
55
55
  headers={"x-api-key": self._config["api_key"]},
56
56
  timeout=5,
57
+ follow_redirects=True,
57
58
  )
58
59
  resp.raise_for_status()
59
60
 
60
61
  def _download_files(self, files: dict[int, str]) -> None:
61
62
  for tracker_id, path in files.items():
62
- resp = requests.get(
63
+ resp = httpx.get(
63
64
  f"{self._config['server_host']}/api/client/download/{tracker_id}/",
64
65
  headers={"x-api-key": self._config["api_key"]},
65
- stream=True,
66
66
  timeout=5,
67
+ follow_redirects=True,
67
68
  )
68
69
  resp.raise_for_status()
69
70
  new_torrent = self._torrent_client_adapter.add_torrent(
@@ -192,10 +193,11 @@ class CDMClient:
192
193
  self._logger.warning("File not found during deletion")
193
194
 
194
195
  def _get_order(self) -> None:
195
- resp = requests.get(
196
+ resp = httpx.get(
196
197
  f"{self._config['server_host']}/api/client/",
197
198
  headers={"x-api-key": self._config["api_key"]},
198
199
  timeout=5,
200
+ follow_redirects=True,
199
201
  )
200
202
  resp.raise_for_status()
201
203
 
@@ -1,8 +1,8 @@
1
1
  [project]
2
2
  name = "cdmclient"
3
- version = "1.2.7"
3
+ version = "1.3.0"
4
4
  description = "CDM - Centralized Download Manager Client"
5
- authors = [{name = "Aron Radics", email = "radics.aron.jozsef@gmail.com"}]
5
+ authors = [{name = "Aron Radics", email = "radaron@radaron.hu"}]
6
6
  requires-python = ">=3.9"
7
7
  readme = "README.md"
8
8
  classifiers = [
@@ -10,7 +10,7 @@ classifiers = [
10
10
  "Operating System :: OS Independent",
11
11
  ]
12
12
  dependencies = [
13
- "requests",
13
+ "httpx>=0.27",
14
14
  "transmission_rpc",
15
15
  "cryptography",
16
16
  "sqlalchemy>=2.0.0",
@@ -24,11 +24,6 @@ Repository = "https://github.com/radaron/CDMServer"
24
24
  [project.scripts]
25
25
  cdm-client = "cdm_client.cdm_client:main"
26
26
 
27
- [dependency-groups]
28
- dev = [
29
- "types-requests>=2.32.4.20250913",
30
- ]
31
-
32
27
  [tool.ty.environment]
33
28
  python-version = "3.9"
34
29
 
File without changes
File without changes
File without changes
File without changes