ratio1 3.4.120__py3-none-any.whl → 3.4.122__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/bc/base.py +4 -2
- ratio1/logging/logger_mixins/json_serialization_mixin.py +2 -1
- {ratio1-3.4.120.dist-info → ratio1-3.4.122.dist-info}/METADATA +1 -1
- {ratio1-3.4.120.dist-info → ratio1-3.4.122.dist-info}/RECORD +8 -8
- {ratio1-3.4.120.dist-info → ratio1-3.4.122.dist-info}/WHEEL +0 -0
- {ratio1-3.4.120.dist-info → ratio1-3.4.122.dist-info}/entry_points.txt +0 -0
- {ratio1-3.4.120.dist-info → ratio1-3.4.122.dist-info}/licenses/LICENSE +0 -0
ratio1/_ver.py
CHANGED
ratio1/bc/base.py
CHANGED
|
@@ -1444,6 +1444,7 @@ class BaseBlockEngine(
|
|
|
1444
1444
|
network=None,
|
|
1445
1445
|
return_full_data=False,
|
|
1446
1446
|
debug_data=False,
|
|
1447
|
+
request_timeout=(3.05, 27),
|
|
1447
1448
|
**kwargs
|
|
1448
1449
|
):
|
|
1449
1450
|
"""
|
|
@@ -1455,6 +1456,7 @@ class BaseBlockEngine(
|
|
|
1455
1456
|
debug
|
|
1456
1457
|
max_tries
|
|
1457
1458
|
network
|
|
1459
|
+
request_timeout
|
|
1458
1460
|
kwargs
|
|
1459
1461
|
|
|
1460
1462
|
Returns
|
|
@@ -1533,8 +1535,8 @@ class BaseBlockEngine(
|
|
|
1533
1535
|
self.sign(to_send)
|
|
1534
1536
|
json_to_send = {'body' : to_send}
|
|
1535
1537
|
if debug:
|
|
1536
|
-
self.P(f"
|
|
1537
|
-
response = requests.post(url, json=json_to_send)
|
|
1538
|
+
self.P(f"Requesting dAuth (timeout={request_timeout}): {url}\n{json.dumps(json_to_send, indent=2)}")
|
|
1539
|
+
response = requests.post(url, json=json_to_send, timeout=request_timeout)
|
|
1538
1540
|
if debug:
|
|
1539
1541
|
self.P(f"Received response (status {response.status_code}).")
|
|
1540
1542
|
if response.status_code == 200:
|
|
@@ -346,12 +346,13 @@ class _JSONSerializationMixin(object):
|
|
|
346
346
|
|
|
347
347
|
with self.managed_lock_resource(path, condition=locking):
|
|
348
348
|
try:
|
|
349
|
+
indent = 4 * ' ' if indent else None
|
|
349
350
|
with open(path, 'w') as fp:
|
|
350
351
|
json.dump(
|
|
351
352
|
data_json,
|
|
352
353
|
fp,
|
|
353
354
|
sort_keys=True,
|
|
354
|
-
indent=
|
|
355
|
+
indent=indent,
|
|
355
356
|
cls=NPJson
|
|
356
357
|
)
|
|
357
358
|
except Exception as e:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ratio1
|
|
3
|
-
Version: 3.4.
|
|
3
|
+
Version: 3.4.122
|
|
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=
|
|
2
|
+
ratio1/_ver.py,sha256=KAZNQj6r23qH0qUtMsOwKI4_1Lh61Q43YtqTkT1N8mU,332
|
|
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
|
|
@@ -14,7 +14,7 @@ ratio1/base/webapp_pipeline.py,sha256=H83EjkmyljetdHZ18V5R8OU3wXoWi_EpV0AAhQ4AM6
|
|
|
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
|
|
17
|
-
ratio1/bc/base.py,sha256=
|
|
17
|
+
ratio1/bc/base.py,sha256=iNOUPK-HIQd9UCuQaRdN4objMpV5UDBQlZR7LF6vvfk,46261
|
|
18
18
|
ratio1/bc/chain.py,sha256=HCTQGnmuKqTvUo95OKdg8rL2jhKfSMwrich2e_7Nyms,2336
|
|
19
19
|
ratio1/bc/ec.py,sha256=FwlkWmJvQ9aHuf_BZX1CWSUAxw6OZ9jBparLIWcs_e4,18933
|
|
20
20
|
ratio1/bc/evm.py,sha256=iMLdm_rtQFqmt44zTE_UA0OKSTmuH7sCSI2iKvFI1_k,52013
|
|
@@ -91,7 +91,7 @@ ratio1/logging/logger_mixins/computer_vision_mixin.py,sha256=TrtG7ayM2ab-4jjIkIW
|
|
|
91
91
|
ratio1/logging/logger_mixins/datetime_mixin.py,sha256=ORqOW4bxaI0UKLtII8-QhOiHvIfwNfz1irBrdYsOJFA,11264
|
|
92
92
|
ratio1/logging/logger_mixins/download_mixin.py,sha256=ZZ1QuQ7kDcUkxhu65odD2pvBRlogsb8mvEEViIYV_L0,18668
|
|
93
93
|
ratio1/logging/logger_mixins/general_serialization_mixin.py,sha256=bNM-6AsYhKD56v79hvJDgO8un5rHH4IKv1XJ3yksseQ,7424
|
|
94
|
-
ratio1/logging/logger_mixins/json_serialization_mixin.py,sha256=
|
|
94
|
+
ratio1/logging/logger_mixins/json_serialization_mixin.py,sha256=zmhn5BSE64g2ZSxjspE_NSsKN3GMwxcCEIuRawacjtw,15227
|
|
95
95
|
ratio1/logging/logger_mixins/machine_mixin.py,sha256=BOk7nHThRG6nNVK8atM5TrBfuHuaeLwb2sheLvE357o,3985
|
|
96
96
|
ratio1/logging/logger_mixins/pickle_serialization_mixin.py,sha256=tmdmoRz38iJGfK4J37oEghbRizN4BdZs7F2kObZ2ldQ,11391
|
|
97
97
|
ratio1/logging/logger_mixins/process_mixin.py,sha256=eI0izBAhStPOant2SZv2ZuTDH10s2ON_CkuGQEEFew4,1888
|
|
@@ -109,8 +109,8 @@ ratio1/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_LtMyCY,10
|
|
|
109
109
|
ratio1/utils/config.py,sha256=Elfkl7W4aDMvB5WZLiYlPXrecBncgTxb4hcKhQedMzI,10111
|
|
110
110
|
ratio1/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
|
111
111
|
ratio1/utils/oracle_sync/oracle_tester.py,sha256=aJOPcZhtbw1XPqsFG4qYpfv2Taj5-qRXbwJzrPyeXDE,27465
|
|
112
|
-
ratio1-3.4.
|
|
113
|
-
ratio1-3.4.
|
|
114
|
-
ratio1-3.4.
|
|
115
|
-
ratio1-3.4.
|
|
116
|
-
ratio1-3.4.
|
|
112
|
+
ratio1-3.4.122.dist-info/METADATA,sha256=yDpW3bf6cqiSNKYbMZit8S_wysiURyQ0P9wgjJt0FcE,12256
|
|
113
|
+
ratio1-3.4.122.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
114
|
+
ratio1-3.4.122.dist-info/entry_points.txt,sha256=DR_olREzU1egwmgek3s4GfQslBi-KR7lXsd4ap0TFxE,46
|
|
115
|
+
ratio1-3.4.122.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
|
116
|
+
ratio1-3.4.122.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|