create_label_set, get_label_set
and list_label_sets.
LabelSet Objects
id
UUID- The label set ID.
name
str- The name.
description
str- The description, empty when none was given.
origin
LabelSetOrigin-WORKFLOWfor labels made in the project,IMPORTfor labels written to the branch from outside, such as model predictions.
sources
sources again.
Returns:
List[StoredSource]- One StoredProjectSource today: the project, the branch a version captures, and itslabel_selection(AllSelection when a version captures every label on the branch). An UnknownSource is a kind of source this SDK version does not recognize.
created_by_email
str- The creator’s email.
created_at
datetime- The creation time.
refetch_data
update
None is unchanged.
Arguments:
name- The new name.description- The new description. Pass""to clear it.
AuthorisationError- You cannot manage the set.
set_label_selection
source_id- The source under this label set. Available on listed sources too.selection- A WorkflowStageSelection (on themainbranch only), or AllSelection so that the next version captures every label on the branch.
AuthorisationError- You cannot manage the set.ResourceNotFoundError- The source does not belong to this label set.EncordException- A stage selection was given for a branch other thanmain.ValueError-source_idis a badly formed UUID.
list_versions
page_size- Number of versions per page. Default 100, maximum 100.
Iterator[LabelSetVersion]- The versions.
get_version
version_id- The version.
LabelSetVersion- The version.
ValueError-version_idis a badly formed UUID.ResourceNotFoundError- The version does not exist under this set, or you cannot read it.
create_version_job
name- A label for the version, shown with its number.Nonemeans the number alone.
UUID- The job.
AuthorisationError- You cannot manage the set.
get_version_job
timeout_seconds for it to finish.
Arguments:
job_id- The job, as returned by create_version_job().timeout_seconds- How long to wait while the job is pending, polling with backoff.0reads the state once and returns it. The job is never cancelled; a pending result after the wait means it is still running and can be read again.
VersionJob- One of LabelSetJobPending, VersionJobDone with the version it created, VersionJobFailed with the reason (no version was created), or LabelSetJobUnknown for a state this SDK version does not recognize.
ValueError-job_idis a badly formed UUID.ResourceNotFoundError- The job does not exist under this set, or you cannot read it.EncordException- The platform returned a job state this SDK cannot read.
LabelSetVersion Objects
id
UUID- The version ID.
label_set_id
UUID- The label set ID.
sources
List[StoredCapturedSource]- One CapturedSource today: the project branch the version captured, with the ontology and revision its labels were made against when it was created. An UnknownSource is a kind of source this SDK version does not recognize.
version_number
int- The version number.
name
str- The name.
status
LabelSetVersionStatus-BUILDING,READYorFAILED.
created_by_email
str- The creator’s email.
capture_started_at
datetime- The start time.
capture_finished_at
Optional[datetime]- The finish time, orNonewhile the version is building.
label_count
Optional[int]- The count, orNoneuntil the version is READY.
refetch_data
get_ontology
OntologyStructure- The frozen ontology.
list_members
page_size- Number of labels per page. Default 100, maximum 100.
Iterator[LabelSetVersionMember]- The labels, with the storage item each one was on.
create_export_job
format- Format of the export.
UUID- The job.
AuthorisationError- You cannot manage the captured project.
get_export_job
timeout_seconds for it to finish.
Arguments:
job_id- The job, as returned by create_export_job().timeout_seconds- How long to wait while the job is pending, polling with backoff.0reads the state once and returns it. The job is never cancelled; a pending result after the wait means it is still running and can be read again.
VersionExportJob- One of LabelSetJobPending, VersionExportJobDone with a link to the archive, valid for seven days and renewed on each read, VersionExportJobFailed, or LabelSetJobUnknown for a state this SDK version does not recognize.
ValueError-job_idis a badly formed UUID.ResourceNotFoundError- The job does not exist under this version, or you cannot read it.EncordException- The platform returned a job state this SDK cannot read.

