Project Class API

class supervisely_lib.api.project_class_api.ProjectClassApi(api)[source]

Bases: supervisely_lib.api.module_api.ModuleApi

API for working with classes in Project. ProjectClassApi object is immutable.

Parameters

api (Api) – API connection to the server

Usage example

static info_sequence()[source]
static info_tuple_name()[source]

NamedTuple name - ProjectClassInfo.

get_list(project_id: int, filters: Optional[list] = None) → list[source]

List of Classes in the given Project.

Parameters
  • project_id (int) – Project ID in Supervisely.

  • filters (list) –

Returns

List of classes.

Return type

list

Usage example

InfoType

alias of supervisely_lib.api.module_api.ProjectClassInfo