Skip to content

Resource Item Representation

ResourceItemRepresentation

Represents the metadata of a Vectice resource.

An Resource Item Representation shows information about a specific resource item from the Vectice app. It makes it easier to get and read this information through the API.

Attributes:

Name Type Description
path str

The path of the resource.

name str

The name of the resource.

usage str

The usage of the resource.

size int | None

The size of the resource.

columns_number int | None

The columns number of the resource.

rows_number int | None

The number of rows of the resource.

info dict | None

The extra information of the resource.

asdict

asdict()

Transform the ResourceItemRepresentation into a organised dictionary.

Returns:

Type Description
Dict[str, Any]

The object represented as a dictionary

list_columns

list_columns()

Lists all the columns of the item.

Returns:

Type Description
list[Dict[str, Any]]

The columns list.