Skip to content

Component

Bases: Identity

Represents a component with identifying details and associated files.

Inherits from

Identity: Includes basic identity attributes such as id, name, and family.

Attributes:

Name Type Description
code str

The unique code assigned to the component.

attachments list[File]

A list of File instances associated with the component.

from_dict(data) classmethod

Creates a Component instance from a dictionary.

Parameters:

Name Type Description Default
data dict

A dictionary containing component details.

required

Returns:

Name Type Description
Component Component

A new Component instance with attributes populated from the dictionary.