Skip to content

Commit

Permalink
fix: RND-103: add workspace.is_archived (#264)
Browse files Browse the repository at this point in the history
* fix: RND-103: add workspace.is_archived

* 🌿 Fern Regeneration -- July 13, 2024 (#263)

SDK regeneration

Co-authored-by: fern-api <115122769+fern-api[bot]@users.noreply.github.com>

---------

Co-authored-by: nik <[email protected]>
Co-authored-by: fern-api[bot] <115122769+fern-api[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Jul 13, 2024
1 parent 87d329e commit 0b7ece0
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 482 deletions.
6 changes: 6 additions & 0 deletions .mock/definition/workspaces.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ service:
is_personal:
type: optional<boolean>
docs: Is workspace personal
is_archived:
type: optional<boolean>
docs: Is workspace archived
color:
type: optional<string>
docs: Workspace color in HEX format
Expand Down Expand Up @@ -175,6 +178,9 @@ service:
is_personal:
type: optional<boolean>
docs: Is workspace personal
is_archived:
type: optional<boolean>
docs: Is workspace archived
color:
type: optional<string>
docs: Workspace color in HEX format
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,18 +62,16 @@ Check more examples [here](https://api.labelstud.io/).
## Create a new project

```python
from label_studio_sdk.label_interface import LabelInterface
from label_studio_sdk.label_interface.create import labels

project = ls.projects.create(
name="Project name",
description="Project description",
label_config="""
<View>
<Image name="image" value="$image" />
<RectangleLabels name="label" toName="image">
<Label value="cat" />
<Label value="dog" />
</RectangleLabels>
</View>
"""
label_config=LabelInterface.create({
"image": "Image",
"bbox": labels(["cat", "dog"], tag_type="RectangleLabels")
})
)
```

Expand Down
6 changes: 3 additions & 3 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0b7ece0

Please sign in to comment.