Skip to content

Commit adbb635

Browse files
authored
Merge pull request #780 from superannotateai/develop
Develop
2 parents 2afd5a1 + 5cb77b9 commit adbb635

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+2241
-219
lines changed

CHANGELOG.rst

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,29 @@ History
66

77
All release highlights of this project will be documented in this file.
88

9+
4.4.33 - April 1, 2025
10+
______________________
11+
12+
**Added**
13+
14+
- ``SAClient.get_user_scores`` Retrieves score metadata for a user on a specific item within a project.
15+
- ``SAClient.user_scores`` Assigns or updates score metadata for a user on a specific item in a project.
16+
17+
**Updated**
18+
19+
- ``SAClient.prepare_export`` Added option for JSONL download type.
20+
- ``SAClient.download_annotations`` Added data_spec parameter enabling annotation downloads in JSONL format for multimodal projects.
21+
- ``SAClient.list_items`` Introduced a new parameter to filter results by item category.
22+
- ``SAClient.list_users`` Now retrieves a list of users with their scores and includes filtering options. Added an optional project parameter to fetch project-level scores instead of team-level scores.
23+
- ``SAClient.item_context`` Added information about the ItemContext nested class.
24+
- ``SAClient.list_projects`` Enhanced docstrings for to improve clarity and usability.
25+
926
4.4.32 - March 4, 2025
10-
_____________________
27+
______________________
1128

1229
**Fixed**
1330

14-
- ``SAClient.item_context`` Fixed an issue where setting a component value would overwrite existing comments and other associated data.
31+
- ``SAClient.item_context`` Fixed an issue where setting a component value would overwrite existing comments and other associated data.
1532

1633
4.4.31 - Feb 27, 2025
1734
_____________________

docs/source/api_reference/api_item.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ Items
99
.. automethod:: superannotate.SAClient.search_items
1010
.. automethod:: superannotate.SAClient.attach_items
1111
.. automethod:: superannotate.SAClient.item_context
12+
.. autoclass:: superannotate.ItemContext
13+
:members: get_metadata, get_component_value, set_component_value
14+
:member-order: bysource
15+
1216
.. automethod:: superannotate.SAClient.copy_items
1317
.. automethod:: superannotate.SAClient.move_items
1418
.. automethod:: superannotate.SAClient.delete_items

docs/source/api_reference/api_team.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ Team
1212
.. automethod:: superannotate.SAClient.list_users
1313
.. automethod:: superannotate.SAClient.pause_user_activity
1414
.. automethod:: superannotate.SAClient.resume_user_activity
15+
.. automethod:: superannotate.SAClient.get_user_scores
16+
.. automethod:: superannotate.SAClient.set_user_scores

docs/source/userguide/quickstart.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Initialization and authorization
3232
================================
3333

3434
To use the SDK, you need to create a config file with a team-specific authentication token. The token is available
35-
to team admins on the team settings page at https://app.superannotate.com/team.
35+
to team admins on the team settings page at https://doc.superannotate.com/docs/token-for-python-sdk#generate-a-token-for-python-sdk.
3636

3737
SAClient can be used with or without arguments
3838
______________________________________________

docs/source/userguide/setup_project.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ An annotation class for a project can be created with SDK's:
7474
7575
To create annotation classes in bulk with SuperAnnotate export format
7676
:file:`classes.json` (documentation at:
77-
https://app.superannotate.com/documentation Management Tools
77+
https://superannotate.readthedocs.io/en/stable/userguide/setup_project.html#working-with-annotation-classes Ma`nagement Tools
7878
-> Project Workflow part):
7979

8080
.. code-block:: python

pytest.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ minversion = 3.7
33
log_cli=true
44
python_files = test_*.py
55
;pytest_plugins = ['pytest_profiling']
6-
;addopts = -n 4 --dist loadscope
6+
addopts = -n 6 --dist loadscope

src/superannotate/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import sys
44

55

6-
__version__ = "4.4.32"
6+
__version__ = "4.4.33"
7+
78

89
os.environ.update({"sa_version": __version__})
910
sys.path.append(os.path.split(os.path.realpath(__file__))[0])
@@ -20,6 +21,7 @@
2021
from superannotate.lib.app.input_converters import export_annotation
2122
from superannotate.lib.app.input_converters import import_annotation
2223
from superannotate.lib.app.interface.sdk_interface import SAClient
24+
from superannotate.lib.app.interface.sdk_interface import ItemContext
2325

2426

2527
SESSIONS = {}
@@ -28,6 +30,7 @@
2830
__all__ = [
2931
"__version__",
3032
"SAClient",
33+
"ItemContext",
3134
# Utils
3235
"enums",
3336
"AppException",

0 commit comments

Comments
 (0)