Skip to content

Commit 0b7ece0

Browse files
niklubnikfern-api[bot]
authored
fix: RND-103: add workspace.is_archived (#264)
* 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>
1 parent 87d329e commit 0b7ece0

File tree

5 files changed

+38
-482
lines changed

5 files changed

+38
-482
lines changed

.mock/definition/workspaces.yml

+6
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ service:
7272
is_personal:
7373
type: optional<boolean>
7474
docs: Is workspace personal
75+
is_archived:
76+
type: optional<boolean>
77+
docs: Is workspace archived
7578
color:
7679
type: optional<string>
7780
docs: Workspace color in HEX format
@@ -175,6 +178,9 @@ service:
175178
is_personal:
176179
type: optional<boolean>
177180
docs: Is workspace personal
181+
is_archived:
182+
type: optional<boolean>
183+
docs: Is workspace archived
178184
color:
179185
type: optional<string>
180186
docs: Workspace color in HEX format

README.md

+7-9
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,16 @@ Check more examples [here](https://api.labelstud.io/).
6262
## Create a new project
6363

6464
```python
65+
from label_studio_sdk.label_interface import LabelInterface
66+
from label_studio_sdk.label_interface.create import labels
67+
6568
project = ls.projects.create(
6669
name="Project name",
6770
description="Project description",
68-
label_config="""
69-
<View>
70-
<Image name="image" value="$image" />
71-
<RectangleLabels name="label" toName="image">
72-
<Label value="cat" />
73-
<Label value="dog" />
74-
</RectangleLabels>
75-
</View>
76-
"""
71+
label_config=LabelInterface.create({
72+
"image": "Image",
73+
"bbox": labels(["cat", "dog"], tag_type="RectangleLabels")
74+
})
7775
)
7876
```
7977

poetry.lock

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)