Skip to main content

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 ()

Metadata

Release files for yors_pano_zero_field 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for yors_pano_zero_field 1.0.0
File Size Uploaded
yors_pano_zero_field-1.0.0.tar.gz 2.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for yors_pano_zero_field 1.0.0
File Interpreter ABI Platform
yors_pano_zero_field-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 5.3 kB

Release files / yors_pano_zero_field-1.0.0.tar.gz

Download URL yors_pano_zero_field-1.0.0.tar.gz
Size 2.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e590fac4f18c535b8ed90c3787e3f415270e1e52b8f440ca0221a97e92ab9196
BLAKE2b-256 checksum
How to use checksums
0599ef54df9823283dd0a73a3a71c29e335f682306e01d2f0637c946dccc633c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.6 Windows/10

Release files / yors_pano_zero_field-1.0.0-py3-none-any.whl

Download URL yors_pano_zero_field-1.0.0-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
344daffc9de89b32130c31b680e8918c9962fba5d613b47f21554f14c888adf4
BLAKE2b-256 checksum
How to use checksums
4803cfe147e361b423a1b22fa6e1d82b6b2f07e3ae65eef23aeecb77e78b4b1f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.8.2 CPython/3.10.6 Windows/10

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page