Skip to content

Commit 55df342

Browse files
authored
Merge pull request #463 from superannotateai/develop
Develop
2 parents 2249bba + 8867d65 commit 55df342

File tree

123 files changed

+5152
-4772
lines changed

Some content is hidden

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

123 files changed

+5152
-4772
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ repos:
99
- '--application-directories'
1010
- app
1111
- repo: 'https://github.com/python/black'
12-
rev: 19.10b0
12+
rev: 22.3.0
1313
hooks:
1414
- id: black
1515
name: Code Formatter (black)

CHANGELOG.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,28 @@
11
# Changelog
2-
All release higlighths of this project will be documented in this file.
2+
All release highlights of this project will be documented in this file.
3+
## 4.4.0 - July 03, 2022
4+
### Added
5+
- `superannotate.SAClient()` _class_ to instantiate team-level authentication and inheriting methods to access the back-end.
6+
- `SAClient.download_annotations()` _method_ to download annotations without preparing an Export object.
7+
- `SAClient.get_subsets()` _method_ to get the existing subsets for a given project.
8+
- `SAClient.assign_items()` _method_ to assign items in a given project to annotators or quality specialists.
9+
- `SAClient.unassign_items()` _method_ to remove assignments from items.
10+
- `SAClient.delete_items()` _method_ to delete items in a given project.
11+
### Updated
12+
- `JSON Schema` for video annotations to version `1.0.45` to show **polygon** and **polyline** annotations.
13+
- `SAClient.get_annotations_per_frame()` _method_ to show **polygon** and **polyline** annotations.
14+
- `SAClient.get_annotations_per_frame()` _method_ to pick instances closer to a given **frame start** instead of the **median**.
15+
- `SAClient.query()` _method_ to add the `subset` argument to support querying in a subset.
16+
### Fixed
17+
- `SAClient.set_annotation_statuses()` _method_ to address the issue occurring with more than 500 items.
18+
- `SAClient.get_annotations()` _method_ to address the `PayloadError` occurring with more than 20000 items.
19+
- `SAClient.get_annotations()` _method_ to address the missing `'duration'` and `'tags'` keys for newly uploaded and unannotated videos.
20+
- `SAClient.get_annotations_per_frame()` _method_ to address missing `'duration'` and `'tags'` keys for newly uploaded and unannotated videos.
21+
- `SAClient.get_annotations_per_frame()` _method_ to address the wrong `classId` value for unclassified instances.
22+
### Removed
23+
- `superannotate.init()` _function_. Please instantiate `superannotate.SAClient()` _class_ to authenticate.
24+
- `superannotate.set_image_annotation_status()` _function_. Please use the `SAClient.set_annotation_statuses()` _method_ instead.
25+
- `superannotate.set_images_annotations_statuses()` _function_. Please use the `SAClient.set_annotation_statuses()` _method_ instead.
326
## 4.3.4 - May 22, 2022
427
### Updated
528
- `JSON Schema` for video annotations to version `x` to reflect point annotations.

docs/source/conf.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,10 @@
5454
html_static_path = []
5555

5656
autodoc_typehints = "description"
57+
html_show_sourcelink = False
58+
59+
html_context = {
60+
"display_github": False, # Add 'Edit on Github' link instead of 'View page source'
61+
"last_updated": True,
62+
"commit": False,
63+
}

docs/source/index.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ SuperAnnotate Python SDK allows access to the platform without web browser:
2929

3030
.. code-block:: python
3131
32-
import superannotate as sa
32+
from superannotate import SAClient
33+
34+
sa = SAClient()
3335
3436
sa.create_project("Example Project 1", "example", "Vector")
3537

docs/source/superannotate.sdk.rst

Lines changed: 79 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -8,73 +8,81 @@ API Reference
88
Remote functions
99
----------------
1010

11-
Initialization and authentication
11+
Instantiation and authentication
1212
_________________________________
1313

14-
.. autofunction:: superannotate.init
14+
.. autoclass:: superannotate.SAClient
1515

1616

17-
.. _ref_projects:
18-
1917
Projects
2018
________
2119

2220
.. _ref_search_projects:
23-
.. autofunction:: superannotate.search_projects
24-
.. autofunction:: superannotate.create_project
25-
.. autofunction:: superannotate.create_project_from_metadata
26-
.. autofunction:: superannotate.clone_project
27-
.. autofunction:: superannotate.delete_project
28-
.. autofunction:: superannotate.rename_project
21+
.. automethod:: superannotate.SAClient.search_projects
22+
.. automethod:: superannotate.SAClient.create_project
23+
.. automethod:: superannotate.SAClient.create_project_from_metadata
24+
.. automethod:: superannotate.SAClient.clone_project
25+
.. automethod:: superannotate.SAClient.delete_project
26+
.. automethod:: superannotate.SAClient.rename_project
2927
.. _ref_get_project_metadata:
30-
.. autofunction:: superannotate.get_project_metadata
31-
.. autofunction:: superannotate.get_project_image_count
32-
.. autofunction:: superannotate.search_folders
33-
.. autofunction:: superannotate.get_folder_metadata
34-
.. autofunction:: superannotate.create_folder
35-
.. autofunction:: superannotate.delete_folders
36-
.. autofunction:: superannotate.upload_images_to_project
37-
.. autofunction:: superannotate.attach_items_from_integrated_storage
38-
.. autofunction:: superannotate.upload_image_to_project
39-
.. autofunction:: superannotate.delete_annotations
28+
.. automethod:: superannotate.SAClient.get_project_metadata
29+
.. automethod:: superannotate.SAClient.get_project_image_count
30+
.. automethod:: superannotate.SAClient.search_folders
31+
.. automethod:: superannotate.SAClient.get_folder_metadata
32+
.. automethod:: superannotate.SAClient.create_folder
33+
.. automethod:: superannotate.SAClient.delete_folders
34+
.. automethod:: superannotate.SAClient.upload_images_to_project
35+
.. automethod:: superannotate.SAClient.attach_items_from_integrated_storage
36+
.. automethod:: superannotate.SAClient.upload_image_to_project
37+
.. automethod:: superannotate.SAClient.delete_annotations
4038
.. _ref_upload_images_from_folder_to_project:
41-
.. autofunction:: superannotate.upload_images_from_folder_to_project
42-
.. autofunction:: superannotate.upload_video_to_project
43-
.. autofunction:: superannotate.upload_videos_from_folder_to_project
39+
.. automethod:: superannotate.SAClient.upload_images_from_folder_to_project
40+
.. automethod:: superannotate.SAClient.upload_video_to_project
41+
.. automethod:: superannotate.SAClient.upload_videos_from_folder_to_project
4442
.. _ref_upload_annotations_from_folder_to_project:
45-
.. autofunction:: superannotate.upload_annotations_from_folder_to_project
46-
.. autofunction:: superannotate.upload_preannotations_from_folder_to_project
47-
.. autofunction:: superannotate.add_contributors_to_project
48-
.. autofunction:: superannotate.get_project_settings
49-
.. autofunction:: superannotate.set_project_default_image_quality_in_editor
50-
.. autofunction:: superannotate.get_project_workflow
51-
.. autofunction:: superannotate.set_project_workflow
43+
.. automethod:: superannotate.SAClient.upload_annotations_from_folder_to_project
44+
.. automethod:: superannotate.SAClient.upload_preannotations_from_folder_to_project
45+
.. automethod:: superannotate.SAClient.add_contributors_to_project
46+
.. automethod:: superannotate.SAClient.get_project_settings
47+
.. automethod:: superannotate.SAClient.set_project_default_image_quality_in_editor
48+
.. automethod:: superannotate.SAClient.get_project_workflow
49+
.. automethod:: superannotate.SAClient.set_project_workflow
5250

5351
----------
5452

5553
Exports
5654
_______
5755

58-
.. autofunction:: superannotate.prepare_export
59-
.. autofunction:: superannotate.get_annotations
60-
.. autofunction:: superannotate.get_annotations_per_frame
56+
.. automethod:: superannotate.SAClient.prepare_export
57+
.. automethod:: superannotate.SAClient.get_annotations
58+
.. automethod:: superannotate.SAClient.get_annotations_per_frame
6159
.. _ref_download_export:
62-
.. autofunction:: superannotate.download_export
63-
.. autofunction:: superannotate.get_exports
60+
.. automethod:: superannotate.SAClient.download_export
61+
.. automethod:: superannotate.SAClient.get_exports
6462

6563
----------
6664

6765
Items
6866
______
6967

70-
.. autofunction:: superannotate.query
71-
.. autofunction:: superannotate.search_items
72-
.. autofunction:: superannotate.download_annotations
73-
.. autofunction:: superannotate.attach_items
74-
.. autofunction:: superannotate.copy_items
75-
.. autofunction:: superannotate.move_items
76-
.. autofunction:: superannotate.get_item_metadata
77-
.. autofunction:: superannotate.set_annotation_statuses
68+
.. automethod:: superannotate.SAClient.query
69+
.. automethod:: superannotate.SAClient.search_items
70+
.. automethod:: superannotate.SAClient.download_annotations
71+
.. automethod:: superannotate.SAClient.attach_items
72+
.. automethod:: superannotate.SAClient.copy_items
73+
.. automethod:: superannotate.SAClient.move_items
74+
.. automethod:: superannotate.SAClient.delete_items
75+
.. automethod:: superannotate.SAClient.assign_items
76+
.. automethod:: superannotate.SAClient.unassign_items
77+
.. automethod:: superannotate.SAClient.get_item_metadata
78+
.. automethod:: superannotate.SAClient.set_annotation_statuses
79+
80+
----------
81+
82+
Subsets
83+
______
84+
85+
.. automethod:: superannotate.SAClient.get_subsets
7886

7987
----------
8088

@@ -83,50 +91,48 @@ ______
8391

8492

8593
.. _ref_search_images:
86-
.. autofunction:: superannotate.download_image
87-
.. autofunction:: superannotate.set_image_annotation_status
88-
.. autofunction:: superannotate.set_images_annotation_statuses
89-
.. autofunction:: superannotate.download_image_annotations
90-
.. autofunction:: superannotate.upload_image_annotations
91-
.. autofunction:: superannotate.copy_image
92-
.. autofunction:: superannotate.pin_image
93-
.. autofunction:: superannotate.assign_images
94-
.. autofunction:: superannotate.delete_images
95-
.. autofunction:: superannotate.add_annotation_bbox_to_image
96-
.. autofunction:: superannotate.add_annotation_point_to_image
97-
.. autofunction:: superannotate.add_annotation_comment_to_image
98-
.. autofunction:: superannotate.upload_priority_scores
94+
.. automethod:: superannotate.SAClient.download_image
95+
.. automethod:: superannotate.SAClient.download_image_annotations
96+
.. automethod:: superannotate.SAClient.upload_image_annotations
97+
.. automethod:: superannotate.SAClient.copy_image
98+
.. automethod:: superannotate.SAClient.pin_image
99+
.. automethod:: superannotate.SAClient.assign_images
100+
.. automethod:: superannotate.SAClient.delete_images
101+
.. automethod:: superannotate.SAClient.add_annotation_bbox_to_image
102+
.. automethod:: superannotate.SAClient.add_annotation_point_to_image
103+
.. automethod:: superannotate.SAClient.add_annotation_comment_to_image
104+
.. automethod:: superannotate.SAClient.upload_priority_scores
99105

100106
----------
101107

102108
Annotation Classes
103109
__________________
104110

105-
.. autofunction:: superannotate.create_annotation_class
111+
.. automethod:: superannotate.SAClient.create_annotation_class
106112
.. _ref_create_annotation_classes_from_classes_json:
107-
.. autofunction:: superannotate.create_annotation_classes_from_classes_json
108-
.. autofunction:: superannotate.search_annotation_classes
109-
.. autofunction:: superannotate.download_annotation_classes_json
110-
.. autofunction:: superannotate.delete_annotation_class
113+
.. automethod:: superannotate.SAClient.create_annotation_classes_from_classes_json
114+
.. automethod:: superannotate.SAClient.search_annotation_classes
115+
.. automethod:: superannotate.SAClient.download_annotation_classes_json
116+
.. automethod:: superannotate.SAClient.delete_annotation_class
111117

112118
----------
113119

114120
Team
115121
_________________
116122

117-
.. autofunction:: superannotate.get_team_metadata
118-
.. autofunction:: superannotate.get_integrations
119-
.. autofunction:: superannotate.invite_contributors_to_team
120-
.. autofunction:: superannotate.search_team_contributors
123+
.. automethod:: superannotate.SAClient.get_team_metadata
124+
.. automethod:: superannotate.SAClient.get_integrations
125+
.. automethod:: superannotate.SAClient.invite_contributors_to_team
126+
.. automethod:: superannotate.SAClient.search_team_contributors
121127

122128
----------
123129

124130
Neural Network
125131
_______________
126132

127-
.. autofunction:: superannotate.download_model
128-
.. autofunction:: superannotate.run_prediction
129-
.. autofunction:: superannotate.search_models
133+
.. automethod:: superannotate.SAClient.download_model
134+
.. automethod:: superannotate.SAClient.run_prediction
135+
.. automethod:: superannotate.SAClient.search_models
130136

131137
----------
132138

@@ -196,7 +202,7 @@ Export metadata example:
196202

197203

198204
Integration metadata
199-
_______________
205+
______________________
200206

201207
Integration metadata example:
202208

@@ -383,8 +389,8 @@ Working with annotations
383389
________________________
384390

385391
.. _ref_aggregate_annotations_as_df:
386-
.. autofunction:: superannotate.validate_annotations
387-
.. autofunction:: superannotate.aggregate_annotations_as_df
392+
.. automethod:: superannotate.SAClient.validate_annotations
393+
.. automethod:: superannotate.SAClient.aggregate_annotations_as_df
388394

389395
----------
390396

@@ -398,5 +404,5 @@ _____________________________________________________________
398404
Utility functions
399405
--------------------------------
400406

401-
.. autofunction:: superannotate.consensus
402-
.. autofunction:: superannotate.benchmark
407+
.. autofunction:: superannotate.SAClient.consensus
408+
.. autofunction:: superannotate.SAClient.benchmark

0 commit comments

Comments
 (0)