weed-cli 1.3.2__tar.gz → 1.4.1__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.
- {weed_cli-1.3.2 → weed_cli-1.4.1}/PKG-INFO +1 -1
- {weed_cli-1.3.2 → weed_cli-1.4.1}/node.py +8 -2
- {weed_cli-1.3.2 → weed_cli-1.4.1}/pyproject.toml +1 -1
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/PKG-INFO +1 -1
- {weed_cli-1.3.2 → weed_cli-1.4.1}/LICENSE +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/README.md +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/dht.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/discovery_relay.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/lightning_settle.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/poc_reputation.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/setup.cfg +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/shell.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/tunnel_relay.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/web_ui.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed.py +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/SOURCES.txt +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/dependency_links.txt +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/entry_points.txt +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/requires.txt +0 -0
- {weed_cli-1.3.2 → weed_cli-1.4.1}/weed_cli.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: weed-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Censorship-resistant video PoC — discovery/hosting/download over signed relay events, a real Kademlia DHT, or a TLS-capable NAT-traversal tunnel
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: p2p,video,censorship-resistant,discovery,dht,kademlia,nat-traversal
|
|
@@ -741,8 +741,14 @@ def select_host(candidates, k=3, reputation=None, trust_in_signers=None):
|
|
|
741
741
|
print(f" x {c['host']}: failed possession challenge ({k} chunks sampled) — skipping")
|
|
742
742
|
continue
|
|
743
743
|
price = get_price(conn)
|
|
744
|
-
except OSError as e:
|
|
745
|
-
|
|
744
|
+
except (OSError, ValueError, KeyError) as e:
|
|
745
|
+
# ValueError also catches json.JSONDecodeError: a tunnel CONNECT
|
|
746
|
+
# paired with a dead/gone registration (or any host that closes
|
|
747
|
+
# mid-protocol) reads back '' instead of raising a socket error,
|
|
748
|
+
# and a malformed INFO dict raises KeyError on ['sha256'] above —
|
|
749
|
+
# either way this is one bad candidate, not a reason to abort the
|
|
750
|
+
# whole auction.
|
|
751
|
+
print(f" x {c['host']}: unreachable ({type(e).__name__}: {e})")
|
|
746
752
|
continue
|
|
747
753
|
rep_score, rep_why = (reputation.trust_score(c['signer_pubkey'], trust_in_signers)
|
|
748
754
|
if reputation else (0.5, 'no reputation store'))
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "weed-cli"
|
|
7
|
-
version = "1.
|
|
7
|
+
version = "1.4.1"
|
|
8
8
|
description = "Censorship-resistant video PoC — discovery/hosting/download over signed relay events, a real Kademlia DHT, or a TLS-capable NAT-traversal tunnel"
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: weed-cli
|
|
3
|
-
Version: 1.
|
|
3
|
+
Version: 1.4.1
|
|
4
4
|
Summary: Censorship-resistant video PoC — discovery/hosting/download over signed relay events, a real Kademlia DHT, or a TLS-capable NAT-traversal tunnel
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: p2p,video,censorship-resistant,discovery,dht,kademlia,nat-traversal
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|