neptune-sdk 0.0.1.dev720__tar.gz → 0.0.1.dev736__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.dev720
3
+ Version: 0.0.1.dev736
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,7 +14,7 @@ dependencies = [
14
14
  "httpx>=0.27",
15
15
  "pydantic>=2",
16
16
  ]
17
- version = "0.0.1.dev720"
17
+ version = "0.0.1.dev736"
18
18
 
19
19
  [dependency-groups]
20
20
  dev = [
@@ -18,6 +18,7 @@ from .models import (
18
18
  AddTorrentResponse,
19
19
  AddTrackerRequest,
20
20
  DelCustomRequest,
21
+ GetRecheckOnCompleteResponse,
21
22
  InfoHashRequest,
22
23
  ListTorrentRequest,
23
24
  MoveTorrentRequest,
@@ -27,6 +28,7 @@ from .models import (
27
28
  SetCustomRequest,
28
29
  SetFilePriorityRequest,
29
30
  SetGlobalSpeedLimitRequest,
31
+ SetRecheckOnCompleteRequest,
30
32
  SetSpeedLimitRequest,
31
33
  TagsRequest,
32
34
  TorrentFilesResponse,
@@ -299,6 +301,20 @@ class NeptuneClient:
299
301
  """Get global download/upload speed limits."""
300
302
  return _validate(TransferConfig, self._call("client.get_transfer_config"))
301
303
 
304
+ def client_set_recheck_on_complete(self, enabled: bool) -> None:
305
+ """Enable/disable automatic recheck on download completion."""
306
+ self._call(
307
+ "client.set_recheck_on_complete",
308
+ SetRecheckOnCompleteRequest(enabled=enabled),
309
+ )
310
+
311
+ def client_get_recheck_on_complete(self) -> GetRecheckOnCompleteResponse:
312
+ """Check whether automatic recheck on completion is enabled."""
313
+ return _validate(
314
+ GetRecheckOnCompleteResponse,
315
+ self._call("client.get_recheck_on_complete"),
316
+ )
317
+
302
318
  # ── torrent — file priority ────────────────────────────────────────
303
319
 
304
320
  def torrent_set_file_priority(
@@ -223,6 +223,20 @@ class ReplaceTrackersRequest:
223
223
  replacements: dict[str, str]
224
224
 
225
225
 
226
+ @dataclass(frozen=True, slots=True, kw_only=True)
227
+ class SetRecheckOnCompleteRequest:
228
+ """Parameters for client.set_recheck_on_complete."""
229
+
230
+ enabled: bool
231
+
232
+
233
+ @dataclass(frozen=True, slots=True, kw_only=True)
234
+ class GetRecheckOnCompleteResponse:
235
+ """Response for client.get_recheck_on_complete."""
236
+
237
+ enabled: bool
238
+
239
+
226
240
  # ── Response types ────────────────────────────────────────────────────
227
241
 
228
242