ratio1 3.4.44__py3-none-any.whl → 3.4.46__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.44"
1
+ __VER__ = "3.4.46"
2
2
 
3
3
  if __name__ == "__main__":
4
4
  with open("pyproject.toml", "rt") as fd:
@@ -23,7 +23,7 @@ class WebappPipeline(Pipeline):
23
23
  ) -> None:
24
24
  """
25
25
  This is a special type of pipeline that is used to deploy webapps.
26
- It will override the deploy method to return the ngrok URL as well as the on_data method to extract the ngrok URL.
26
+ It will override the deploy method to return the app URL as well as the on_data method to extract the app URL.
27
27
  """
28
28
  self.app_url = None
29
29
  self.__extra_debug = extra_debug
@@ -47,7 +47,7 @@ class WebappPipeline(Pipeline):
47
47
 
48
48
  def __check_payloads(self, session, plugin_signature, plugin_instance, data):
49
49
  """
50
- Check if the payload if from ngrok and extract the ngrok URL.
50
+ Check if the payload is from webapp and extract the app URL.
51
51
 
52
52
  Parameters
53
53
  ----------
@@ -96,11 +96,10 @@ class WebappPipeline(Pipeline):
96
96
  self.app_url = "TUNNEL_ENGINE_DISABLED"
97
97
  else:
98
98
  if tunnel_engine.lower() == 'cloudflare':
99
- if cloudflare_token is None:
100
- raise ValueError("Cloudflare token must be provided when using Cloudflare as tunnel engine.")
101
99
  self.P("Using Cloudflare as tunnel engine", color="green")
102
- self.app_url = "URL_DEFINED_IN_CLOUDFLARE_TOKEN"
103
- tunnel_kwargs['cloudflare_token'] = cloudflare_token
100
+ if cloudflare_token is not None:
101
+ self.app_url = "URL_DEFINED_IN_CLOUDFLARE_TOKEN"
102
+ tunnel_kwargs['cloudflare_token'] = cloudflare_token
104
103
  else:
105
104
  self.P("Using ngrok as tunnel engine", color="green")
106
105
  if ngrok_edge_label is not None:
@@ -128,13 +127,13 @@ class WebappPipeline(Pipeline):
128
127
  The URL of the webapp.
129
128
  """
130
129
  res = super().deploy(verbose=verbose, timeout=timeout, **kwargs)
131
- # now we wait for the ngrok url to be available
130
+ # now we wait for the app url to be available
132
131
  start = time.time()
133
132
  while self.app_url is None:
134
133
  elapsed = time.time() - start
135
134
  if elapsed > timeout:
136
- msg = "Timeout waiting for ngrok url"
135
+ msg = "Timeout waiting for app url"
137
136
  self.P(msg, color="red")
138
137
  raise Exception(msg)
139
- # return the ngrok url
138
+ # return the app url
140
139
  return self.app_url
@@ -201,7 +201,7 @@ class BaseLogger(object):
201
201
  lib_ver = __VER__
202
202
  ver = "v{}".format(lib_ver) if lib_ver != "" else ""
203
203
  self.P(
204
- "NSDK {} initialized on [{}][{}].".format(
204
+ "R1SDK {} initialized on [{}][{}].".format(
205
205
  ver, self.MACHINE_NAME, self.get_processor_platform(),
206
206
  ),
207
207
  color='green',
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ratio1
3
- Version: 3.4.44
3
+ Version: 3.4.46
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,5 +1,5 @@
1
1
  ratio1/__init__.py,sha256=YimqgDbjLuywsf8zCWE0EaUXH4MBUrqLxt0TDV558hQ,632
2
- ratio1/_ver.py,sha256=ZfAJLjO9L4hDJP_15PlYMen90Pssal-kbc3elEUK9YI,331
2
+ ratio1/_ver.py,sha256=yKkpcAw7jo94VThUI1lNEge8erleXlcAVydsGtnjoFc,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
@@ -10,7 +10,7 @@ ratio1/base/pipeline.py,sha256=szoHrk1qBdY6NKPUk3tUTsJx3XzYp5C2GTOlzRiQi48,62489
10
10
  ratio1/base/plugin_template.py,sha256=Gs438cSkhvxPujE4CRH_32pcuZaVwI9kia8E4VDRpSU,138794
11
11
  ratio1/base/responses.py,sha256=ZKBZmRhYDv8M8mQ5C_ahGsQvtWH4b9ImRcuerQdZmNw,6937
12
12
  ratio1/base/transaction.py,sha256=l2JCzTgH3-irFwCEBGrS3z8VOisA8GdC3zEfqgJOTG4,5138
13
- ratio1/base/webapp_pipeline.py,sha256=ebo68iOf3c9IZ0uj7cIizRtTJWFocuSw_aVg72bNWbE,3802
13
+ ratio1/base/webapp_pipeline.py,sha256=H83EjkmyljetdHZ18V5R8OU3wXoWi_EpV0AAhQ4AM64,3695
14
14
  ratio1/base/payload/__init__.py,sha256=y8fBI8tG2ObNfaXFWjyWZXwu878FRYj_I8GIbHT4GKE,29
15
15
  ratio1/base/payload/payload.py,sha256=MoCeL6iZzl1an-4eqRpLW0iz6Yk3OvlBrymcmhWeecM,2689
16
16
  ratio1/bc/__init__.py,sha256=BI5pcqHdhwnMdbWTYDLW1cVP_844VtLra-lz7xprgsk,171
@@ -77,7 +77,7 @@ ratio1/ipfs/ipfs_setup/setup.sh,sha256=1yIIDjk0jU1nInQypKFF-8wqjVVyuk-UzREzpL7Gj
77
77
  ratio1/ipfs/ipfs_setup/show.sh,sha256=3EXyZppTNDrla0dH21m73s2lDNJXBAMn_DurYb30WfU,117
78
78
  ratio1/ipfs/ipfs_setup/write_key.sh,sha256=wLESi33j4UoSkXmYUUnI0kd9Sro6BMwtQp29UXxNVk4,164
79
79
  ratio1/logging/__init__.py,sha256=b79X45VC6c37u32flKB2GAK9f-RR0ocwP0JDCy0t7QQ,33
80
- ratio1/logging/base_logger.py,sha256=l-G2T35rTNx28tiQuGZBE-bCxGrMGIubyC0EdWdJrM4,70097
80
+ ratio1/logging/base_logger.py,sha256=iwNirMP38xEA26K8arwDjHXOjJhjE5q_SHzipjqAQzo,70098
81
81
  ratio1/logging/small_logger.py,sha256=BoCCEDManhe804zqfykZAvXUu9gV0_2NPebftUMIyPk,2998
82
82
  ratio1/logging/logger_mixins/__init__.py,sha256=fmDmGVDV41Dfoafe0yCZxJ_CqxWac4DSM8hO6UZnrcA,641
83
83
  ratio1/logging/logger_mixins/class_instance_mixin.py,sha256=x2vr_VrRAzGhjgayPxV9t3XtU-c0VoHZb6cjDbslJM8,2725
@@ -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.44.dist-info/METADATA,sha256=7JWEtZrtm3XbU8cnu_KyLXamTK9DTGpBtGeiSiHayFI,12248
107
- ratio1-3.4.44.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
- ratio1-3.4.44.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
- ratio1-3.4.44.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
- ratio1-3.4.44.dist-info/RECORD,,
106
+ ratio1-3.4.46.dist-info/METADATA,sha256=o9yludXRoxiVOwaB1y9eVn_zXHDmCB3Tx43PGuSWCGY,12248
107
+ ratio1-3.4.46.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
108
+ ratio1-3.4.46.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
109
+ ratio1-3.4.46.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
110
+ ratio1-3.4.46.dist-info/RECORD,,