ratio1 3.4.40__py3-none-any.whl → 3.4.41__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 CHANGED
@@ -1,4 +1,4 @@
1
- __VER__ = "3.4.40"
1
+ __VER__ = "3.4.41"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -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 = {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ratio1
3
- Version: 3.4.40
3
+ Version: 3.4.41
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=zlrigFbgf6eJq1eow1kVyGQ8QOgt1xZpjWDhUjft6tY,331
2
+ ratio1/_ver.py,sha256=y4OSz-Uw1YjaTEwfQ6YDA03oLXrYyM0WRzLZSzRD2dw,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=LsZaQTg9IyG0jXMmFhXQqxOCGCPvAPXZoVvom8cWfCc,185526
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
@@ -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.40.dist-info/METADATA,sha256=oOOOjfuuQspNmWwiwIt2Gz4hRgES9vpgmcBS3ldtd_o,12248
107
- ratio1-3.4.40.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
- ratio1-3.4.40.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
- ratio1-3.4.40.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
- ratio1-3.4.40.dist-info/RECORD,,
106
+ ratio1-3.4.41.dist-info/METADATA,sha256=ancxaN4ULxEAHIe-pNvdhROBUzfVI76EJ91OU_msKAc,12248
107
+ ratio1-3.4.41.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
+ ratio1-3.4.41.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
+ ratio1-3.4.41.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
+ ratio1-3.4.41.dist-info/RECORD,,