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

ComfyUI Node: create from items (data list)

Class Name

Basic data handling: DictCreateFromItemsDataList

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 (data list) Description

Creates a dictionary from key-value pair lists for efficient data organization and access.

create from items (data list):

The DictCreateFromItemsDataList 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 workflows. This functionality is essential for organizing data in a structured manner, enabling more efficient data retrieval and manipulation.

create from items (data list) Input Parameters:

item

The item parameter is a required input that accepts a list of key-value pairs, where each pair is represented as a tuple. This parameter is crucial as it defines the data that will be transformed into a dictionary. Each tuple in the list should contain exactly two elements: the first being the key and the second being the value. The node will iterate over this list to construct the dictionary. There are no specific minimum or maximum values for this parameter, but it is important that each tuple strictly adheres to the key-value format to avoid errors.

create from items (data list) Output Parameters:

DICT

The output of this node is a dictionary, denoted as DICT. This dictionary is constructed from the input list of key-value pairs, providing a structured and efficient way to store and access data. The dictionary allows for quick retrieval of values based on their keys, making it a powerful tool for data management and manipulation in various applications.

create from items (data list) Usage Tips:

  • Ensure that each item in the input list is a tuple containing exactly two elements: a key and a value. This will prevent errors and ensure the dictionary is created correctly.
  • Use this node when you need to convert a list of paired data into a dictionary format, which can be particularly useful for organizing and accessing data efficiently in your projects.

create from items (data 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 items in the input list do not conform to the expected tuple format of (key, value).
  • Solution: Check the input list to ensure that each item is a tuple with exactly two elements. Correct any items that do not meet this requirement.

Error creating dictionary from items: <specific error message>

  • Explanation: This error message indicates a problem encountered during the dictionary creation process, possibly due to invalid input data.
  • Solution: Review the input data for any inconsistencies or errors, such as non-tuple items or tuples with incorrect lengths, and correct them before re-running the node.

create from items (data 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 (data list)