bizyengine 1.2.78__py3-none-any.whl → 1.2.79__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/server.py +15 -0
- bizyengine/version.txt +1 -1
- {bizyengine-1.2.78.dist-info → bizyengine-1.2.79.dist-info}/METADATA +1 -1
- {bizyengine-1.2.78.dist-info → bizyengine-1.2.79.dist-info}/RECORD +6 -6
- {bizyengine-1.2.78.dist-info → bizyengine-1.2.79.dist-info}/WHEEL +0 -0
- {bizyengine-1.2.78.dist-info → bizyengine-1.2.79.dist-info}/top_level.txt +0 -0
bizyengine/bizy_server/server.py
CHANGED
|
@@ -51,6 +51,10 @@ if not BIZYAIR_DEBUG:
|
|
|
51
51
|
def _get_request_api_key(request_headers):
|
|
52
52
|
if BIZYAIR_SERVER_MODE:
|
|
53
53
|
encrypted_api_key = request_headers.get("Authorization")
|
|
54
|
+
if not encrypted_api_key:
|
|
55
|
+
# 尝试从cookie中读取auth_token
|
|
56
|
+
cookie_str = request_headers.get("Cookie")
|
|
57
|
+
encrypted_api_key = _get_auth_token_from_cookie(cookie_str)
|
|
54
58
|
return decrypt_apikey(encrypted_api_key)
|
|
55
59
|
return None, None
|
|
56
60
|
|
|
@@ -65,6 +69,17 @@ def _get_api_key_from_cookie(cookie_str):
|
|
|
65
69
|
return None
|
|
66
70
|
|
|
67
71
|
|
|
72
|
+
def _get_auth_token_from_cookie(cookie_str):
|
|
73
|
+
if not cookie_str:
|
|
74
|
+
return None
|
|
75
|
+
cookies = cookie_str.split(";")
|
|
76
|
+
for cookie in cookies:
|
|
77
|
+
cookie = cookie.strip()
|
|
78
|
+
if cookie.startswith("auth_token="):
|
|
79
|
+
return cookie[11:]
|
|
80
|
+
return None
|
|
81
|
+
|
|
82
|
+
|
|
68
83
|
class BizyAirServer:
|
|
69
84
|
def __init__(self):
|
|
70
85
|
BizyAirServer.instance = self
|
bizyengine/version.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.2.
|
|
1
|
+
1.2.79
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: bizyengine
|
|
3
|
-
Version: 1.2.
|
|
3
|
+
Version: 1.2.79
|
|
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,5 +1,5 @@
|
|
|
1
1
|
bizyengine/__init__.py,sha256=GP9V-JM07fz7uv_qTB43QEA2rKdrVJxi5I7LRnn_3ZQ,914
|
|
2
|
-
bizyengine/version.txt,sha256=
|
|
2
|
+
bizyengine/version.txt,sha256=hzCs2R7AhcMysHC2BuADSm6JsaaiFKeUsTn-jBDtwdg,6
|
|
3
3
|
bizyengine/bizy_server/__init__.py,sha256=SP9oSblnPo4KQyh7yOGD26YCskFAcQHAZy04nQBNRIw,200
|
|
4
4
|
bizyengine/bizy_server/api_client.py,sha256=vNBUkFNMjPI_F_wAGiN-ydCZO8oLdgyWBlMY1DQbHOk,43685
|
|
5
5
|
bizyengine/bizy_server/errno.py,sha256=8dzmtlqq0wBJguHAXKEDb_uUYUQ7qlZQK6FxOpMxqLg,17328
|
|
@@ -7,7 +7,7 @@ bizyengine/bizy_server/error_handler.py,sha256=MGrfO1AEqbfEgMWPL8B6Ypew_zHiQAdYG
|
|
|
7
7
|
bizyengine/bizy_server/execution.py,sha256=ayaEf6eGJKQsVZV-1_UlGlvwwmlH7FEek31Uq-MbUjA,1644
|
|
8
8
|
bizyengine/bizy_server/profile.py,sha256=f4juAzJ73gCm0AhagYpt9WnG8HEI6xze_U96-omBLqU,3044
|
|
9
9
|
bizyengine/bizy_server/resp.py,sha256=iOFT5Ud7VJBP2uqkojJIgc3y2ifMjjEXoj0ewneL9lc,710
|
|
10
|
-
bizyengine/bizy_server/server.py,sha256=
|
|
10
|
+
bizyengine/bizy_server/server.py,sha256=5wreS4aMPLec8VCBpEk3XEHl7i_cyW3r8CZtZMmb3zQ,59127
|
|
11
11
|
bizyengine/bizy_server/stream_response.py,sha256=H2XHqlVRtQMhgdztAuG7l8-iV_Pm42u2x6WJ0gNVIW0,9654
|
|
12
12
|
bizyengine/bizy_server/utils.py,sha256=t3y3ZTDzFa8K4wXlzgLVaFNCizgylsKsd9K3rLL4sGw,3986
|
|
13
13
|
bizyengine/bizyair_extras/__init__.py,sha256=9iPmEyR7F1IXbUaBNS90ivW9ul18GcuWFxRfFv2ieAw,1011
|
|
@@ -104,7 +104,7 @@ bizyengine/misc/route_sam.py,sha256=-bMIR2QalfnszipGxSxvDAHGJa5gPSrjkYPb5baaRg4,
|
|
|
104
104
|
bizyengine/misc/segment_anything.py,sha256=wNKYwlYPMszfwj23524geFZJjZaG4eye65SGaUnh77I,8941
|
|
105
105
|
bizyengine/misc/supernode.py,sha256=STN9gaxfTSErH8OiHeZa47d8z-G9S0I7fXuJvHQOBFM,4532
|
|
106
106
|
bizyengine/misc/utils.py,sha256=GMRWKhOP-MCueVyCO-doflb7dH5dM32DyLcSPEVOXWA,13333
|
|
107
|
-
bizyengine-1.2.
|
|
108
|
-
bizyengine-1.2.
|
|
109
|
-
bizyengine-1.2.
|
|
110
|
-
bizyengine-1.2.
|
|
107
|
+
bizyengine-1.2.79.dist-info/METADATA,sha256=lghNQOnWnTwRzlHfPUbopuse0vAvDcoyKs4iUCkrV9w,735
|
|
108
|
+
bizyengine-1.2.79.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
109
|
+
bizyengine-1.2.79.dist-info/top_level.txt,sha256=2zapzqxX-we5cRyJkGf9bd5JinRtXp3-_uDI-xCAnc0,11
|
|
110
|
+
bizyengine-1.2.79.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|