a package to set different types of input parameters for comfyui node easily
Project description
a package to set different types of input parameters for comfyui node easily
File size
Features
Usage
pip install yors_pano_zero_field
from yors_pano_zero_field import ZeroField
class MyComfyUINode:
@classmethod
def INPUT_TYPES(cls):
return {
"required": {
"input_int": ZeroField.int(default=10, min=1, max=100, force=True),
"input_float": ZeroField.float(default=0.5, min=0, max=1),
"input_string": ZeroField.string(default="default text")
}
}
RETURN_TYPES = ()
FUNCTION = "process"
CATEGORY = "custom"
def process(self, input_int, input_float, input_string):
# 处理输入参数
print(f"Received integer: {input_int}")
print(f"Received float: {input_float}")
print(f"Received string: {input_string}")
return ()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yors_pano_zero_field-1.0.0.tar.gz.
File metadata
- Download URL: yors_pano_zero_field-1.0.0.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e590fac4f18c535b8ed90c3787e3f415270e1e52b8f440ca0221a97e92ab9196
|
|
| MD5 |
4b135c284850e1be4290e00272bf2ed2
|
|
| BLAKE2b-256 |
0599ef54df9823283dd0a73a3a71c29e335f682306e01d2f0637c946dccc633c
|
File details
Details for the file yors_pano_zero_field-1.0.0-py3-none-any.whl.
File metadata
- Download URL: yors_pano_zero_field-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.10.6 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
344daffc9de89b32130c31b680e8918c9962fba5d613b47f21554f14c888adf4
|
|
| MD5 |
8675d5f5abf7434b045b81f0642e8e90
|
|
| BLAKE2b-256 |
4803cfe147e361b423a1b22fa6e1d82b6b2f07e3ae65eef23aeecb77e78b4b1f
|