neptune-sdk 0.0.1.dev615__tar.gz → 0.0.1.dev683__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.dev615
3
+ Version: 0.0.1.dev683
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.dev615"
17
+ version = "0.0.1.dev683"
18
18
 
19
19
  [dependency-groups]
20
20
  dev = [
@@ -235,6 +235,10 @@ class NeptuneClient:
235
235
  """Recheck torrent data integrity."""
236
236
  self._call("torrent.recheck", InfoHashRequest(info_hash=info_hash))
237
237
 
238
+ def torrent_reannounce(self, info_hash: str) -> None:
239
+ """Force immediate re-announce to all trackers."""
240
+ self._call("torrent.reannounce", InfoHashRequest(info_hash=info_hash))
241
+
238
242
  # ── torrent — custom ───────────────────────────────────────────────
239
243
 
240
244
  def torrent_custom_set(self, info_hash: str, key: str, value: str) -> None:
@@ -66,6 +66,7 @@ class Peer:
66
66
  download_rate: int
67
67
  upload_rate: int
68
68
  is_incoming: bool
69
+ encrypted: bool
69
70
 
70
71
 
71
72
  @dataclass(frozen=True, slots=True, kw_only=True)
@@ -154,6 +154,7 @@ def test_torrent_peers(mock_api, client):
154
154
  "download_rate": 1000,
155
155
  "upload_rate": 500,
156
156
  "is_incoming": False,
157
+ "encrypted": False,
157
158
  }
158
159
  ]
159
160
  }