bizyengine 1.2.5__py3-none-any.whl → 1.2.6__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.
- bizyengine/bizy_server/api_client.py +24 -12
- bizyengine/version.txt +1 -1
- {bizyengine-1.2.5.dist-info → bizyengine-1.2.6.dist-info}/METADATA +1 -1
- {bizyengine-1.2.5.dist-info → bizyengine-1.2.6.dist-info}/RECORD +6 -6
- {bizyengine-1.2.5.dist-info → bizyengine-1.2.6.dist-info}/WHEEL +0 -0
- {bizyengine-1.2.5.dist-info → bizyengine-1.2.6.dist-info}/top_level.txt +0 -0
|
@@ -65,13 +65,16 @@ class APIClient:
|
|
|
65
65
|
async with session.get(url, headers=headers) as response:
|
|
66
66
|
resp_json = await response.json()
|
|
67
67
|
if response.status != 200:
|
|
68
|
+
isJson = isinstance(resp_json, dict)
|
|
68
69
|
return None, ErrorNo(
|
|
69
70
|
response.status,
|
|
70
|
-
resp_json.get("code", response.status),
|
|
71
|
+
resp_json.get("code", response.status) if isJson else resp_json,
|
|
71
72
|
None,
|
|
72
73
|
{
|
|
73
|
-
user_profile.getLang():
|
|
74
|
-
"message", await response.text()
|
|
74
|
+
user_profile.getLang(): (
|
|
75
|
+
resp_json.get("message", await response.text())
|
|
76
|
+
if isJson
|
|
77
|
+
else resp_json
|
|
75
78
|
)
|
|
76
79
|
},
|
|
77
80
|
)
|
|
@@ -82,13 +85,16 @@ class APIClient:
|
|
|
82
85
|
async with session.post(url, json=data, headers=headers) as response:
|
|
83
86
|
resp_json = await response.json()
|
|
84
87
|
if response.status != 200:
|
|
88
|
+
isJson = isinstance(resp_json, dict)
|
|
85
89
|
return None, ErrorNo(
|
|
86
90
|
response.status,
|
|
87
|
-
resp_json.get("code", response.status),
|
|
91
|
+
resp_json.get("code", response.status) if isJson else resp_json,
|
|
88
92
|
None,
|
|
89
93
|
{
|
|
90
|
-
user_profile.getLang():
|
|
91
|
-
"message", await response.text()
|
|
94
|
+
user_profile.getLang(): (
|
|
95
|
+
resp_json.get("message", await response.text())
|
|
96
|
+
if isJson
|
|
97
|
+
else resp_json
|
|
92
98
|
)
|
|
93
99
|
},
|
|
94
100
|
)
|
|
@@ -99,13 +105,16 @@ class APIClient:
|
|
|
99
105
|
async with session.put(url, json=data, headers=headers) as response:
|
|
100
106
|
resp_json = await response.json()
|
|
101
107
|
if response.status != 200:
|
|
108
|
+
isJson = isinstance(resp_json, dict)
|
|
102
109
|
return None, ErrorNo(
|
|
103
110
|
response.status,
|
|
104
|
-
resp_json.get("code", response.status),
|
|
111
|
+
resp_json.get("code", response.status) if isJson else resp_json,
|
|
105
112
|
None,
|
|
106
113
|
{
|
|
107
|
-
user_profile.getLang():
|
|
108
|
-
"message", await response.text()
|
|
114
|
+
user_profile.getLang(): (
|
|
115
|
+
resp_json.get("message", await response.text())
|
|
116
|
+
if isJson
|
|
117
|
+
else resp_json
|
|
109
118
|
)
|
|
110
119
|
},
|
|
111
120
|
)
|
|
@@ -116,13 +125,16 @@ class APIClient:
|
|
|
116
125
|
async with session.delete(url, json=data, headers=headers) as response:
|
|
117
126
|
resp_json = await response.json()
|
|
118
127
|
if response.status != 200:
|
|
128
|
+
isJson = isinstance(resp_json, dict)
|
|
119
129
|
return None, ErrorNo(
|
|
120
130
|
response.status,
|
|
121
|
-
resp_json.get("code", response.status),
|
|
131
|
+
resp_json.get("code", response.status) if isJson else resp_json,
|
|
122
132
|
None,
|
|
123
133
|
{
|
|
124
|
-
user_profile.getLang():
|
|
125
|
-
"message", await response.text()
|
|
134
|
+
user_profile.getLang(): (
|
|
135
|
+
resp_json.get("message", await response.text())
|
|
136
|
+
if isJson
|
|
137
|
+
else resp_json
|
|
126
138
|
)
|
|
127
139
|
},
|
|
128
140
|
)
|
bizyengine/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.6
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bizyengine
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.6
|
|
4
4
|
Summary: [a/BizyAir](https://github.com/siliconflow/BizyAir) Comfy Nodes that can run in any environment.
|
|
5
5
|
Author-email: SiliconFlow <yaochi@siliconflow.cn>
|
|
6
6
|
Project-URL: Repository, https://github.com/siliconflow/BizyAir
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
bizyengine/__init__.py,sha256=GP9V-JM07fz7uv_qTB43QEA2rKdrVJxi5I7LRnn_3ZQ,914
|
|
2
|
-
bizyengine/version.txt,sha256=
|
|
2
|
+
bizyengine/version.txt,sha256=WET_zDRvicB7E7p1lr-zeI7XP0dV5UEYLXgi1Dt8eiQ,6
|
|
3
3
|
bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
|
|
4
|
-
bizyengine/bizy_server/api_client.py,sha256=
|
|
4
|
+
bizyengine/bizy_server/api_client.py,sha256=urdV6GBXRcm-i3yNzjLKQoiN_5CC66Fd1QzXCGSa9CE,40496
|
|
5
5
|
bizyengine/bizy_server/errno.py,sha256=nEr_A6ARwgIwlr1PFP8eg-HNAzz9r7l00fTKaq-ipxM,15826
|
|
6
6
|
bizyengine/bizy_server/error_handler.py,sha256=MGrfO1AEqbfEgMWPL8B6Ypew_zHiQAdYGlhN9bZohrY,167
|
|
7
7
|
bizyengine/bizy_server/execution.py,sha256=ayaEf6eGJKQsVZV-1_UlGlvwwmlH7FEek31Uq-MbUjA,1644
|
|
@@ -74,7 +74,7 @@ bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,
|
|
|
74
74
|
bizyengine/misc/segment_anything.py,sha256=RRm8FOfDY9VxdVrLjcdzJRh2pSM-kmNcCySuYnx9l7w,8677
|
|
75
75
|
bizyengine/misc/supernode.py,sha256=MPoJN6H_oCV00lmv1LWtGdQwTlyQPI6gXdMDXgkFd7g,4197
|
|
76
76
|
bizyengine/misc/utils.py,sha256=_aO1lHtfDf7Bv0K4xvnZ1Fu5Y9MfMkuhkiS_g8687ng,6461
|
|
77
|
-
bizyengine-1.2.
|
|
78
|
-
bizyengine-1.2.
|
|
79
|
-
bizyengine-1.2.
|
|
80
|
-
bizyengine-1.2.
|
|
77
|
+
bizyengine-1.2.6.dist-info/METADATA,sha256=AZCfi91Ygfm7weqMNcQRgcJt4jQi0BK25tppKhxrYmk,574
|
|
78
|
+
bizyengine-1.2.6.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
|
|
79
|
+
bizyengine-1.2.6.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
|
|
80
|
+
bizyengine-1.2.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|