Skip to content

ObjectItem API Reference

API Documentation

hands_scaphoid.objects.ObjectItem

Classes

ObjectItem

Bases: ItemCore

Represents an object in the shell context.

Attributes:

Name Type Description
name str

The name of the object.

path str

The path of the object in the filesystem.

Source code in src/hands_scaphoid/objects/ObjectItem.py
class ObjectItem(ItemCore):
    """
    Represents an object in the shell context.

    Attributes:
        name (str): The name of the object.
        path (str): The path of the object in the filesystem.
    """

    def __init__(self, name: str, path: str):
        super().__init__(name, path, item_type=ItemType.OBJECT)

    def __repr__(self):
        return f"ObjectItem(name={self.name}, path={self.value})"