Skip to content

Commit 804c48c

Browse files
committed
Docs upadates
1 parent 607a7bf commit 804c48c

File tree

4 files changed

+6
-114
lines changed

4 files changed

+6
-114
lines changed

docs/source/api_reference/api_folder.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Folders
33
=======
44

55
.. automethod:: superannotate.SAClient.search_folders
6+
.. automethod:: superannotate.SAClient.set_folder_status
67
.. automethod:: superannotate.SAClient.assign_folder
78
.. automethod:: superannotate.SAClient.unassign_folder
89
.. automethod:: superannotate.SAClient.get_folder_by_id

docs/source/index.rst

Lines changed: 1 addition & 110 deletions
Original file line numberDiff line numberDiff line change
@@ -19,113 +19,4 @@
1919
History <changelog_link>
2020
LICENSE.rst
2121

22-
----------
23-
24-
SuperAnnotate Python SDK documentation
25-
==================================================================
26-
27-
SuperAnnotate Python SDK allows access to the platform without web browser:
28-
29-
.. code-block:: python
30-
31-
from superannotate import SAClient
32-
33-
34-
sa_client = SAClient()
35-
36-
project = 'Dogs'
37-
38-
sa_client.create_project(
39-
project_name=project,
40-
project_description='Test project generated via SDK',
41-
project_type='Vector'
42-
)
43-
44-
sa_client.create_annotation_class(
45-
project=project,
46-
name='dog',
47-
color='#F9E0FA',
48-
class_type='tag'
49-
)
50-
51-
sa_client.attach_items(
52-
project=project,
53-
attachments=[
54-
{
55-
'url': 'https://drive.google.com/uc?export=download&id=1ipOrZNSTlPUkI_hnrW9aUD5yULqqq5Vl',
56-
'name': 'dog.jpeg'
57-
}
58-
]
59-
)
60-
61-
sa_client.upload_annotations(
62-
project=project,
63-
annotations=[
64-
{
65-
'metadata': {'name': 'dog.jpeg'},
66-
'instances': [
67-
{'type': 'tag', 'className': 'dog'}
68-
]
69-
}
70-
]
71-
)
72-
73-
sa_client.get_annotations(project=project, items=['dog.jpeg'])
74-
75-
----------
76-
77-
Installation
78-
____________
79-
80-
81-
SDK is available on PyPI:
82-
83-
.. code-block:: bash
84-
85-
pip install superannotate
86-
87-
88-
The package officially supports Python 3.7+ and was tested under Linux and
89-
Windows (`Anaconda <https://www.anaconda.com/products/individual#windows>`_) platforms.
90-
91-
----------
92-
93-
Supported Features
94-
__________________
95-
96-
- Search projects
97-
- Create/delete a project
98-
- Upload images to a project from a local or AWS S3 folder
99-
- Upload videos to a project from a local folder
100-
- Upload annotations/pre-annotations to a project from local or AWS S3 folder
101-
- Set the annotation status of the images being uploaded
102-
- Export annotations from a project to a local or AWS S3 folder
103-
- Share and unshare a project with a team contributor
104-
- Invite a team contributor
105-
- Search images in a project
106-
- Download a single image
107-
- Copy/move image between projects
108-
- Get image bytes (e.g., for numpy array creation)
109-
- Set image annotation status
110-
- Download image annotations/pre-annotations
111-
- Create/download project annotation classes
112-
- Add annotations to images on platform
113-
- Convert annotation format from/to COCO
114-
- Add annotations to local SuperAnnotate format JSONs
115-
- CLI commands for simple tasks
116-
- Aggregate class/attribute distribution as histogram
117-
118-
----------
119-
120-
License
121-
_______
122-
123-
This SDK is distributed under the :ref:`MIT License <ref_license>`.
124-
125-
----------
126-
127-
Questions and Issues
128-
____________________
129-
130-
For questions and issues please use issue tracker on
131-
`GitHub <https://github.com/superannotateai/superannotate-python-sdk>`_.
22+
.. include:: ../../README.rst

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ pillow==9.4.0
88
matplotlib>=3.3.1
99
xmltodict==0.12.0
1010
opencv-python>=4.4.0.42
11-
wheel>=0.38.4
11+
wheel>=0.40.0
1212
packaging>=20.4
1313
plotly>=4.1.0
1414
ffmpeg-python>=0.2.0
1515
fire==0.4.0
1616
mixpanel==4.8.3
17-
pydantic>=1.10.4
17+
pydantic>=1.10.7
1818
setuptools>=57.4.0
1919
email-validator>=1.0.3
2020
jsonschema==3.2.0
2121
pandas>=1.1.4
2222
aiofiles==0.8.0
23-
Werkzeug==2.2.2
23+
Werkzeug==2.2.3
2424
Jinja2==3.1.2

src/superannotate/lib/app/interface/sdk_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,7 @@ def get_annotations(
21922192
:param project: project name or folder path (e.g., “project1/folder1”).
21932193
:type project: str
21942194
2195-
:param items: item names. If None all items in the project will be exported
2195+
:param items: item names. If None all items in specified directory
21962196
:type items: list of strs
21972197
21982198
:return: list of annotations

0 commit comments

Comments
 (0)