DatasetInfo

class DatasetInfo(id, name, description, size, project_id, images_count, items_count, created_at, updated_at, reference_image_url, team_id, workspace_id, parent_id, custom_data, created_by)[source]

Bases: NamedTuple

Represent Supervisely Dataset information.

Parameters:
id : int

Dataset ID.

name : str

Dataset Name.

description : str

Dataset description.

size : int

Dataset size.

project_id : int

Project ID in which the Dataset is located.

images_count : int

Number of images in the Dataset.

items_count : int

Number of items in the Dataset.

created_at : str

Date and time when the Dataset was created.

updated_at : str

Date and time when the Dataset was last updated.

reference_image_url : str

URL of the reference image.

team_id : int

Team ID in which the Dataset is located.

workspace_id : int

Workspace ID in which the Dataset is located.

parent_id : Union[int, None]

Parent Dataset ID. If the Dataset is not nested, then the value is None.

Create new instance of DatasetInfo(id, name, description, size, project_id, images_count, items_count, created_at, updated_at, reference_image_url, team_id, workspace_id, parent_id, custom_data, created_by)

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

created_at

Alias for field number 7

created_by

Alias for field number 14

custom_data

Alias for field number 13

description

Alias for field number 2

id

Alias for field number 0

image_preview_url

images_count

Alias for field number 5

items_count

Alias for field number 6

name

Alias for field number 1

parent_id

Alias for field number 12

project_id

Alias for field number 4

reference_image_url

Alias for field number 9

size

Alias for field number 3

team_id

Alias for field number 10

updated_at

Alias for field number 8

workspace_id

Alias for field number 11

count(value, /)

Return number of occurrences of value.

index(value, start=0, stop=9223372036854775807, /)

Return first index of value.

Raises ValueError if the value is not present.

created_at

Alias for field number 7

created_by

Alias for field number 14

custom_data

Alias for field number 13

description

Alias for field number 2

id

Alias for field number 0

images_count

Alias for field number 5

items_count

Alias for field number 6

name

Alias for field number 1

parent_id

Alias for field number 12

project_id

Alias for field number 4

reference_image_url

Alias for field number 9

size

Alias for field number 3

team_id

Alias for field number 10

updated_at

Alias for field number 8

workspace_id

Alias for field number 11