bizyengine 1.2.6__tar.gz → 1.2.8__tar.gz

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.
Files changed (91) hide show
  1. bizyengine-1.2.8/PKG-INFO +211 -0
  2. bizyengine-1.2.8/README.md +198 -0
  3. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/api_client.py +125 -57
  4. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/errno.py +9 -0
  5. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/server.py +353 -239
  6. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/__init__.py +1 -0
  7. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_flux.py +1 -1
  8. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_image_utils.py +2 -2
  9. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_nunchaku.py +1 -5
  10. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_segment_anything.py +1 -0
  11. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_trellis.py +1 -1
  12. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_ultimatesdupscale.py +1 -1
  13. bizyengine-1.2.8/bizyengine/bizyair_extras/nodes_wan_i2v.py +222 -0
  14. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/__init__.py +2 -0
  15. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/processors/prompt_processor.py +21 -18
  16. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/servers/prompt_server.py +28 -13
  17. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/common/client.py +14 -2
  18. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/common/env_var.py +2 -0
  19. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/nodes_base.py +85 -7
  20. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/nodes_io.py +2 -2
  21. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/llm.py +48 -85
  22. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/mzkolors.py +27 -19
  23. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/nodes.py +41 -21
  24. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/nodes_controlnet_aux.py +18 -18
  25. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/nodes_controlnet_union_sdxl.py +5 -12
  26. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/segment_anything.py +29 -25
  27. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/supernode.py +36 -30
  28. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/utils.py +33 -21
  29. bizyengine-1.2.8/bizyengine/version.txt +1 -0
  30. bizyengine-1.2.8/bizyengine.egg-info/PKG-INFO +211 -0
  31. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine.egg-info/SOURCES.txt +1 -0
  32. bizyengine-1.2.6/PKG-INFO +0 -19
  33. bizyengine-1.2.6/README.md +0 -6
  34. bizyengine-1.2.6/bizyengine/version.txt +0 -1
  35. bizyengine-1.2.6/bizyengine.egg-info/PKG-INFO +0 -19
  36. {bizyengine-1.2.6 → bizyengine-1.2.8}/MANIFEST.in +0 -0
  37. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/__init__.py +0 -0
  38. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/__init__.py +0 -0
  39. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/error_handler.py +0 -0
  40. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/execution.py +0 -0
  41. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/profile.py +0 -0
  42. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/resp.py +0 -0
  43. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/stream_response.py +0 -0
  44. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizy_server/utils.py +0 -0
  45. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_advanced_refluxcontrol.py +0 -0
  46. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_cogview4.py +0 -0
  47. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_comfyui_detail_daemon.py +0 -0
  48. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_comfyui_instantid.py +0 -0
  49. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_comfyui_layerstyle_advance.py +0 -0
  50. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_comfyui_pulid_flux.py +0 -0
  51. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_controlnet.py +0 -0
  52. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_custom_sampler.py +0 -0
  53. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_dataset.py +0 -0
  54. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_differential_diffusion.py +0 -0
  55. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_ip2p.py +0 -0
  56. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_ipadapter_plus/__init__.py +0 -0
  57. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_ipadapter_plus/nodes_ipadapter_plus.py +0 -0
  58. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_janus_pro.py +0 -0
  59. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_kolors_mz/__init__.py +0 -0
  60. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_model_advanced.py +0 -0
  61. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_sd3.py +0 -0
  62. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_segment_anything_utils.py +0 -0
  63. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_testing_utils.py +0 -0
  64. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_upscale_model.py +0 -0
  65. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/nodes_wan_video.py +0 -0
  66. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/oauth_callback/main.py +0 -0
  67. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/bizyair_extras/route_bizyair_tools.py +0 -0
  68. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/__init__.py +0 -0
  69. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/base.py +0 -0
  70. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/invoker.py +0 -0
  71. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/processors/model_hosting_processor.py +0 -0
  72. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/commands/servers/model_server.py +0 -0
  73. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/common/__init__.py +0 -0
  74. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/common/caching.py +0 -0
  75. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/common/utils.py +0 -0
  76. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/configs/conf.py +0 -0
  77. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/configs/models.json +0 -0
  78. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/configs/models.yaml +0 -0
  79. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/data_types.py +0 -0
  80. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/image_utils.py +0 -0
  81. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/path_utils/__init__.py +0 -0
  82. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/path_utils/path_manager.py +0 -0
  83. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/core/path_utils/utils.py +0 -0
  84. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/__init__.py +0 -0
  85. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/auth.py +0 -0
  86. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine/misc/route_sam.py +0 -0
  87. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine.egg-info/dependency_links.txt +0 -0
  88. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine.egg-info/requires.txt +0 -0
  89. {bizyengine-1.2.6 → bizyengine-1.2.8}/bizyengine.egg-info/top_level.txt +0 -0
  90. {bizyengine-1.2.6 → bizyengine-1.2.8}/pyproject.toml +0 -0
  91. {bizyengine-1.2.6 → bizyengine-1.2.8}/setup.cfg +0 -0
@@ -0,0 +1,211 @@
1
+ Metadata-Version: 2.4
2
+ Name: bizyengine
3
+ Version: 1.2.8
4
+ Summary: [a/BizyAir](https://github.com/siliconflow/BizyAir) Comfy Nodes that can run in any environment.
5
+ Author-email: SiliconFlow <yaochi@siliconflow.cn>
6
+ Project-URL: Repository, https://github.com/siliconflow/BizyAir
7
+ Classifier: Programming Language :: Python :: 3
8
+ Classifier: License :: OSI Approved :: MIT License
9
+ Classifier: Operating System :: OS Independent
10
+ Requires-Python: >=3.10
11
+ Description-Content-Type: text/markdown
12
+ Requires-Dist: requests
13
+
14
+ ## Server Mode
15
+
16
+ ```bash
17
+ export BIZYAIR_API_KEY="your api key"
18
+ export BIZYAIR_SERVER_MODE=1
19
+ ```
20
+
21
+ ```python
22
+ import json
23
+ import os
24
+ from urllib import request
25
+
26
+ BIZYAIR_API_KEY=os.getenv("BIZYAIR_API_KEY", "")
27
+
28
+ prompt_text = """
29
+ {
30
+ "36": {
31
+ "inputs": {
32
+ "clip_name1": "t5xxl_fp16.safetensors",
33
+ "clip_name2": "clip_l.safetensors",
34
+ "type": "flux"
35
+ },
36
+ "class_type": "BizyAir_DualCLIPLoader",
37
+ "_meta": {
38
+ "title": "☁️BizyAir DualCLIPLoader"
39
+ }
40
+ },
41
+ "37": {
42
+ "inputs": {
43
+ "text": "close up photo of a rabbit, forest in spring, haze, halation, bloom, dramatic atmosphere, centred, rule of thirds, 200mm 1.4f macro shot",
44
+ "clip": [
45
+ "36",
46
+ 0
47
+ ]
48
+ },
49
+ "class_type": "BizyAir_CLIPTextEncode",
50
+ "_meta": {
51
+ "title": "☁️BizyAir CLIP Text Encode (Prompt)"
52
+ }
53
+ },
54
+ "47": {
55
+ "inputs": {
56
+ "model": [
57
+ "48",
58
+ 0
59
+ ],
60
+ "conditioning": [
61
+ "37",
62
+ 0
63
+ ]
64
+ },
65
+ "class_type": "BizyAir_BasicGuider",
66
+ "_meta": {
67
+ "title": "☁️BizyAir BasicGuider"
68
+ }
69
+ },
70
+ "48": {
71
+ "inputs": {
72
+ "unet_name": "flux/pixelwave-flux1-dev.safetensors",
73
+ "weight_dtype": "default"
74
+ },
75
+ "class_type": "BizyAir_UNETLoader",
76
+ "_meta": {
77
+ "title": "☁️BizyAir Load Diffusion Model"
78
+ }
79
+ },
80
+ "50": {
81
+ "inputs": {
82
+ "noise": [
83
+ "59",
84
+ 0
85
+ ],
86
+ "guider": [
87
+ "47",
88
+ 0
89
+ ],
90
+ "sampler": [
91
+ "60",
92
+ 0
93
+ ],
94
+ "sigmas": [
95
+ "58",
96
+ 0
97
+ ],
98
+ "latent_image": [
99
+ "66",
100
+ 0
101
+ ]
102
+ },
103
+ "class_type": "BizyAir_SamplerCustomAdvanced",
104
+ "_meta": {
105
+ "title": "☁️BizyAir SamplerCustomAdvanced"
106
+ }
107
+ },
108
+ "54": {
109
+ "inputs": {
110
+ "samples": [
111
+ "50",
112
+ 0
113
+ ],
114
+ "vae": [
115
+ "55",
116
+ 0
117
+ ]
118
+ },
119
+ "class_type": "BizyAir_VAEDecode",
120
+ "_meta": {
121
+ "title": "☁️BizyAir VAE Decode"
122
+ }
123
+ },
124
+ "55": {
125
+ "inputs": {
126
+ "vae_name": "flux/ae.sft"
127
+ },
128
+ "class_type": "BizyAir_VAELoader",
129
+ "_meta": {
130
+ "title": "☁️BizyAir Load VAE"
131
+ }
132
+ },
133
+ "56": {
134
+ "inputs": {
135
+ "images": [
136
+ "54",
137
+ 0
138
+ ]
139
+ },
140
+ "class_type": "PreviewImage",
141
+ "_meta": {
142
+ "title": "预览图像"
143
+ }
144
+ },
145
+ "58": {
146
+ "inputs": {
147
+ "scheduler": "simple",
148
+ "steps": 20,
149
+ "denoise": 1,
150
+ "model": [
151
+ "48",
152
+ 0
153
+ ]
154
+ },
155
+ "class_type": "BizyAir_BasicScheduler",
156
+ "_meta": {
157
+ "title": "☁️BizyAir BasicScheduler"
158
+ }
159
+ },
160
+ "59": {
161
+ "inputs": {
162
+ "noise_seed": 0
163
+ },
164
+ "class_type": "BizyAir_RandomNoise",
165
+ "_meta": {
166
+ "title": "☁️BizyAir RandomNoise"
167
+ }
168
+ },
169
+ "60": {
170
+ "inputs": {
171
+ "sampler_name": "euler"
172
+ },
173
+ "class_type": "BizyAir_KSamplerSelect",
174
+ "_meta": {
175
+ "title": "☁️BizyAir KSamplerSelect"
176
+ }
177
+ },
178
+ "66": {
179
+ "inputs": {
180
+ "width": 1024,
181
+ "height": 1024,
182
+ "batch_size": 1
183
+ },
184
+ "class_type": "EmptySD3LatentImage",
185
+ "_meta": {
186
+ "title": "空Latent图像(SD3)"
187
+ }
188
+ }
189
+ }
190
+ """
191
+
192
+ def queue_prompt(prompt):
193
+ p = {"prompt": prompt}
194
+ data = json.dumps(p).encode('utf-8')
195
+ req = request.Request("http://127.0.0.1:9111/prompt", data=data)
196
+ request.urlopen(req)
197
+
198
+
199
+ prompt = json.loads(prompt_text)
200
+ param_node = {
201
+ "inputs": {},
202
+ "class_type": "BizyAir_PassParameter",
203
+ "_meta": {
204
+ "title": "☁️BizyAir PassParameter",
205
+ "api_key": BIZYAIR_API_KEY,
206
+ "prompt_id": "a-unique-prompt-id"
207
+ }
208
+ }
209
+ prompt["bizyair_magic_node"]=param_node
210
+ queue_prompt(prompt)
211
+ ```
@@ -0,0 +1,198 @@
1
+ ## Server Mode
2
+
3
+ ```bash
4
+ export BIZYAIR_API_KEY="your api key"
5
+ export BIZYAIR_SERVER_MODE=1
6
+ ```
7
+
8
+ ```python
9
+ import json
10
+ import os
11
+ from urllib import request
12
+
13
+ BIZYAIR_API_KEY=os.getenv("BIZYAIR_API_KEY", "")
14
+
15
+ prompt_text = """
16
+ {
17
+ "36": {
18
+ "inputs": {
19
+ "clip_name1": "t5xxl_fp16.safetensors",
20
+ "clip_name2": "clip_l.safetensors",
21
+ "type": "flux"
22
+ },
23
+ "class_type": "BizyAir_DualCLIPLoader",
24
+ "_meta": {
25
+ "title": "☁️BizyAir DualCLIPLoader"
26
+ }
27
+ },
28
+ "37": {
29
+ "inputs": {
30
+ "text": "close up photo of a rabbit, forest in spring, haze, halation, bloom, dramatic atmosphere, centred, rule of thirds, 200mm 1.4f macro shot",
31
+ "clip": [
32
+ "36",
33
+ 0
34
+ ]
35
+ },
36
+ "class_type": "BizyAir_CLIPTextEncode",
37
+ "_meta": {
38
+ "title": "☁️BizyAir CLIP Text Encode (Prompt)"
39
+ }
40
+ },
41
+ "47": {
42
+ "inputs": {
43
+ "model": [
44
+ "48",
45
+ 0
46
+ ],
47
+ "conditioning": [
48
+ "37",
49
+ 0
50
+ ]
51
+ },
52
+ "class_type": "BizyAir_BasicGuider",
53
+ "_meta": {
54
+ "title": "☁️BizyAir BasicGuider"
55
+ }
56
+ },
57
+ "48": {
58
+ "inputs": {
59
+ "unet_name": "flux/pixelwave-flux1-dev.safetensors",
60
+ "weight_dtype": "default"
61
+ },
62
+ "class_type": "BizyAir_UNETLoader",
63
+ "_meta": {
64
+ "title": "☁️BizyAir Load Diffusion Model"
65
+ }
66
+ },
67
+ "50": {
68
+ "inputs": {
69
+ "noise": [
70
+ "59",
71
+ 0
72
+ ],
73
+ "guider": [
74
+ "47",
75
+ 0
76
+ ],
77
+ "sampler": [
78
+ "60",
79
+ 0
80
+ ],
81
+ "sigmas": [
82
+ "58",
83
+ 0
84
+ ],
85
+ "latent_image": [
86
+ "66",
87
+ 0
88
+ ]
89
+ },
90
+ "class_type": "BizyAir_SamplerCustomAdvanced",
91
+ "_meta": {
92
+ "title": "☁️BizyAir SamplerCustomAdvanced"
93
+ }
94
+ },
95
+ "54": {
96
+ "inputs": {
97
+ "samples": [
98
+ "50",
99
+ 0
100
+ ],
101
+ "vae": [
102
+ "55",
103
+ 0
104
+ ]
105
+ },
106
+ "class_type": "BizyAir_VAEDecode",
107
+ "_meta": {
108
+ "title": "☁️BizyAir VAE Decode"
109
+ }
110
+ },
111
+ "55": {
112
+ "inputs": {
113
+ "vae_name": "flux/ae.sft"
114
+ },
115
+ "class_type": "BizyAir_VAELoader",
116
+ "_meta": {
117
+ "title": "☁️BizyAir Load VAE"
118
+ }
119
+ },
120
+ "56": {
121
+ "inputs": {
122
+ "images": [
123
+ "54",
124
+ 0
125
+ ]
126
+ },
127
+ "class_type": "PreviewImage",
128
+ "_meta": {
129
+ "title": "预览图像"
130
+ }
131
+ },
132
+ "58": {
133
+ "inputs": {
134
+ "scheduler": "simple",
135
+ "steps": 20,
136
+ "denoise": 1,
137
+ "model": [
138
+ "48",
139
+ 0
140
+ ]
141
+ },
142
+ "class_type": "BizyAir_BasicScheduler",
143
+ "_meta": {
144
+ "title": "☁️BizyAir BasicScheduler"
145
+ }
146
+ },
147
+ "59": {
148
+ "inputs": {
149
+ "noise_seed": 0
150
+ },
151
+ "class_type": "BizyAir_RandomNoise",
152
+ "_meta": {
153
+ "title": "☁️BizyAir RandomNoise"
154
+ }
155
+ },
156
+ "60": {
157
+ "inputs": {
158
+ "sampler_name": "euler"
159
+ },
160
+ "class_type": "BizyAir_KSamplerSelect",
161
+ "_meta": {
162
+ "title": "☁️BizyAir KSamplerSelect"
163
+ }
164
+ },
165
+ "66": {
166
+ "inputs": {
167
+ "width": 1024,
168
+ "height": 1024,
169
+ "batch_size": 1
170
+ },
171
+ "class_type": "EmptySD3LatentImage",
172
+ "_meta": {
173
+ "title": "空Latent图像(SD3)"
174
+ }
175
+ }
176
+ }
177
+ """
178
+
179
+ def queue_prompt(prompt):
180
+ p = {"prompt": prompt}
181
+ data = json.dumps(p).encode('utf-8')
182
+ req = request.Request("http://127.0.0.1:9111/prompt", data=data)
183
+ request.urlopen(req)
184
+
185
+
186
+ prompt = json.loads(prompt_text)
187
+ param_node = {
188
+ "inputs": {},
189
+ "class_type": "BizyAir_PassParameter",
190
+ "_meta": {
191
+ "title": "☁️BizyAir PassParameter",
192
+ "api_key": BIZYAIR_API_KEY,
193
+ "prompt_id": "a-unique-prompt-id"
194
+ }
195
+ }
196
+ prompt["bizyair_magic_node"]=param_node
197
+ queue_prompt(prompt)
198
+ ```