Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
531 changes: 531 additions & 0 deletions sdk-api/python/reference/annotation_queues.mdx

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions sdk-api/python/reference/collaborator.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ method which returns a new Collaborator instance. To remove access, use remove()

**Examples**

```python
# Get collaborators for a project
project = Project.get(name="My Project")
collaborators = project.collaborators
Expand All @@ -39,7 +38,6 @@ updated_collab = collab.update(role=CollaboratorRole.EDITOR)

# Remove a collaborator
collab.remove()
```

### created_at

Expand Down Expand Up @@ -114,11 +112,9 @@ the collaborator object should no longer be used.

**Examples**

```python
# Remove a collaborator
collab = project.collaborators[0]
collab.remove()
```

### role

Expand Down
14 changes: 0 additions & 14 deletions sdk-api/python/reference/dataset.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ integration with dataset content management.

**Examples**

```python
# Create a new dataset locally, then persist
dataset = Dataset(
name="ml-knowledge-evaluation_3",
Expand Down Expand Up @@ -44,7 +43,6 @@ versions = dataset.get_versions()

# Delete dataset
dataset.delete()
```

### add_rows

Expand All @@ -70,10 +68,8 @@ Persist this dataset to the API.

**Examples**

```python
dataset = Dataset(name="test", content=[...]).create()
assert dataset.is_synced()
```

### delete

Expand All @@ -85,10 +81,8 @@ Delete this dataset.

**Examples**

```python
dataset = Dataset.get(name="my-dataset")
dataset.delete()
```

### extend

Expand Down Expand Up @@ -161,10 +155,8 @@ Get the content of this dataset.

**Examples**

```python
dataset = Dataset.get(name="my-dataset")
content = dataset.get_content()
```

### get_version_content

Expand All @@ -188,12 +180,10 @@ Get a list of versions for this dataset.

**Examples**

```python
dataset = Dataset.get(name="my-dataset")
versions = dataset.get_versions()
for v in versions.versions:
print(v.version_index, v.num_rows)
```

### list

Expand Down Expand Up @@ -226,10 +216,8 @@ and sets the state to SYNCED.

**Examples**

```python
dataset.refresh()
assert dataset.is_synced()
```

### save

Expand All @@ -245,9 +233,7 @@ no-op. Raises ValueError for DELETED or FAILED_SYNC states.

**Examples**

```python
dataset = Dataset.get(name="my-dataset")
dataset.name = "renamed-dataset"
dataset.save()
assert dataset.is_synced()
```
Loading
Loading