naeural-client 3.0.2__py3-none-any.whl → 3.0.4__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.
- naeural_client/_ver.py +1 -1
- naeural_client/ipfs/r1fs.py +15 -4
- {naeural_client-3.0.2.dist-info → naeural_client-3.0.4.dist-info}/METADATA +1 -1
- {naeural_client-3.0.2.dist-info → naeural_client-3.0.4.dist-info}/RECORD +7 -7
- {naeural_client-3.0.2.dist-info → naeural_client-3.0.4.dist-info}/WHEEL +0 -0
- {naeural_client-3.0.2.dist-info → naeural_client-3.0.4.dist-info}/entry_points.txt +0 -0
- {naeural_client-3.0.2.dist-info → naeural_client-3.0.4.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
naeural_client/ipfs/r1fs.py
CHANGED
@@ -227,6 +227,13 @@ class R1FSEngine:
|
|
227
227
|
s = "[R1FS][DEBUG] " + s
|
228
228
|
self.logger.P(s, *args, **kwargs)
|
229
229
|
return
|
230
|
+
|
231
|
+
def _set_debug(self):
|
232
|
+
"""
|
233
|
+
Force debug mode on.
|
234
|
+
"""
|
235
|
+
self.__debug = True
|
236
|
+
return
|
230
237
|
|
231
238
|
@property
|
232
239
|
def ipfs_id(self):
|
@@ -559,7 +566,7 @@ class R1FSEngine:
|
|
559
566
|
msg += f"\n Download: {self.__downloads_dir}"
|
560
567
|
msg += f"\n Upload: {self.__uploads_dir}"
|
561
568
|
msg += f"\n SwarmKey: {hidden_base64_swarm_key}"
|
562
|
-
self.P(msg, color='
|
569
|
+
self.P(msg, color='d')
|
563
570
|
|
564
571
|
ipfs_repo = os.path.expanduser("~/.ipfs")
|
565
572
|
os.makedirs(ipfs_repo, exist_ok=True)
|
@@ -619,12 +626,16 @@ class R1FSEngine:
|
|
619
626
|
try:
|
620
627
|
my_id = self.__get_id()
|
621
628
|
assert my_id != ERROR_TAG, "Failed to get IPFS ID."
|
622
|
-
|
623
|
-
|
629
|
+
msg = f"Connecting to R1FS relay"
|
630
|
+
msg += f"\n IPFS ID: {my_id}"
|
631
|
+
msg += f"\n IPFS Addr: {self.__ipfs_address}"
|
632
|
+
msg += f"\n IPFS Agent: {self.__ipfs_agent}"
|
633
|
+
msg += f"\n Relay: {ipfs_relay}"
|
634
|
+
self.P(msg, color='m')
|
624
635
|
result = self.__run_command(["ipfs", "swarm", "connect", ipfs_relay])
|
625
636
|
relay_ip = ipfs_relay.split("/")[2]
|
626
637
|
if "connect" in result.lower() and "success" in result.lower():
|
627
|
-
self.P(f"
|
638
|
+
self.P(f"{my_id} connected to: {relay_ip}", color='g', boxed=True)
|
628
639
|
self.__ipfs_started = True
|
629
640
|
else:
|
630
641
|
self.P("Relay connection result did not indicate success.", color='r')
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 3.0.
|
3
|
+
Version: 3.0.4
|
4
4
|
Summary: `naeural_client` is the Python SDK required for client app development for the Naeural Edge Protocol Edge Protocol framework
|
5
5
|
Project-URL: Homepage, https://github.com/NaeuralEdgeProtocol/naeural_client
|
6
6
|
Project-URL: Bug Tracker, https://github.com/NaeuralEdgeProtocol/naeural_client/issues
|
@@ -1,5 +1,5 @@
|
|
1
1
|
naeural_client/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
2
|
-
naeural_client/_ver.py,sha256=
|
2
|
+
naeural_client/_ver.py,sha256=7HXIMZFlcmBUxEX-K8mK6oifoBKxJTnecJBxWsd8Z3Y,330
|
3
3
|
naeural_client/base_decentra_object.py,sha256=C4iwZTkhKNBS4VHlJs5DfElRYLo4Q9l1V1DNVSk1fyQ,4412
|
4
4
|
naeural_client/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
|
5
5
|
naeural_client/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
|
@@ -62,7 +62,7 @@ naeural_client/io_formatter/default/aixp1.py,sha256=MX0TeUR4APA-qN3vUC6uzcz8Pssz
|
|
62
62
|
naeural_client/io_formatter/default/default.py,sha256=gEy78cP2D5s0y8vQh4aHuxqz7D10gGfuiKF311QhrpE,494
|
63
63
|
naeural_client/ipfs/__init__.py,sha256=vXEDLUNUO6lOTMGa8iQ9Zf7ajIQq9GZuvYraAHt3meE,38
|
64
64
|
naeural_client/ipfs/ifps_keygen,sha256=PcoYuo4c89_C9FWrKq9K_28ruhKqnxNn1s3nLHiF1tc,879
|
65
|
-
naeural_client/ipfs/r1fs.py,sha256=
|
65
|
+
naeural_client/ipfs/r1fs.py,sha256=ovBOG81tPdWv3M7bPGZwrJylDDNSzQ8K4t04HNe2EZ0,19328
|
66
66
|
naeural_client/ipfs/ipfs_setup/ipfs.service,sha256=isTJQsktPy4i1yaDA9AC1OKdlTYvsCCRRAVX-EmGqAs,248
|
67
67
|
naeural_client/ipfs/ipfs_setup/launch_service.sh,sha256=GWhZyNqtohLxJg8Q_c8YnNZduu1ddXDU-IFRRMaEyiY,141
|
68
68
|
naeural_client/ipfs/ipfs_setup/restart.sh,sha256=9xHMgkUoAMI25jeaoDVFbCa_LjojYm3ubljW58RatKE,22
|
@@ -96,8 +96,8 @@ naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_L
|
|
96
96
|
naeural_client/utils/config.py,sha256=lAbWe3UMi40BOdsAIZIb-fYtb4LwG3MIYg0EOA1ITr8,10340
|
97
97
|
naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
98
98
|
naeural_client/utils/oracle_sync/oracle_tester.py,sha256=X-923ccjkr6_kzbbiuAAcWSIhMtBDOH2VURjTh55apQ,27235
|
99
|
-
naeural_client-3.0.
|
100
|
-
naeural_client-3.0.
|
101
|
-
naeural_client-3.0.
|
102
|
-
naeural_client-3.0.
|
103
|
-
naeural_client-3.0.
|
99
|
+
naeural_client-3.0.4.dist-info/METADATA,sha256=XEDm_E4sQ-1V4izCTEIe__fQKMNLEmImtWQQkJvxn-Q,12353
|
100
|
+
naeural_client-3.0.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
101
|
+
naeural_client-3.0.4.dist-info/entry_points.txt,sha256=CTua17GUrRa4aXeafezGC9TiWKGKQzwTjQmB2jyj22g,91
|
102
|
+
naeural_client-3.0.4.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
103
|
+
naeural_client-3.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|