neptune-sdk 0.0.1.dev595__tar.gz → 0.0.1.dev602__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,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: neptune-sdk
3
- Version: 0.0.1.dev595
3
+ Version: 0.0.1.dev602
4
4
  Summary: Python SDK for Neptune BitTorrent client JSON-RPC API
5
5
  License-Expression: GPL-3.0-only
6
6
  Requires-Python: >=3.10
@@ -14,14 +14,14 @@ dependencies = [
14
14
  "httpx>=0.27",
15
15
  "pydantic>=2",
16
16
  ]
17
- version = "0.0.1.dev595"
17
+ version = "0.0.1.dev602"
18
18
 
19
19
  [dependency-groups]
20
20
  dev = [
21
21
  "pytest==9.1.1",
22
22
  "respx==0.23.1",
23
23
  "ruff==0.15.20",
24
- "ty==0.0.55",
24
+ "ty==0.0.56",
25
25
  ]
26
26
 
27
27
  [tool.pdm.version]
@@ -34,6 +34,7 @@ from .models import (
34
34
  TorrentListResponse,
35
35
  TorrentPeersResponse,
36
36
  TorrentTrackersResponse,
37
+ TransferConfig,
37
38
  TransferSummary,
38
39
  UpdateCustomRequest,
39
40
  )
@@ -295,6 +296,10 @@ class NeptuneClient:
295
296
  SetGlobalSpeedLimitRequest(limit=limit),
296
297
  )
297
298
 
299
+ def client_get_transfer_config(self) -> TransferConfig:
300
+ """Get global download/upload speed limits."""
301
+ return _validate(TransferConfig, self._call("client.get_transfer_config"))
302
+
298
303
  # ── torrent — file priority ────────────────────────────────────────
299
304
 
300
305
  def torrent_set_file_priority(
@@ -155,6 +155,14 @@ class SetGlobalSpeedLimitRequest:
155
155
  limit: int = 0
156
156
 
157
157
 
158
+ @dataclass(frozen=True, slots=True, kw_only=True)
159
+ class TransferConfig:
160
+ """Response for client.get_transfer_config."""
161
+
162
+ download_limit: int
163
+ upload_limit: int
164
+
165
+
158
166
  @dataclass(frozen=True, slots=True, kw_only=True)
159
167
  class ListTorrentRequest:
160
168
  """Parameters for torrent.list."""