Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yors_pano_zero_field-1.0.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yors_pano_zero_field-1.0.0-py3-none-any.whl (2.9 kB view details)

Uploaded Python 3

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

Hashes for yors_pano_zero_field-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e590fac4f18c535b8ed90c3787e3f415270e1e52b8f440ca0221a97e92ab9196
MD5 4b135c284850e1be4290e00272bf2ed2
BLAKE2b-256 0599ef54df9823283dd0a73a3a71c29e335f682306e01d2f0637c946dccc633c

See more details on using hashes here.

File details

Details for the file yors_pano_zero_field-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yors_pano_zero_field-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 344daffc9de89b32130c31b680e8918c9962fba5d613b47f21554f14c888adf4
MD5 8675d5f5abf7434b045b81f0642e8e90
BLAKE2b-256 4803cfe147e361b423a1b22fa6e1d82b6b2f07e3ae65eef23aeecb77e78b4b1f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page