Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions docs/source/superannotate.sdk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Project metadata example:
{
"name": "Example Project test",
"description": "test vector",
"creator_id": "hovnatan@superannotate.com",
"creator_id": "admin@superannotate.com",
"updatedAt": "2020-08-31T05:43:43.118Z",
"createdAt": "2020-08-31T05:43:43.118Z"
"type": "Vector",
Expand All @@ -174,8 +174,8 @@ Export metadata example:
.. code-block:: python

{
"name": "Aug 17 2020 15:44 Hovnatan.zip",
"user_id": "hovnatan@gmail.com",
"name": "Aug 17 2020 15:44 First Name.zip",
"user_id": "user@gmail.com",
"status": 2,
"createdAt": "2020-08-17T11:44:26.000Z",
"...": "..."
Expand All @@ -184,6 +184,7 @@ Export metadata example:

----------


Integration metadata
_______________

Expand All @@ -200,6 +201,7 @@ Integration metadata example:

----------


Item metadata
_______________

Expand All @@ -217,11 +219,11 @@ Item metadata example:
"entropy_value": None,
"createdAt": "2022-02-15T20:46:44.000Z",
"updatedAt": "2022-02-15T20:46:44.000Z"
}

}

----------


Image metadata
_______________

Expand Down Expand Up @@ -304,10 +306,10 @@ Team contributor metadata example:
.. code-block:: python

{
"id": "hovnatan@superannotate.com",
"first_name": "Hovnatan",
"last_name": "Karapetyan",
"email": "hovnatan@superannotate.com",
"id": "admin@superannotate.com",
"first_name": "First Name",
"last_name": "Last Name",
"email": "admin@superannotate.com",
"user_role": 6
"...": "...",
}
Expand Down
4 changes: 2 additions & 2 deletions docs/source/tutorial.sdk.rst
Original file line number Diff line number Diff line change
Expand Up @@ -388,15 +388,15 @@ A team contributor can be invited to the team with:

.. code-block:: python

sa.invite_contributors_to_team(emails=["hovnatan@superannotate.com"], admin=False)
sa.invite_contributors_to_team(emails=["admin@superannotate.com"], admin=False)


This invitation should be accepted by the contributor. After which, to share the
project with the found contributor as an QA:

.. code-block:: python

sa.share_project(project, "hovnatan@superannotate.com", user_role="QA")
sa.share_project(project, "admin@superannotate.com", user_role="QA")



Expand Down
3 changes: 2 additions & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
superannotate_schemas>=1.0.41dev1
superannotate_schemas>=1.0.41b1

2 changes: 1 addition & 1 deletion requirements_extra.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Sphinx==3.1.2
Sphinx==3.5.4
tox==3.24.2
pytest==6.2.4
pytest-xdist==2.3.0
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
description='Python SDK to SuperAnnotate platform',
license='MIT',
author='SuperAnnotate AI',
author_email='hovnatan@superannotate.com',
author_email='vaghinak@superannotate.com',
url='https://github.com/superannotateai/superannotate-python-sdk',
long_description=readme,
long_description_content_type='text/markdown',
Expand Down
1 change: 1 addition & 0 deletions src/superannotate/lib/app/interface/sdk_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -2970,6 +2970,7 @@ def attach_items_from_integrated_storage(

:param folder_path: Points to an exact folder/directory within given storage.
If None, items are fetched from the root directory.

:type folder_path: str
"""
project_name, folder_name = extract_project_folder(project)
Expand Down
5 changes: 3 additions & 2 deletions tests/integration/folders/test_folders.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@

import src.superannotate as sa
from tests.integration.base import BaseTestCase
from tests import DATA_SET_PATH

import pytest


class TestFolders(BaseTestCase):
PROJECT_NAME = "test folders"
TEST_FOLDER_PATH = "data_set/sample_project_vector"
TEST_FOLDER_PATH = "sample_project_vector"
PROJECT_DESCRIPTION = "desc"
PROJECT_TYPE = "Vector"
SPECIAL_CHARS = "/\:*?“<>|"
Expand All @@ -27,7 +28,7 @@ class TestFolders(BaseTestCase):

@property
def folder_path(self):
return os.path.join(dirname(dirname(__file__)), self.TEST_FOLDER_PATH)
return os.path.join(DATA_SET_PATH, self.TEST_FOLDER_PATH)

@property
def classes_json(self):
Expand Down