unaiverse 0.1.3__py3-none-any.whl → 0.1.5__py3-none-any.whl

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.

Potentially problematic release.


This version of unaiverse might be problematic. Click here for more details.

@@ -173,12 +173,6 @@ class ConnectionPools:
173
173
  print(f"[DEBUG CONNECTIONS-POOL] Connecting to {addresses}")
174
174
 
175
175
  try:
176
- a = []
177
- for address in addresses:
178
- if "/tcp/" not in address:
179
- a.append(address)
180
- addresses = a
181
-
182
176
  winning_addr_info_dict = p2p.connect_to(addresses)
183
177
  peer_id = winning_addr_info_dict.get('ID')
184
178
  connected_addr_str = winning_addr_info_dict.get('Addrs')[0]
@@ -391,7 +391,7 @@ func setupNotifiers(instanceIndex int) {
391
391
  // or if there were multiple connection events. Update generously.
392
392
  if epi, exists := instanceConnectedPeers[remotePeerID]; exists {
393
393
  epi.Addrs = finalPeerAddrs // Update with the new comprehensive list
394
- epi.Direction = directionString
394
+ // epi.Direction = directionString
395
395
  instanceConnectedPeers[remotePeerID] = epi
396
396
  } else {
397
397
  instanceConnectedPeers[remotePeerID] = ExtendedPeerInfo{
@@ -219,7 +219,8 @@ class P2P:
219
219
  addresses_quic = [a for a in self._address_cache if "/quic-v1/" in a]
220
220
  addresses_webrtc = [a for a in self._address_cache if "/webrtc" in a]
221
221
  addresses_tcp = [a for a in self._address_cache if "/tcp/" in a]
222
- addresses = addresses_quic + addresses_webrtc + addresses_tcp
222
+ addresses_ws = [a for a in self._address_cache if "/ws" in a]
223
+ addresses = addresses_quic + addresses_webrtc + addresses_tcp + addresses_ws
223
224
  self._address_cache.clear()
224
225
  for _addr in addresses:
225
226
  self._address_cache.append(_addr)
@@ -228,13 +229,6 @@ class P2P:
228
229
  logger.info(f"👂 [Instance {self._instance}] Listening on: {self._address_cache}")
229
230
  logger.info(f"🌐 [Instance {self._instance}] Publicly reachable: {self._is_public}")
230
231
 
231
- # Start background threads if desired (currently commented out in original)
232
- # logger.info(f"[Instance {self._instance}] 🧵 Starting background polling threads...")
233
- # self._get_connected_peers_thread = threading.Thread(...)
234
- # self._get_connected_peers_thread.start()
235
- # self._check_message_queue_thread = threading.Thread(...)
236
- # self._check_message_queue_thread.start()
237
-
238
232
  logger.info(f"🎉 [Instance {self._instance}] Node initialized successfully.")
239
233
 
240
234
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: unaiverse
3
- Version: 0.1.3
3
+ Version: 0.1.5
4
4
  Summary: UNaIVERSE: A Collectionless AI Project. The new web of humans & AI Agents, built on privacy, control, and reduced energy consumption.
5
5
  Author-email: Stefano Melacci <stefano.melacci@unisi.it>, Christian Di Maio <christian.dimaio@phd.unipi.it>, Tommaso Guidi <tommaso.guidi.1998@gmail.com>
6
6
  Maintainer-email: Stefano Melacci <stefano.melacci@unisi.it>, Christian Di Maio <christian.dimaio@phd.unipi.it>, Tommaso Guidi <tommaso.guidi.1998@gmail.com>
@@ -17,19 +17,19 @@ unaiverse/modules/hl/__init__.py,sha256=zG1j2LCuLKOAdOc5csSs52yLSyjHllF96z0hPn-p
17
17
  unaiverse/modules/hl/hl_utils.py,sha256=Xt2eWuwak6kDtTy2hQ1Ps8_M_REtte9HA-PzfCovlA8,18292
18
18
  unaiverse/networking/__init__.py,sha256=qc3A8KJpTLFM6hefwmqj-wAaUULtzXivaXsr-xKKYGU,2460
19
19
  unaiverse/networking/node/__init__.py,sha256=DEXbZzPt7dgall1TZKODuQIXhjq3lr39QCBISGUSWww,2508
20
- unaiverse/networking/node/connpool.py,sha256=hctRoYYGZA2D7sy1elIgE7o4umm8B9dZKq-QI0bgE24,52726
20
+ unaiverse/networking/node/connpool.py,sha256=JrtWKKuoHfQ80iMFJcsVBZ37T_qgchQ0q51hZEyK0tM,52561
21
21
  unaiverse/networking/node/node.py,sha256=q740PylBIqHm6jKN32A1_meYUhbmHdDWmZ9ySJ7sMkY,117733
22
22
  unaiverse/networking/node/profile.py,sha256=lbB35MoI20oDxDqb97zH2NNNUCGJs8-8KIGNjjmnTio,20203
23
23
  unaiverse/networking/node/tokens.py,sha256=UHyPnl6TDvPitrkP2AYAIegSWq4CpvsjRvmio3T-3nA,5281
24
24
  unaiverse/networking/p2p/__init__.py,sha256=ikRpQyJa2PRIeCLXcMWLWioJyyu1aS5I6twArCkhGhQ,13599
25
25
  unaiverse/networking/p2p/golibp2p.py,sha256=ibVCLERzM2JgPP_A5FTooCoxYW5Zm2HBbzX28aQIFzo,2450
26
26
  unaiverse/networking/p2p/golibp2p.pyi,sha256=ri7ZL8LQHx2rnwhXmQ9q2RiaTXeU6nitw1lB_L5Bhq4,4079
27
- unaiverse/networking/p2p/lib.go,sha256=l40IsZEC4a70LfJr8qzl8YDuh-fAcOaqaMPDLNG7IkI,108699
27
+ unaiverse/networking/p2p/lib.go,sha256=1wbEB4aVYMFObxB4oBcpBfo9-oR5uSx5WUryyOyu1Y4,108702
28
28
  unaiverse/networking/p2p/lib_types.py,sha256=b7NJmN636o-X3TEWdp4YVIJ9Snr8AGT0GUuaYITZ6PY,13956
29
29
  unaiverse/networking/p2p/message_pb2.py,sha256=-kEXvIYJZqGOh47i5e7qYHZdsKJ5uQtfDVQrnrAewCg,5697
30
30
  unaiverse/networking/p2p/messages.py,sha256=6fN-3INvnUoWu_YwQPfx4WRx8DD7LEOu511nRWKI-fM,12287
31
31
  unaiverse/networking/p2p/mylogger.py,sha256=-WW6qT39rptXwUlpQg1BuU7u8o9MKLF_-Cbe7EaQKsc,4773
32
- unaiverse/networking/p2p/p2p.py,sha256=JSGhIBmz4KMsC0RfkvgQS-7Tu5QveW1sYwDmTuwBHSU,47070
32
+ unaiverse/networking/p2p/p2p.py,sha256=GlJ3CZcT34DnKwpxjpWryIHnZ6TId0KNuyKni2gXB9M,46716
33
33
  unaiverse/streamlib/__init__.py,sha256=VpsL7-gwML7nbrMQumtEDpuEH4g7iNqQaCzd-zX49cQ,2447
34
34
  unaiverse/streamlib/streamlib.py,sha256=yz6G8eez3VnF_fvA9G3KS-WCoLvPYlk0IdqdB9dDzOI,10366
35
35
  unaiverse/utils/__init__.py,sha256=_iomQ_GviAS5c4ZVBrm1h_rLYWH-f-T9SI-b0697gn0,2464
@@ -38,8 +38,8 @@ unaiverse/utils/lone_wolf.json,sha256=_rHfeqV8gqvPc0h-cZF7mPCG0Z4HuVkV-mKoXXwjbN
38
38
  unaiverse/utils/misc.py,sha256=4J3HotzosgsnEr9MgeuQmdrrISPuKl85oOAuKAfcz-U,12085
39
39
  unaiverse/utils/sandbox.py,sha256=S_eocNIGTyckovYMxmWb56wsCG7M-mxmGHqdLavSWQA,14436
40
40
  unaiverse/utils/server.py,sha256=hCxHTNmYGrgGYrwZ5RaQ9kdmmfqWuIVTUdPYLCwpTQU,21974
41
- unaiverse-0.1.3.dist-info/licenses/LICENSE,sha256=02v7juVPTazXHV7TG9WtaWrtmeC3BAd49itKH_SiHOs,1396
42
- unaiverse-0.1.3.dist-info/METADATA,sha256=2ejMnoqYMw_cQf-WUy3yphAQ8Y7t2UpjM_vhluv_ci0,18268
43
- unaiverse-0.1.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
- unaiverse-0.1.3.dist-info/top_level.txt,sha256=0rP09tH9hv17TDQs66OHbJaRSnADpZsDsODy6JVsTtw,10
45
- unaiverse-0.1.3.dist-info/RECORD,,
41
+ unaiverse-0.1.5.dist-info/licenses/LICENSE,sha256=02v7juVPTazXHV7TG9WtaWrtmeC3BAd49itKH_SiHOs,1396
42
+ unaiverse-0.1.5.dist-info/METADATA,sha256=KpjCv7g5AeM532_8l-Hg7mOkopGaIsUS8JX-xQH0FRY,18268
43
+ unaiverse-0.1.5.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
44
+ unaiverse-0.1.5.dist-info/top_level.txt,sha256=0rP09tH9hv17TDQs66OHbJaRSnADpZsDsODy6JVsTtw,10
45
+ unaiverse-0.1.5.dist-info/RECORD,,