naeural-client 2.6.27__py3-none-any.whl → 2.6.28__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/bc/base.py +7 -1
- naeural_client/logging/logger_mixins/json_serialization_mixin.py +14 -4
- {naeural_client-2.6.27.dist-info → naeural_client-2.6.28.dist-info}/METADATA +1 -1
- {naeural_client-2.6.27.dist-info → naeural_client-2.6.28.dist-info}/RECORD +8 -8
- {naeural_client-2.6.27.dist-info → naeural_client-2.6.28.dist-info}/WHEEL +0 -0
- {naeural_client-2.6.27.dist-info → naeural_client-2.6.28.dist-info}/entry_points.txt +0 -0
- {naeural_client-2.6.27.dist-info → naeural_client-2.6.28.dist-info}/licenses/LICENSE +0 -0
naeural_client/_ver.py
CHANGED
naeural_client/bc/base.py
CHANGED
@@ -814,12 +814,18 @@ class BaseBlockEngine:
|
|
814
814
|
dct_safe_data = dct_data
|
815
815
|
|
816
816
|
dumps_config = dict(
|
817
|
-
sort_keys=True,
|
818
817
|
cls=_ComplexJsonEncoder,
|
819
818
|
separators=(',',':'),
|
820
819
|
ensure_ascii=self.__ensure_ascii_payloads,
|
821
820
|
)
|
821
|
+
# we dump the data to a string then we reload and sort as there might
|
822
|
+
# be some issues with the sorting if we have int keys that will be sorted
|
823
|
+
# then recovered as string keys
|
822
824
|
str_data = json.dumps(dct_safe_data, **dumps_config)
|
825
|
+
# we reload the data to ensure
|
826
|
+
dct_reload = json.loads(str_data)
|
827
|
+
# in order to ensure the data is sorted
|
828
|
+
str_data = json.dumps(dct_reload, sort_keys=True)
|
823
829
|
return str_data
|
824
830
|
|
825
831
|
def _create_new_sk(self):
|
@@ -233,21 +233,31 @@ class _JSONSerializationMixin(object):
|
|
233
233
|
# need to replace directly in the received dict if `inplace=True`
|
234
234
|
if inplace:
|
235
235
|
data = _JSONSerializationMixin.replace_nan(dct, inplace=inplace)
|
236
|
-
|
236
|
+
|
237
|
+
temp = json.dumps(
|
237
238
|
data,
|
238
239
|
cls=NPJson,
|
239
|
-
sort_keys=
|
240
|
+
sort_keys=False,
|
240
241
|
separators=separators,
|
241
242
|
**kwargs
|
242
243
|
)
|
243
244
|
else:
|
244
|
-
|
245
|
+
temp = json.dumps(
|
245
246
|
data,
|
246
247
|
cls=SimpleNPJson,
|
247
|
-
sort_keys=
|
248
|
+
sort_keys=False,
|
248
249
|
separators=separators,
|
249
250
|
**kwargs
|
250
251
|
)
|
252
|
+
if sort_keys:
|
253
|
+
# we dump the data to a string then we reload and sort as there might
|
254
|
+
# be some issues with the sorting if we have int keys that will be sorted
|
255
|
+
# then recovered as string keys
|
256
|
+
return json.dumps(
|
257
|
+
json.loads(temp),
|
258
|
+
sort_keys=True, separators=separators, **kwargs
|
259
|
+
)
|
260
|
+
return temp
|
251
261
|
|
252
262
|
|
253
263
|
@staticmethod
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: naeural_client
|
3
|
-
Version: 2.6.
|
3
|
+
Version: 2.6.28
|
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=Pe_mSANiKCh62K3Zslijzk6yhTY6gt-guyu3l-q8a9k,331
|
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
|
@@ -14,7 +14,7 @@ naeural_client/base/webapp_pipeline.py,sha256=QmPLVmhP0CPdi0YuvbZEH4APYz2Amtw3gy
|
|
14
14
|
naeural_client/base/payload/__init__.py,sha256=y8fBI8tG2ObNfaXFWjyWZXwu878FRYj_I8GIbHT4GKE,29
|
15
15
|
naeural_client/base/payload/payload.py,sha256=x-au7l67Z_vfn_4R2C_pjZCaFuUVXHngJiGOfIAYVdE,2690
|
16
16
|
naeural_client/bc/__init__.py,sha256=FQj23D1PrY06NUOARiKQi4cdj0-VxnoYgYDEht8lpr8,158
|
17
|
-
naeural_client/bc/base.py,sha256=
|
17
|
+
naeural_client/bc/base.py,sha256=s90pu8-_YJ4yADnQqbWwGoKouXztrHyH1voQCnFl1to,40507
|
18
18
|
naeural_client/bc/chain.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
naeural_client/bc/ec.py,sha256=qI8l7YqiS4MNftlx-tF7IZUswrSeQc7KMn5OZ0fEaJs,23370
|
20
20
|
naeural_client/certs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -66,7 +66,7 @@ naeural_client/logging/logger_mixins/computer_vision_mixin.py,sha256=TrtG7ayM2ab
|
|
66
66
|
naeural_client/logging/logger_mixins/datetime_mixin.py,sha256=x0l2mhhmNZ6r_SmJ5or7dxAf2e4tQL0LiBsj3RDu6pU,11288
|
67
67
|
naeural_client/logging/logger_mixins/download_mixin.py,sha256=8eu3w-H1LI6OmC_ZwzU3WrWMENQKdEZ2HjnQsAixwM0,13500
|
68
68
|
naeural_client/logging/logger_mixins/general_serialization_mixin.py,sha256=3glOuN6Whi_GSxb1OiFitzypOqkf_x2RJGfGaO51_WE,7440
|
69
|
-
naeural_client/logging/logger_mixins/json_serialization_mixin.py,sha256=
|
69
|
+
naeural_client/logging/logger_mixins/json_serialization_mixin.py,sha256=8TAePgqYgwgpaAk6MRfCOqLqA2GIbO3MPOFYHJdaE0g,14937
|
70
70
|
naeural_client/logging/logger_mixins/pickle_serialization_mixin.py,sha256=9BftwBe56e94FXjyf8c8m4GEvIvzNdK_jpQPtIIJbXY,9185
|
71
71
|
naeural_client/logging/logger_mixins/process_mixin.py,sha256=ZO7S1mvKWwH_UIqv7JG-NxizcfWMJqngNNW_K-hESdU,1904
|
72
72
|
naeural_client/logging/logger_mixins/resource_size_mixin.py,sha256=EdCeFM8Ol8q_OTOmsj5Q2uKPvkqkoNdcXSZjw4FgAh4,2297
|
@@ -83,8 +83,8 @@ naeural_client/utils/comm_utils.py,sha256=4cS9llRr_pK_3rNgDcRMCQwYPO0kcNU7AdWy_L
|
|
83
83
|
naeural_client/utils/config.py,sha256=v7xHikr6Z5Sbvf3opYeMhYzGWD2pe0HlRwa-aGJzUh8,6323
|
84
84
|
naeural_client/utils/dotenv.py,sha256=_AgSo35n7EnQv5yDyu7C7i0kHragLJoCGydHjvOkrYY,2008
|
85
85
|
naeural_client/utils/oracle_sync/multiple_requests.py,sha256=GLzROGZ0gI4d1PVWgW_JBUYZjEL4LqZvHvwelxDiPW4,20892
|
86
|
-
naeural_client-2.6.
|
87
|
-
naeural_client-2.6.
|
88
|
-
naeural_client-2.6.
|
89
|
-
naeural_client-2.6.
|
90
|
-
naeural_client-2.6.
|
86
|
+
naeural_client-2.6.28.dist-info/METADATA,sha256=dPMoifaDaW4iB1xJNRItGFCzafNnZ1jUtcOedmgqbfA,12354
|
87
|
+
naeural_client-2.6.28.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
88
|
+
naeural_client-2.6.28.dist-info/entry_points.txt,sha256=PNdyotDaQBAslZREx5luVyj0kqpQnwNACwkFNTPIHU4,55
|
89
|
+
naeural_client-2.6.28.dist-info/licenses/LICENSE,sha256=cvOsJVslde4oIaTCadabXnPqZmzcBO2f2zwXZRmJEbE,11311
|
90
|
+
naeural_client-2.6.28.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|