EntitiesCollectionInfo

class EntitiesCollectionInfo(id, name, team_id, project_id, created_at, updated_at, description=None, options=None, type='default', ai_search_key=None)[source]

Bases: NamedTuple

NamedTuple with entities collection information from Supervisely.

Usage Example:
EntitiesCollectionInfo(
    id=1,
    team_id=2,
    project_id=3,
    name="collection_name",
    created_at="2023-01-01T00:00:00Z",
    updated_at="2023-01-02T00:00:00Z",
    description="This is a collection",
    options={"key": "value"},
    type="default",
    ai_search_key="search_key"
)

Create new instance of EntitiesCollectionInfo(id, name, team_id, project_id, created_at, updated_at, description, options, type, ai_search_key)

Methods

count

Return number of occurrences of value.

index

Return first index of value.

Attributes

ai_search_key

AI search key for the collection.

created_at

Date and time when the collection was created.

description

Description of the collection.

id

ID of the collection.

name

Name of the collection.

options

Additional options for the collection.

project_id

ID of the project.

team_id

ID of the team.

type

Type of the collection.

updated_at

Date and time when the collection was last updated.

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.

ai_search_key

AI search key for the collection.

created_at

Date and time when the collection was created.

description

Description of the collection.

id

ID of the collection.

name

Name of the collection.

options

Additional options for the collection.

project_id

ID of the project.

team_id

ID of the team.

type

Type of the collection.

updated_at

Date and time when the collection was last updated.