ComfyUI > Nodes > Basic data handling > create from items (LIST)

ComfyUI Node: create from items (LIST)

Class Name

Basic data handling: DictCreateFromItemsList

Category
Basic/DICT
Author
StableLlama (Account age: 861days)
Extension
Basic data handling
Latest Updated
2026-05-07
Github Stars
0.04K

How to Install Basic data handling

Install this extension via the ComfyUI Manager by searching for Basic data handling
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Basic data handling in the search bar
After installation, click the Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

create from items (LIST) Description

Converts a list of key-value pairs into a dictionary for efficient data manipulation.

create from items (LIST):

The DictCreateFromItemsList node is designed to facilitate the creation of a dictionary from a list of key-value pairs. This node is particularly useful when you have data organized in pairs and need to convert it into a dictionary format for easier manipulation and access. By taking a list of tuples, where each tuple contains a key and a corresponding value, this node efficiently constructs a dictionary, allowing you to leverage the powerful data handling capabilities of dictionaries in your projects. This process is streamlined and ensures that your data is organized in a way that is both accessible and easy to manage, making it an essential tool for AI artists who need to handle structured data without delving into complex programming.

create from items (LIST) Input Parameters:

items

The items parameter is a required input that expects a list of tuples, where each tuple represents a key-value pair. This parameter is crucial as it forms the basis of the dictionary that will be created. Each tuple should contain exactly two elements: the first being the key and the second being the value. The keys and values can be of any data type, but it is important to ensure that the keys are unique within the list to avoid overwriting values in the resulting dictionary. There are no explicit minimum or maximum values for this parameter, but the list must be properly formatted as described to avoid errors during execution.

create from items (LIST) Output Parameters:

DICT

The output of this node is a dictionary, denoted as DICT. This dictionary is constructed from the list of key-value pairs provided in the items input parameter. The resulting dictionary allows for efficient data retrieval and manipulation, as each key in the dictionary can be used to access its corresponding value. This output is particularly valuable for organizing data in a structured format, enabling you to perform operations such as data filtering, merging, and more with ease.

create from items (LIST) Usage Tips:

  • Ensure that each tuple in the items list contains exactly two elements to avoid errors during dictionary creation.
  • Use unique keys within the items list to prevent accidental overwriting of values in the resulting dictionary.

create from items (LIST) Common Errors and Solutions:

Error creating dictionary from items: Each item must be a (key, value) pair

  • Explanation: This error occurs when one or more tuples in the items list do not contain exactly two elements, which is required for forming a key-value pair.
  • Solution: Verify that each tuple in your items list is correctly formatted with exactly two elements, representing a key and a value.

Error creating dictionary from items: <specific error message>

  • Explanation: This error message indicates a problem encountered during the dictionary creation process, which could be due to various reasons such as invalid data types or malformed input.
  • Solution: Review the items list to ensure all tuples are correctly formatted and contain valid data types for keys and values. Additionally, check for any other anomalies in the input data that might cause issues.

create from items (LIST) Related Nodes

Go back to the extension to check out more related nodes.
Basic data handling
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

create from items (LIST)