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.
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/PKG-INFO +1 -1
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/pyproject.toml +1 -1
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/src/neptune_sdk/client.py +16 -0
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/src/neptune_sdk/models.py +14 -0
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/src/neptune_sdk/__init__.py +0 -0
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/src/neptune_sdk/exceptions.py +0 -0
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/tests/__init__.py +0 -0
- {neptune_sdk-0.0.1.dev720 → neptune_sdk-0.0.1.dev736}/tests/test_client.py +0 -0
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|