Skip to content

Commit 31e869a

Browse files
authored
Create README.rst
1 parent 50a1c22 commit 31e869a

File tree

1 file changed

+129
-0
lines changed

1 file changed

+129
-0
lines changed

README.rst

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
===============================
2+
SuperAnnotate Python SDK
3+
===============================
4+
5+
|Python| |License| |Changelog|
6+
7+
.. |Python| image:: https://img.shields.io/static/v1?label=python&message=3.7/3.8/3.9/3.10/3.11&color=blue&style=flat-square
8+
:target: https://pypi.org/project/superannotate/
9+
:alt: Python Versions
10+
.. |License| image:: https://img.shields.io/static/v1?label=license&message=MIT&color=green&style=flat-square
11+
:target: https://github.com/superannotateai/superannotate-python-sdk/blob/master/LICENSE/
12+
:alt: License
13+
.. |Changelog| image:: https://img.shields.io/static/v1?label=change&message=log&color=yellow&style=flat-square
14+
:target: https://github.com/superannotateai/superannotate-python-sdk/blob/master/CHANGELOG.md
15+
:alt: Changelog
16+
17+
Welcome to the SuperAnnotate Python Software Development Kit (SDK), which enables Python programmers to create software that incorporates services of the platform and effortlessly integrates SuperAnnotate into their AI process. (check out the :ref:`supported features` below).
18+
19+
Resources
20+
---------------
21+
22+
- API Reference and User Guide available on `Read the Docs <https://superannotate.readthedocs.io/en/stable/superannotate.sdk.html>`_
23+
- `Platform documentation <https://doc.superannotate.com/>`_
24+
Authentication
25+
26+
---------------
27+
28+
.. code-block:: python
29+
30+
from superannotate import SAClient
31+
# by environment variable SA_TOKEN
32+
sa_client = SAClient()
33+
# by token
34+
sa_client = SAClient(token=<team token>’)
35+
# by config file
36+
# default path is ~/.superannotate/config.json
37+
sa_client = SAClient(config_path=~/.superannotate/dev_config.json”)
38+
39+
Using superannotate
40+
-------------------
41+
42+
.. code-block:: python
43+
44+
from superannotate import SAClient
45+
sa_client =SAClient()
46+
project = “Dogs”
47+
sa_client.create_project(
48+
project_name=project,
49+
project_description=“Test project generated via SDK”,
50+
project_type=“Vector”
51+
)
52+
sa_client.create_annotation_class(
53+
project=project,
54+
name=“dog”,
55+
color=#F9E0FA”,
56+
class_type=“tag”
57+
)
58+
sa_client.attach_items(
59+
project=project,
60+
attachments=[
61+
{
62+
“url”: “https://drive.google.com/uc?export=download&id=1ipOrZNSTlPUkI_hnrW9aUD5yULqqq5Vl”,
63+
“name”: “dog.jpeg”
64+
}
65+
]
66+
)
67+
sa_client.upload_annotations(
68+
project=project,
69+
annotations=[
70+
{
71+
“metadata”: {“name”: “dog.jpeg”},
72+
“instances”: [
73+
{“type”: “tag”, “className”: “dog”}
74+
]
75+
}
76+
]
77+
)
78+
sa_client.get_annotations(project=project, items=[“dog.jpeg”])
79+
80+
Installation
81+
------------
82+
83+
SuperAnnotate python SDK is available on PyPI:
84+
85+
.. code-block:: bash
86+
87+
pip install superannotate
88+
89+
90+
The package officially supports Python 3.7+ and was tested under Linux and
91+
Windows (`Anaconda <https://www.anaconda.com/products/individual#windows>`_
92+
) platforms.
93+
94+
For more detailed installation steps and package usage please have a look at the `tutorial <https://superannotate.readthedocs.io/en/stable/tutorial.sdk.html>`_
95+
.
96+
.. _supported features:
97+
98+
Supported Features
99+
------------------
100+
101+
- search/get/create/clone/update/delete projects
102+
- search/get/create/delete folders
103+
- assign folders to project contributors
104+
- upload items to a project from a local or AWS S3 folder
105+
- attach items by URL or from an integrated storage, meanwhile keeping them secure in your cloud provider
106+
- get integrated cloud storages
107+
- upload annotations (also from local or AWS S3 folder)
108+
- delete annotations
109+
- set items annotations statuses
110+
- get/download/export annotations from a project (also to a local or AWS S3 folder)
111+
- invite/search team contributors or add contributors to a specific project
112+
- search/get/copy/move items in a project
113+
- query items using SA Query Language
114+
- define custom metadata for items and upload custom values (query based on your custom metadata)
115+
- upload priority scores
116+
- get available subsets (sets of segregated items), query items in a subset or add items to a subset
117+
- assign or anassign items to project contributors
118+
- download an image that has been uploaded to project
119+
- search/create/download/delete project annotation classes
120+
- search/download models
121+
- run predictions
122+
- convert annotations from/to COCO format
123+
- convert annotation from VOC, SuperVisely, LabelBox, DataLoop, VGG, VoTT, SageMaker, GoogleCloud, YOLO formats
124+
- CLI commands for simple tasks
125+
126+
Questions and Issues
127+
--------------------
128+
129+
For questions and issues please use this repo’s issue tracker on GitHub or contact support@superannotate.com.

0 commit comments

Comments
 (0)