2121
2222
2323class Project (DbObject , Updateable , Deletable ):
24- name = Field .String ("name" )
24+ """ A Project is a container that includes a labeling frontend, an ontology,
25+ datasets and labels.
26+ """
2527 description = Field .String ("description" )
2628 updated_at = Field .DateTime ("updated_at" )
2729 created_at = Field .DateTime ("created_at" )
@@ -170,6 +172,9 @@ def unset_labeling_parameter_overrides(self, data_rows):
170172
171173
172174class Dataset (DbObject , Updateable , Deletable ):
175+ """ A dataset is a collection of DataRows. For example, if you have a CSV with
176+ 100 rows, you will have 1 Dataset and 100 DataRows.
177+ """
173178 name = Field .String ("name" )
174179 description = Field .String ("description" )
175180 updated_at = Field .DateTime ("updated_at" )
@@ -324,6 +329,9 @@ def data_row_for_external_id(self, external_id):
324329
325330
326331class DataRow (DbObject , Updateable , BulkDeletable ):
332+ """ A DataRow represents a single piece of data. For example, if you have
333+ a CSV with 100 rows, you will have 1 Dataset and 100 DataRows.
334+ """
327335 external_id = Field .String ("external_id" )
328336 row_data = Field .String ("row_data" )
329337 updated_at = Field .DateTime ("updated_at" )
@@ -360,7 +368,9 @@ def create_metadata(self, meta_type, meta_value):
360368
361369
362370class Label (DbObject , Updateable , BulkDeletable ):
363-
371+ """ Label represents an assessment on a DataRow. For example one label could
372+ contain 100 bounding boxes (annotations).
373+ """
364374 def __init__ (self , * args , ** kwargs ):
365375 super ().__init__ (* args , ** kwargs )
366376 self .reviews .supports_filtering = False
@@ -408,6 +418,9 @@ class NetScore(Enum):
408418
409419
410420class AssetMetadata (DbObject ):
421+ """ AssetMetadata is a datatype to provide extra context about an asset
422+ while labeling.
423+ """
411424 VIDEO = "VIDEO"
412425 IMAGE = "IMAGE"
413426 TEXT = "TEXT"
@@ -417,6 +430,9 @@ class AssetMetadata(DbObject):
417430
418431
419432class User (DbObject ):
433+ """ A User is a registered Labelbox user (for example you) associated with
434+ data they create or import and an Organization they belong to.
435+ """
420436 updated_at = Field .DateTime ("updated_at" )
421437 created_at = Field .DateTime ("created_at" )
422438 email = Field .String ("email" )
@@ -436,6 +452,10 @@ class User(DbObject):
436452
437453
438454class Organization (DbObject ):
455+ """ An Organization is a group of Users associated with data created by
456+ Users within that Organization. Typically all Users within an Organization
457+ have access to data created by any User in the same Organization.
458+ """
439459
440460 # RelationshipManagers in Organization use the type in Query (and
441461 # not the source object) because the server-side does not support
@@ -456,6 +476,9 @@ def __init__(self, *args, **kwargs):
456476
457477
458478class Task (DbObject ):
479+ """ Represents a server-side process that might take a longer time to process.
480+ Allows the Task state to be updated and checked on the client side.
481+ """
459482 updated_at = Field .DateTime ("updated_at" )
460483 created_at = Field .DateTime ("created_at" )
461484 name = Field .String ("name" )
@@ -496,6 +519,10 @@ def wait_till_done(self, timeout_seconds=60):
496519
497520
498521class LabelingFrontend (DbObject ):
522+ """ Is a type representing an HTML / JavaScript UI that is used to generate
523+ labels. “Image Labeling” is the default Labeling Frontend that comes in every
524+ organization. You can create new labeling frontends for an organization.
525+ """
499526 name = Field .String ("name" )
500527 description = Field .String ("description" )
501528 iframe_url_path = Field .String ("iframe_url_path" )
@@ -519,6 +546,10 @@ class LabelingParameterOverride(DbObject):
519546
520547# Webhook is Updateable, but with using custom GraphQL.
521548class Webhook (DbObject ):
549+ """ Represents a server-side rule for sending notifications to a web-server
550+ whenever one of several predefined actions happens within a context of
551+ a Project or an Organization.
552+ """
522553
523554 # Status
524555 ACTIVE = "ACTIVE"
0 commit comments