ratio1 3.4.40__py3-none-any.whl → 3.4.42__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.
- ratio1/_ver.py +1 -1
- ratio1/base/generic_session.py +9 -1
- ratio1/const/base.py +2 -0
- {ratio1-3.4.40.dist-info → ratio1-3.4.42.dist-info}/METADATA +1 -1
- {ratio1-3.4.40.dist-info → ratio1-3.4.42.dist-info}/RECORD +8 -8
- {ratio1-3.4.40.dist-info → ratio1-3.4.42.dist-info}/WHEEL +0 -0
- {ratio1-3.4.40.dist-info → ratio1-3.4.42.dist-info}/entry_points.txt +0 -0
- {ratio1-3.4.40.dist-info → ratio1-3.4.42.dist-info}/licenses/LICENSE +0 -0
ratio1/_ver.py
CHANGED
ratio1/base/generic_session.py
CHANGED
|
@@ -2883,10 +2883,14 @@ class GenericSession(BaseDecentrAIObject):
|
|
|
2883
2883
|
A list of dictionaries defining the endpoint configuration. Defaults to None.
|
|
2884
2884
|
"""
|
|
2885
2885
|
ngrok_kwargs = {}
|
|
2886
|
-
cloudflare_kwargs = {}
|
|
2886
|
+
cloudflare_kwargs = {}
|
|
2887
2887
|
|
|
2888
2888
|
if tunnel_engine_enabled:
|
|
2889
2889
|
if tunnel_engine == "ngrok":
|
|
2890
|
+
if ngrok_edge_label is None:
|
|
2891
|
+
ngrok_edge_label = os.environ.get("EE_NGROK_EDGE_LABEL", None)
|
|
2892
|
+
if ngrok_edge_label is not None:
|
|
2893
|
+
self.P("Using ngrok edge label from environment variable EE_NGROK_EDGE_LABEL", color='g')
|
|
2890
2894
|
if not isinstance(ngrok_edge_label, str):
|
|
2891
2895
|
ngrok_edge_label = None
|
|
2892
2896
|
warn_msg = f"WARNING! Without a pre-defined `ngrok_edge_label`, the URL will be generated automatically, "
|
|
@@ -2899,6 +2903,10 @@ class GenericSession(BaseDecentrAIObject):
|
|
|
2899
2903
|
"ngrok_use_api": ngrok_use_api,
|
|
2900
2904
|
}
|
|
2901
2905
|
elif tunnel_engine == "cloudflare":
|
|
2906
|
+
if cloudflare_token is None:
|
|
2907
|
+
cloudflare_token = os.environ.get("EE_CLOUDFLARE_TOKEN", None)
|
|
2908
|
+
if cloudflare_token is not None:
|
|
2909
|
+
self.P("Using Cloudflare token from environment variable EE_CLOUDFLARE_TOKEN", color='g')
|
|
2902
2910
|
if not isinstance(cloudflare_token, str):
|
|
2903
2911
|
raise ValueError(f"`cloudflare` must be a string when using cloudflare tunnel engine. {type(cloudflare_token)} provided.")
|
|
2904
2912
|
cloudflare_kwargs = {
|
ratio1/const/base.py
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ratio1
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.42
|
|
4
4
|
Summary: `ratio1` or Ration1 SDK is the Python SDK required for client app development for the Ratio1 ecosystem
|
|
5
5
|
Project-URL: Homepage, https://github.com/Ratio1/ratio1_sdk
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/Ratio1/ratio1_sdk/issues
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
|
|
2
|
-
ratio1/_ver.py,sha256=
|
|
2
|
+
ratio1/_ver.py,sha256=p121tzUi5KwUTIh2axwUPxEcPVuCdI_ASoVLInqt5Hc,331
|
|
3
3
|
ratio1/base_decentra_object.py,sha256=iXvAAf6wPnGWzeeiRfwLojVoan-m1e_VsyPzjUQuENo,4492
|
|
4
4
|
ratio1/plugins_manager_mixin.py,sha256=X1JdGLDz0gN1rPnTN_5mJXR8JmqoBFQISJXmPR9yvCo,11106
|
|
5
5
|
ratio1/base/__init__.py,sha256=hACh83_cIv7-PwYMM3bQm2IBmNqiHw-3PAfDfAEKz9A,259
|
|
6
6
|
ratio1/base/distributed_custom_code_presets.py,sha256=cvz5R88P6Z5V61Ce1vHVVh8bOkgXd6gve_vdESDNAsg,2544
|
|
7
|
-
ratio1/base/generic_session.py,sha256=
|
|
7
|
+
ratio1/base/generic_session.py,sha256=UuQv3Guz949rqyHgPY8fCzzlwiA0TuMscRbLnsloZ38,186058
|
|
8
8
|
ratio1/base/instance.py,sha256=oQvwzzRvir7851wyhDx_BwN6y_VgsNWwYo53vN33QI4,21914
|
|
9
9
|
ratio1/base/pipeline.py,sha256=szoHrk1qBdY6NKPUk3tUTsJx3XzYp5C2GTOlzRiQi48,62489
|
|
10
10
|
ratio1/base/plugin_template.py,sha256=Gs438cSkhvxPujE4CRH_32pcuZaVwI9kia8E4VDRpSU,138794
|
|
@@ -39,7 +39,7 @@ ratio1/comm/mqtt_wrapper.py,sha256=QQ6IXcurchjY8Pp48t4SF1ZpE_GXaZTrgILzoMewefI,1
|
|
|
39
39
|
ratio1/const/README.md,sha256=6OHesr-f5NBuuJGryEoi_TCu2XdlhfQYlDKx_IJoXeg,177
|
|
40
40
|
ratio1/const/__init__.py,sha256=mcSaDgSYV2xbOS8Api72dDPO6kPBRjnYjBPAh9cAgaU,558
|
|
41
41
|
ratio1/const/apps.py,sha256=0NiuoAPak0HjEULF3fs3xaUH8IRSZ0i4fZw7T2fEd_g,785
|
|
42
|
-
ratio1/const/base.py,sha256=
|
|
42
|
+
ratio1/const/base.py,sha256=OiAZB0ctoQtVr6oIkyPQYJoJ8dP9rQm6aLbFtiC5tLo,5988
|
|
43
43
|
ratio1/const/comms.py,sha256=qEYX4ciYg8SYWSDZZTUYxzpR1--2a7UusrWzAq0hxo8,2259
|
|
44
44
|
ratio1/const/environment.py,sha256=632L5GrcNqF3-JhvrC6kXzXwLMcihRgMlOkLurnOwGY,1031
|
|
45
45
|
ratio1/const/evm_net.py,sha256=86ZG8_1tiLxLfH2ud8i-gD1VxGk-PpZTlS-f4XJgm8U,11396
|
|
@@ -103,8 +103,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
|
|
|
103
103
|
ratio1/utils/config.py,sha256=IMXAN9bpHePKEuTFGRRqFJXz_vBa-wi7s9gLhFEheRY,9953
|
|
104
104
|
ratio1/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
|
105
105
|
ratio1/utils/oracle_sync/oracle_tester.py,sha256=aJOPcZhtbw1XPqsFG4qYpfv2Taj5-qRXbwJzrPyeXDE,27465
|
|
106
|
-
ratio1-3.4.
|
|
107
|
-
ratio1-3.4.
|
|
108
|
-
ratio1-3.4.
|
|
109
|
-
ratio1-3.4.
|
|
110
|
-
ratio1-3.4.
|
|
106
|
+
ratio1-3.4.42.dist-info/METADATA,sha256=HyGsNYxTLVeEEiE_-3qjFkwWXYQXsMKPwH6rogir-h0,12248
|
|
107
|
+
ratio1-3.4.42.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
108
|
+
ratio1-3.4.42.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
|
|
109
|
+
ratio1-3.4.42.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
|
110
|
+
ratio1-3.4.42.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|